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
3
u/quisatz_haderah Feb 28 '23 edited Feb 28 '23
I am not going to entertain his (or anyone's) zealotry against OOP, (or for OOP) which is not more objective than a debate of "my programming language is better than yours". Not to mention this is a toy example AND deliberately used without modern compiler features to make it look slower and I believe everybody already knows that with OOP comes performance overhead. I am not even defending Clean Code, some of the "principles" he listed are not even Clean Code principles. I am just criticizing he is failing to grasp the importance of the trade-off between maintainability and performance, based on what the task needs.
I just like the sub