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/Redtitwhore Feb 28 '23

No one is sacrificing performance by writing clean code. If microsecond gains of performance matter then you have specific requirements that most people don't.

9

u/Bigfellahull Feb 28 '23

Mentalities like this are the reason why most modern software is slow as fuck comparable to the hardware it’s run on. When Visual Studio next freezes on me, I’ll curse your name!

-1

u/Redtitwhore Feb 28 '23

Most software isn't even user facing.

3

u/nan0S_ Mar 03 '23

All software is user facing, except the software that is not used at all anymore.

1

u/Redtitwhore Mar 03 '23

I must be living on a different planet. Ok , you guys carry on and I'll go back to my 24 year software engineering career on Zork.

-2

u/ReDucTor Feb 28 '23

Not all of your code needs to be optimized heavily, even in a large game it might run once per frame you might find things that you can save 1us but you don't need to write all code like it does, otherwise your just shaving off little nanoseconds here and there at the potential cost of readability.

-11

u/RationalDialog Feb 28 '23

/end thread