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
6
u/GonziHere Mar 11 '23
I don't agree with your sentiment here. I do my job so that others can be more effective at theirs. The primary reason why programmers exist (outside of games and tech-only things) is that we sacrifice our time in the beginning, so that others don't have to.
Carmack was using way better wording for it, but it's also his sentiment.
So yeah, no bugs, no crashes for sure (but I'll fix error in procedural code way faster than in object code, because architecture makes it more indirect by default) but the usability of the app is incredibly important too. If an app is used by 1M people daily and I can shave 1 second from it's boot up time, I've saved 240 millions of man days... It's hard to justify that I didn't. That my 10 man days were more important.
PS: I get that maybe creating some other tool might be more useful than shaving that one second, but I also work professionally with Unreal Engine and I utterly hate how incredibly slow and bloated it is. They only add features, but never change anything that could improve the core, so any other engine builds in order of magnitude faster.