Code AnalysisHard 60s
Functional Core, Imperative Shell
def place_order(raw):
validate(raw)
price = compute_price(raw)
save(price)
send_email(raw.user)
publish_event(price)
# all in one function with side effects intertwined
Which refactor best applies functional core / imperative shell?
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.