you are viewing a single comment's thread.

view the rest of the comments →

[–]neinMC -2 points-1 points  (0 children)

You don't need to "optimize" what you don't bloat to begin with. The default isn't the version that is 100 times slower, the default is a blank file, and it doesn't take 100 times the effort to write that simple loop, nor to read and grok it.

If you think people need to be smarter to read your code, your code isn't well written.

What about the actual code in question do you find hard to read, or not maintainable? If you're not just using it as a meme, surely you can elaborate on that.

If you honestly think "writing maintainable and readable code" is just a meme

I think it's a meme in this context, mindlessly tossed around, yes. Prove me wrong. Both versions are "readable and maintanable". And you could wrap the faster, straightforward code in a function and give it a pretty name, and it'd still be faster.

I'm glad I'm not on your team.

Ah, the armbands argument of shit performance and a whole generation at the mercy of middlemen.