Home > Work > The Robert C. Martin Clean Code Collection (Collection)
1 " Every time you write a comment, you should grimace and feel the failure of your ability of expression. "
― Robert C. Martin , The Robert C. Martin Clean Code Collection (Collection)
2 " Duplication is the primary enemy of a well-designed system. "
3 " Lots of very funny code is written because people don’t take the time to understand the algorithm. "
4 " One difference between a smart programmer and a professional programmer is that the professional understands that clarity is king. Professionals use their powers for good and write code that others can understand. "
5 " LeBlanc’s law: Later equals never. "
6 " The majority of the cost of a software project is in long-term maintenance. "
7 " When classes lose cohesion, split them! "
8 " Few practices are as odious as commenting-out code. Don’t do this! "
9 " If you are not holding back some energy in reserve, if you don’t have a new plan, if you aren’t going to change your behavior, and if you are reasonably confident in your original estimate, then promising to try is fundamentally dishonest. You are lying. And you are probably doing it to save face and to avoid a confrontation. "
10 " The promise to try is an admission that you’ve been holding back, that you have a reservoir of extra effort that you can apply. "
11 " A stitch in time saves nine. The early bird catches the worm. Don’t put off until tomorrow what you can do today. "
12 " If we are diligent about building well-formed and robust systems, we should never let little, convenient idioms lead to modularity breakdown. The startup process of object construction and wiring is no exception. "
13 " errorMessage() "
14 " Implementation Patterns. "
15 " (refactored) /** "
16 " That’s being attentive to every variable name. You should name a variable using the same care with which you name a first-born child. "
17 " 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. "
18 " You know you are working on clean code when each routine turns out to be pretty much what you expected. "
19 " Duplication may be the root of all evil in software. "
20 " SPECIAL CASE PATTERN "