October 2025
Intermediate to advanced
673 pages
15h 55m
English
Do you remember what Bjarne Stroustrup said about clean code? He said, “Clean code does one thing well.” And, indeed, many other software authors have said things like that over the years. The problem with that statement is: What does one thing mean?
As I said in a previous chapter, I was once responsible for a C function that was 3,000 lines long. It was named gi, which stood for graphic interpreter. Had anyone challenged me about whether my 3,000-line function did one thing, I would have confidently replied: “Certainly! It interprets graphics.”
Of course, a 3,000-line function must be doing a lot of things while it interprets ...
Read now
Unlock full access