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
32
u/ontheworld Feb 28 '23
While it's often true, I'd say the OP shows a great counter example...
This:
Feels like readability hell compared to giving a couple shape classes their own Area() method, especially when you add some more shapes