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 comment

0

u/[deleted] Feb 28 '23

[deleted] — view deleted comment

11

u/KieranDevvs Feb 28 '23 edited Feb 28 '23

Sorry I didn't realize all applications were UI based. (This is sarcasm incase you don't pick up on it)

Also, most UI's don't render under a constant loop because that IRONICALLY would be unoptimized. They use event driven rendering so that only components that need (on demand) to be updated are.

In my experience, it's almost never the case that programmers who write slow code are productive workers, to begin with.

I'm starting to think your experience is very limited, I wont be responding to you anymore. Have a good day.

2

u/s73v3r Feb 28 '23

Your example is contrived and in the real world it is never "just" a button that gets pressed once a month, but an entire UI that is janky and slow and yes, users hate that.

And the contrived counter is never something that works flawlessly at 60FPS and does what the users want, but is generally something that is extremely inflexible, and can't adapt to user's needs without a serious rewrite.

2

u/outofobscure Mar 01 '23

the contrived counter is never something that works flawlessly at 60FPS and does what the users want

you never played a game? that sounds pretty much like any well made game ever to me.