Re:“Clean” Code, Horrible Performance – Casey Muratori [video]
by randomdata on Tuesday February 28, 2023 @11:38AM
(#34971347)
> But he seems more interested in picking a fight with clean code.
Or, more likely, a straw man.
"Clean" exists to allow you to think about how to approach certain problems in TDD. Namely how to separate your logic so that units can be reasonably put under test. If you don't practice TDD, you have no reason to consider "clean" in the first place.
I think we're all interested to learn about better ways to do things, but he didn't even try to broach the problem "clean" purports to solves.
The iPhone comparisons are extremely cringe. Real application do so much more then this contrived example. Something that feels fast isn’t the same thing as something is fast.
Would I advise beginner programmer’s to read this book? Sure, let them think about ways to structure code.
If he just had concluded with, that it is important to optimize for the right thing that would be fine. But he seems more interested in picking a fight with clean code.
And yes performance is a lost art in programming