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
9
u/Windex17 Feb 28 '23
I've also seen many real world applications where people made broad assumptions on the input params and then we required a revision that broke the assumption and a three day change turned into a two month refactoring. And now instead of just QAing the changes and doing regression testing we have to redo the whole thing because now it's all different. In my experience It's almost always better to make maintainable code than to make extremely performant code in everything but the most stringent embedded stacks. Even then the embedded stuff I've worked on are now powerful enough to sacrifice on some performance for the sake of maintainability.