

0·
7 days agoThis was written by ai, right?


This was written by ai, right?


Reduce is harder to read. Maps and filters are deeply simple. The problem space a reduce can solve is, I’m pretty sure, strictly larger than both of them. Its generality is its downfall.
I’ll happily use a reduce, but it has to be either as a well named function or immediately stored in a well named variable. If the reduce is complex enough that you can’t name it, that’s a smell to me, reach for a different tool.
Forever watching people reinvent CSS classes for no reason. (I appreciate that this article actually does show doing it with classes, but it’s still grating to me that these “frameworks” just keep reinventing
style="...")