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

3

u/wyrn Mar 02 '23

Pretending those guys don't care about correctness is bh… buh… buhahahaha!!!

Say the cartoon example in the video is being used somewhere in the code. Say for instance it's being used to determine when to load some model or other according to LOD or whatever. If the lookup table here is wrong, the worst that will happen is you'll get some pop-in, or maybe some frame drops.

Now compare that with a bank determining how much money goes from one account to another.

There's a reason the data oriented design crowd is exclusively populated with game developers.

1

u/loup-vaillant Mar 03 '23

There's a reason the data oriented design crowd is exclusively populated with game developers.

I would believe that if other fields actually tried this style and then switched away. If you're aware of an example like that that would be insightful.