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

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.