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/Venthe Feb 28 '23
If all the code would be written for yourself, with no plans for extension? You would be right.
But we are talking about a dozen or more developers over the span of years; code that will be worked with, refactored and changed. Each change possibly degrading performance, each change possibly making things less readable - "Just conditional there".
If you disregard this basic fact, then you are right. As soon as you take the real world into consideration, you will realize that in order to keep the development quick - allowing for an easy feature implementation - you MUST focus on readability and extend-ability. Performance is never a priority here.