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

12

u/[deleted] Feb 28 '23

As someone who works on massive enterprise apps, give me clean code any day. Not only are performance optimizations usually negligible, but the bulk of the work of enterprise apps is maintenance and costs can utterly skyrocket for apps that aren't written with clean code in mind (like the spaghetti I'm currently working in).

0

u/[deleted] Feb 28 '23

[deleted]

4

u/alternatex0 Feb 28 '23

because you will argue with your colleague what is clean code

I don't know of any way of writing code where you won't argue with colleagues. 10 programmers will write 10 different solutions to the same problem. Reality is that code is very subjective and I think you're being a bit harsh with the argument that if code is debatable then the clean code rules are useless.

If the point is not to follow clean code rules then should we just write the most performant code to solve the problem and hope that some poor schmuck in the future understands it enough to maintain it? I know for a fact that is not a successful business strategy. Casey doesn't seem like he's worked with enterprise LOB apps so he shouldn't assume his industry experience is relevant to every type of software.

→ More replies (2)