Robert C. Martin

Robert C. Martin

Yazar
7.0/10
1 Kişi
·
1
Okunma
·
0
Beğeni
·
12
Gösterim
Adı:
Robert C. Martin
Tam adı:
Robert Cecil Martin
Unvan:
Yazılım Mühendisi
Doğum:
Palo Alto, Kaliforniya, Amerika Birleşik Devletleri, 1952
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.
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.
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.
Yazara henüz inceleme eklenmedi.

Yazarın biyografisi

Adı:
Robert C. Martin
Tam adı:
Robert Cecil Martin
Unvan:
Yazılım Mühendisi
Doğum:
Palo Alto, Kaliforniya, Amerika Birleşik Devletleri, 1952

Yazar istatistikleri

  • 1 okur okudu.
  • 1 okur okuyor.
  • 1 okur okuyacak.