Andrey (azangru) wrote,
Andrey
azangru

Well, isn't it fun.

There's a repo translating Uncle Bob's recommendations for clean code into javascript. Among other things, it suggests preferring Array.reduce over for-loops.

I remember posting here tweets by a Google devrel several months ago, who suggested precisely the opposite. Array.reduce, he insisted, is unnecessarily complicated; and for-loops are so much more readable and cleaner.
Subscribe

  • (no subject)

    A software engineer: This format [of reading binary numbers] is known as -endian, which I always thought is a funny name. No-one says that…

  • (no subject)

    Brilliant!

  • (no subject)

    O M G 🤦

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments