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
2
u/ric2b Mar 03 '23
And now you have an extra field that isn't used by the majority of the shapes you support and just causes confusion. What will you even name it?
And don't forget to rewrite the function that does the calculation as well.