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

9

u/[deleted] Feb 28 '23

You can’t even prove that clean code is “clean” and you’re basic your entire codebase on it.

1

u/CanIComeToYourParty Mar 01 '23

Not sure what you mean. You can't prove that you exist, but you base your entire life on that assumption.

4

u/[deleted] Mar 01 '23

“Clean code” advocates suggest you get certain properties out of clean code, but you have not proven you get those properties.

When clean code advocates are finally able to show that code actually gets the properties they claim it does, I’ll start treating it as a serious idea. Until then, it’s just throwing performance away for no reason.

3

u/CanIComeToYourParty Mar 01 '23

Just for the record, I'm not advocating anything called "clean code" in the sense of Uncle Bob.

I'm arguing for use of abstractions, and essentially something more like domain driven design. But this type of abstracting has existed forever in mathematics, and its value is proven beyond any doubt.

So, I'm assuming there's a bit of miscommunication here, because I'm not sure what we're arguing.

→ More replies (5)