Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series)
Rate it:
Open Preview
4%
Flag icon
There are two parts to learning craftsmanship: knowledge and work.
6%
Flag icon
But the fault, dear Dilbert, is not in our stars, but in ourselves. We are unprofessional.
7%
Flag icon
Leave the campground cleaner than you found it.5
8%
Flag icon
The name of a variable, function, or class, should answer all the big questions. It should tell you why it exists, what it does, and how it is used. If a name requires a comment, then the name does not reveal its intent.
8%
Flag icon
If the container holding the accounts is not actually a List, it may lead to false conclusions.1 So accountGroup or bunchOfAccounts or just plain accounts would be better.
8%
Flag icon
A truly awful example of disinformative names would be the use of lower-case L or uppercase O as variable names, especially in combination.
10%
Flag icon
that clarity is king.
10%
Flag icon
A class name should not be a verb.
10%
Flag icon
When constructors are overloaded, use static factory methods with names that describe the arguments.
10%
Flag icon
Modern editing environments like Eclipse and IntelliJ provide context-sensitive clues,
10%
Flag icon
Likewise, it’s confusing to have a controller and a manager and a driver in the same code base.
12%
Flag icon
The first rule of functions is that they should be small. The second rule of functions is that they should be smaller than that.