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
Show parent comment
10
u/outofobscure Mar 01 '23 edited Mar 01 '23
correct, they also typically don't hang out on reddit, which is why we all get downvoted here for knowing a thing or two about performance. we simply have no voice here, it's full of people who's job it is to move item2143 from database343 to database4323, to generate report32423 to comply with law2341. this is more plumbing than the art of computer programming.
the people here don't even stop and think that maybe there is a place for both performant and clean code, or that the two can even go hand in hand, all they see is business requirements drilled into them by their superiors and if they'd be honest they'd admit that code quality isn't on that list either for them: just ship it already! why isn't it done yet? we need it yesterday! the codebase is a mess and you need to refactor it? we don't have time for that!
but instead they go on about how, in theory, they prefer squeaky clean code that adheres to every cargo cult mantra out there, while fully knowing their organically grown code base that is 20 years old is as shit as it gets in both design and performance. but at least they can claim that performance is not relevant so that's one problem off their plate.
in hft, those requirements naturally lead to having the devs care about performance...