Akış
Ara
Ne Okusam?
Giriş Yap
Kaydol

Robert C. Martin

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

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

En Eski Robert C. Martin sözleri ve alıntılarını, en eski Robert C. Martin kitap alıntılarını, etkileyici sözleri 1000Kitap'ta bulabilirsiniz.
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.
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.
Reklam
Every system is built from a domain-specific language designed by the programmers to describe that system. Functions are the verbs of that language, and classes are the nouns. This is not some throwback to the hideous old notion that the nouns and verbs in a requirements document are the first guess of the classes and functions of a system. Rather, this is a much older truth. The art of programming is, and has always been, the art of language design.
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.
"Honesty in small things is not a small thing."
Reklam
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.
Of course, in those days we didn’t know LeBlanc’s law: Later equals never.
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 Art Of Clean Code?
The bad news is that writing clean code is a lot like painting a picture.
Reklam
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.
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.
19 öğeden 1 ile 15 arasındakiler gösteriliyor.