News for hackers. Stuff that matters.
Re:Greppability is an underrated code metric by throwaway2037 on Tuesday September 03, 2024 @05:33AM (#41433038)

    > also had better performance because you had access to the `break`, `continue` and `return` keywords.
This is a great point.

One more: Debugging `.map()` is also much harder than a for loop.

Re:Greppability is an underrated code metric by medstrom on Tuesday September 03, 2024 @06:56AM (#41433524)
I feel there are a few ways to invoke .map() in a readable way and many ways that make the code flow needlessly indirect.

Should be a judgment call, and the author needs to be used to doing both looping and mapping constructs, so that they are unafraid of the bit of extra typing needed for the loop.