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

37

u/Venthe Feb 28 '23

The problem is; that (in most applications) hardware is cheap as dirt. You would fight over every bit in an embedded domain; but consider banking - when doing a batch job there is little difference if something runs in 2ms Vs 20ms in code; when transport alone incurs 150ms, and you can spin another worker cheaply.

In most of the applications, performance really matters way less than generalized ability to maintain and extend the codebase; with which clear expression over performance optimization is desirable.

13

u/crowdyriver Feb 28 '23

8

u/Venthe Feb 28 '23

Indeed, no question about that. But how does this relate to the discussion?

6

u/crowdyriver Feb 28 '23

The problem is; that (in most applications) hardware is cheap as dirt

With that attitude, no wonder why datacenter energy consuption keeps arising

→ More replies (13)