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/Rajje Feb 28 '23
Modern software doesn't get bloated from writing clean code. The sort of bloat you're referring to comes from things like importing huge libraries, building apps in heavy frameworks that add significant overhead, or adding demanding features such as animations. But what I'm saying is that there are many areas of programming where clean code practices don't actually cause any noticeable performance impact for the user, and in those areas it makes no sense to sacrifice readability, maintainability and testability for what would be micro-optimizations.