News for hackers. Stuff that matters.
Re:“Clean” Code, Horrible Performance by whstl on Tuesday February 28, 2023 @10:07PM (#34978287)
On the other hand, "Clean Code", at least the variant from the book, is very frequently also extremely difficult to write or to read in larger codebases too.

The claim that more complicated "Clean Code" scales better or allows for more maintainable software hasn't been proven by anyone, and everyone with enough experience has worked with several counter examples.

The problem of code maintainability is not solved by this coding philosophy.

Re:“Clean” Code, Horrible Performance by singron on Wednesday March 01, 2023 @12:26AM (#34979084)
Sometimes people forget that "Clean Code" is a book, and it's not exactly stellar. This is a pretty thorough tear-down: https://qntm.org/clean

I'm totally onboard with prioritizing readability over performance for most code, but the style in the book has a lot more tradeoffs than it discloses, and you often don't really appreciate that until you are trying to debug if/how A transitively calls Z in a 10 million line codebase.

It's really hard to have a constructive conversation about this though since it's so subjective, any example is too trivial, and any real system is too large.

Re:“Clean” Code, Horrible Performance by bcrosby95 on Wednesday March 01, 2023 @12:39AM (#34979153)
I agree. But I also think everyone should read it at some point. Many programmers err so far on the other side of "Clean Code" that they need to be lopped upside the head with the book and maybe they'll end up somewhere more reasonable.