|
|
|
|
|
by PaulHoule
384 days ago
|
|
Hate to break it to you but I see "reduce" as a bad smell. Not like it doesn't have good uses but I've often seen people use it in ways that were wrong in subtle ways. Maps and filters are usually clear to me, reduces not always. In quite a few languages also I've seen that "map", "filter", "reduce" and constructions like that are often slower than ordinary loops. |
|
To that end, I'm working on a follow-up where I dive into the difference between complex vs complicated code, and how/when to spread complexity strategically to achieve more sophisticated forms of simplicity at scale. If you're interested, let me know and I'll give you early access.
Thanks for taking the time to read my content and leave feedback!