DEV Community

Discussion on: Please don't "overchain" array methods

Collapse
 
brianbohe profile image
Brian Bohe

This is something that should be the same for the developer and optimized in the compiler or interpreter. I disagree with the idea of pushing developers away of writing nice code.

Collapse
 
somedood profile image
Basti Ortiz

Yeah, I definitely agree with you there. At least this "feature" forces us to think more carefully about our code. In the end, we become better programmers because of it.

Collapse
 
qm3ster profile image
Mihail Malo

Yeah, but they already implemented it the way they did.
Now we must sit and suffer.
Or use a transducer library which sometimes beats this horrible decision in terms of performance in userspace without calling out to native code... and profile when we should use that. Once again putting more strain on the developer.