Akış
Ara
Ne Okusam?
Giriş Yap
Kaydol
Gönderi Oluştur

Robert C. Martin

Robert C. MartinClean Code yazarı
Yazar
9.3/10
6 Kişi
20
Okunma
1
Beğeni
1.636
Görüntülenme

Robert C. Martin Sözleri ve Alıntıları

Robert C. Martin sözleri ve alıntılarını, Robert C. Martin kitap alıntılarını, Robert C. Martin en etkileyici cümleleri ve paragragları 1000Kitap'ta bulabilirsiniz.
"Honesty in small things is not a small thing."
Reklam
The Art Of Clean Code?
The bad news is that writing clean code is a lot like painting a picture.
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.
The discipline of test driven development
Code, without tests, is not clean. No matter how elegant it is, no matter how readable and accessible, if it hath not tests, it be unclean.
Of course, in those days we didn’t know LeBlanc’s law: Later equals never.
Reklam
The name of a class should describe what responsibilities it fulfills. In fact, naming is probably the first way of helping determine class size. If we cannot derive a concise name for a class, then it’s likely too large. The more ambiguous the class name, the more likely it has too many responsibilities. For example, class names including weasel words like Processor or Manager or Super often hint at unfortunate aggregation of responsibilities.
Writing software is like any other kind of writing. When you write a paper or an article, you get your thoughts down first, then you massage it until it reads well. The first draft might be clumsy and disorganized, so you wordsmith it and restructure it and refine it until it reads the way you want it to read.
You cannot write code if you cannot read the surrounding code. The code you are trying to write today will be hard or easy to write depending on how hard or easy the surrounding code is to read. So if you want to go fast, if you want to get done quickly, if you want your code to be easy to write, make it easy to read.
We all know it is best to give responsibilities to the most qualified persons. We often forget that it is also best to postpone decisions until the last possible moment. This isn't lazy or irresponsible; it lets us make informed choices with the best possible information. A premature decision is a decision made with suboptimal knowledge. We will have that much less customer feedback, mental reflection on the project, and experience with our implementation choices if we decide too soon.
Reklam
We are going to look at code from every different direction.
Sayfa 38 - Prentice Hall
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.
Sayfa 38 - Prentice Hall
If you have experienced even one small part of the story I just told, then you already know that spending time keeping your code clean is not just cost effective; it’s a matter of professional survival.
19 öğeden 1 ile 15 arasındakiler gösteriliyor.