Home > Author > Robert C. Martin
21 " You should name a variable using the same care with which you name a first-born child. "
― Robert C. Martin , Clean Code: A Handbook of Agile Software Craftsmanship
22 " If you're good at the debugger it means you spent a lot of time debugging. I don't want you to be good at the debugger. "
― Robert C. Martin
23 " Clean code always looks like it was written by someone who cares. "
24 " 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)
25 " Of course bad code can be cleaned up. But it’s very expensive. "
26 " It is not the language that makes programs appear simple. It is the programmer that make the language appear simple! "
27 " You are reading this book for two reasons. First, you are a programmer. Second, you want to be a better programmer. Good. We need better programmers. "
28 " What would happen if you allowed a bug to slip through a module, and it costyour company $10,000? The nonprofessional would shrug his shoulders, say“stuff happens,” and start writing the next module. The professional wouldwrite the company a check for $10,000! "
― Robert C. Martin , The Clean Coder: A Code of Conduct for Professional Programmers
29 " There are two parts to learning craftsmanship: knowledge and work. You must gain the knowledge of principles, patterns, practices, and heuristics that a craftsman knows, and you must also grind that knowledge into your fingers, eyes, and gut by working hard andpracticing. "
30 " Why do most developers fear to make continuous changes to their code? They are afraid they’ll break it! Why are they afraid they’ll break it? Because they don’t have tests. "
31 " When you are working on a problem, you sometimes get so close to it that you can’t see all the options. You miss elegant solutions because the creative part of your mind is suppressed by the intensity of your focus. Sometimes the best way to solve a problem is to go home, eat dinner, watch TV, go to bed, and then wake up the next morning and take a shower. "
32 " Any organisation that designs a system will produce a design whose structure is a copy of the organisation's communication structure "
― Robert C. Martin , Clean Architecture
33 " One difference between a smart programmer and a professional programmer is thatthe professional understands that clarity is king. Professionals use their powers for good and write code that others can understand. "
34 " The problem is that we view estimates in different ways. Business likes to view estimates as commitments. Developers like to view estimates as guesses. The difference is profound. "
35 " Don’t Use a Comment When You Can Use a Function or a Variable "
36 " Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best. "
37 " The proper use of comments is to compensate for our failure to express ourself in code. Note that I used the word failure. I meant it. Comments are always failures. "
38 " Perhaps you thought that “getting it working” was the first order of business for a professional developer. I hope by now, however, that this book has disabused you of that idea. The functionality that you create today has a good chance of changing in the next release, but the readability of your code will have a profound effect on all the changes that will ever be made. "
39 " Programmers must avoid leaving false clues that obscure the meaning of code. "
40 " When you see commented-out code, delete it! "