Hacker News new | ask | show | jobs
by waynesonfire 2042 days ago
Thought this was going to pivot to a pro FP article but the author never takes it there.

It reminded me of how FP is applied to a program where the instructions and intent of the developer are encoded to configure the system (recipe) and then the execute function is called. E.g. the onion concept.

Far from being an expert on the topic but was happy about recognizing the pattern.

1 comments

I was really tempted to go into some pro-FP suggestions (in particular, about reducing some of the duplicity via compositional functions), but wanted to keep it to just the over-abstraction/if/else complexity topic.