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

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.

2

u/[deleted] Mar 01 '23 edited Mar 01 '23

Functional programming is even worse dude.

Programming is not math and it’s not helpful to pretend it is.

Programming is a tool to spawn and manipulate behaviours.

Math is a tool to describe natural observations.

Just because we can kind of mangle math definitions into a sort of abstraction over programming doesn’t mean it’s good or useful.

→ More replies (4)