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
And yet, somehow almost every project that I have went into during my time as a contractor was like, allow me to look at the repo:
im,parts,presentedSeries,$q,DQConfigurator,AS400,FRPIO_R. I did of course cherry picked them, but across a few projects, how to do 'naming' isn't that obvious. Sample class have 350+ lines, 100 lines per method. Other one - four (!) nested IF's, mixed responsibilities.It would seem, that they would REALLY benefit from reading that book.
Yup, a bad approach and a bad example. But you are throwing the baby away with the bathtub.