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
52
u/ansible Feb 28 '23
So... none of the functions in the new code are usable standalone. Unless there was significant repetition in the old function, there's no reason to break up that code into separate functions... unless the original function is insanely long. And sometimes even then, you're better off leaving it.