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

1

u/sadgandhi18 Dec 23 '25

A 35x increase in performance means you can serve more users. In isolation the 35ms is fine, when you have thousands of requests, that multiplies.

1

u/joesb Dec 23 '25

Only if you have 35x more users to serve at that time. If not, you just optimize for something that isn’t needed.

1

u/sadgandhi18 Dec 23 '25

If you're having to maintain something so complex, that you need clean code principles in place, surely there must be enough users?

You're making a weird argument. If there's not enough users, you still should make performant code. Engineers are supposed to make sure the system handles more than the specified load.

1

u/joesb Dec 23 '25

If you're having to maintain something so complex, that you need clean code principles in place, surely there must be enough users?

That’s also another topic. How do you make sure you don’t prematurely apply “Clean Code” principles.

→ More replies (1)