‹ BackHN Continuity

Thread

Anecdotally, programmers dislike "reduce"

175 points · 283 comments · vinhnx

  1. pmontra · · focus · HN ↗
    Map maps a value into another value. It's a function call. Easy to understand.

    Filter picks values according to a rule. It's a select from where condition. Maybe not as easy as map but familiar.

    Reduce is, what? Even the name is ill fated. Who wants to be reduced? Hence, harder to understand and probably not as common as the other two.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.