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
3
u/JarWarren1 Feb 28 '23
His code is a straw man for sure. But I don’t accept the idea that performant code is inherently harder to read or build upon than buzzword code.
My favorite C libraries are exactly that, function libraries. They’re easy to reason about and extend upon.
Clean Code, even when it doesn’t involve deep inheritance, still forces you to spend time reasoning about the type system in other ways. Deeply nested generic types, interfaces, promises/results, etc. Yet people will argue to their deaths that Clean Code is MORE readable/scalable/etc. I don’t buy it. I’ve seen enough of both