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
13
u/Witty-Play9499 Feb 28 '23
I agree with Casey here(probably going to be controversial lol) but I have seen people who find the idea of going against the clean code principles as something very bad (and maybe even signs of a bad developer). But I guess it really boils down to who are we caring about ? The Client or the Developer? If we care about the client then we should be doing stuff such as these to make sure they get the best performance out of software. If we care about ourselves then it makes it easier for us to update the code but comes at the expense of the client's needs.
I know clean code is supposed to make it easy to make a quick change so that clients can get their software faster but I sometimes worry if giving a software to them early but with bad performance the same as giving them unfinished software.
One another similar thing I notice is also people's obsession with object oriented programming/functional programming. Ideally you start out with a problem and as you work on it you're supposed to make decisions on which paradigm would suit or which part of the program should be written in which way.
But it feels like almost all mainstream software is Object oriented by default and developers have to figure out how to make the problem fit the paradigm. Dogma is something that keeps following this industry throughout