‹ BackHN Continuity

Thread

Anecdotally, programmers dislike "reduce"

175 points · 283 comments · vinhnx

  1. Anoian · · focus · HN ↗
    I am a typescript dev and I like reduce but also feel like I am the exception.

    The standard linter plugin eslint-plugin-unicorn even has a rule "no-array-reduce" that is part of the recommended config, which means most people using this plugin will have no reduce in their codebases:

    <a href="https:&#x2F;&#x2F;github.com&#x2F;sindresorhus&#x2F;eslint-plugin-unicorn&#x2F;blob&#x2F;main&#x2F;docs&#x2F;rules&#x2F;no-array-reduce.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sindresorhus&#x2F;eslint-plugin-unicorn&#x2F;blob&#x2F;m...

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.