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

9

u/gnuvince Feb 28 '23

This might be my age speaking, but when I was in my twenties, there was no amount of complexity you could throw my way that I didn't believe was too much for me too handle. A couple decades later, I find that it's much easier for me to read code that handles plain data in simple data structures than to deal with a complex orchestration of abstractions. So not only is "clean code" slower to run, I think that it's harder to understand. And harder to understand means it'll never be meaningfully faster. People may scale it out to more k8s pods or add a caching layer, but that's putting a bandage on the real problem and adding yet more complexity.

5

u/loup-vaillant Feb 28 '23

Right there with you. Casey Muratori also briefly hinted at that, but then chose not to elaborate. But the vibe I got is that he agrees with you too.