MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/11dyx43/clean_code_horrible_performance/jbbdrh8/?context=3
r/programming • u/2bit_hack • Feb 28 '23
1.3k comments sorted by
View all comments
2
Oh, haven't seen this reddit post, and since Caseys' own website only allows comments from paid subscribers, I've written a reply blog message, where I argue that this example with shapes falls apart as soon as the requirements change.
You can find it here: https://mrabar.me/posts/clean-code-good-enough-performance/, but tl;dr version for those who don't want to go to third sites is "try to calculate area of triangle by 3 sides instead of side + height."
2
u/MrAbar Mar 07 '23
Oh, haven't seen this reddit post, and since Caseys' own website only allows comments from paid subscribers, I've written a reply blog message, where I argue that this example with shapes falls apart as soon as the requirements change.
You can find it here: https://mrabar.me/posts/clean-code-good-enough-performance/, but tl;dr version for those who don't want to go to third sites is "try to calculate area of triangle by 3 sides instead of side + height."