News for hackers. Stuff that matters.
Re:“Clean” Code, Horrible Performance – Casey Muratori [video] by winkelwagen on Tuesday February 28, 2023 @07:19AM (#34968466)
This is the first video I’ve seen by him. I’m by no means a fan of clean code. But I think he’s making a fool of himself here. Picking out 1 code example from the book doesn’t proof that much on its own. This stuff is so language, os, hardware and compiler specific anyway.

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

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.