Hacker News new | ask | show | jobs
by hsshhshshjk 724 days ago
For the functional vs imperative... Why make the example array.map.filter.reduce rather than just a single reduce? I find map.filter.reduce to be a gross anti pattern.
1 comments

rarely saw such uses in the wild, which always breaks my mind. although the filter+map|reduce combo is the most popular that i've saw