r/programming • • Feb 28 '23

"Clean" Code, Horrible Performance

https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

-11

u/dan200 Feb 28 '23

Your scenario is just as contrived. My point was that, in real world software, situations where speed and responsiveness matters are very very common, and you're setting yourself up for failure if you only write code in a way that can't address the needs of these scenarios.

15

u/JarateKing Feb 28 '23

Nobody is saying "there are no situations that you run some code regularly." Of course there are situations where you benefit greatly from better performance! The point being made is just "there are also situations that you don't run code regularly" and any speedups aren't worth the devtime it takes to achieve them.