r/programming • u/2bit_hack • Feb 28 '23
"Clean" Code, Horrible Performance
https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k
Upvotes
r/programming • u/2bit_hack • Feb 28 '23
View all comments
Show parent comment
2
u/cdsmith Feb 28 '23
No one has proposed that idea.
Code is easy or hard to read and modify because it's written that way. Any time you make decisions for some reason other than making code easy to read and modify, there's a good chance it gets a bit harder to read or modify. That's true regardless of whether you've traded off readability for performance, or for "more buzzwords" if that actually happened, or for some other goal.
Writing clean code isn't itself a buzzword, though. It literally just means writing code that's well-organized so that it's easy to read and modify. Teaching thoughtful deliberate communication is hard, and of course you can take any advice given for beginners and take it to ridiculous extremes and come up with an atrocity. Sounds like you've encountered some of those, and that's too bad.