Data structure usage:
Object usage:
int save(long bytes){/*....*/} -> int bytesSaved(long bytes){/*....*/}
CommonGraphBuilder -> CommonGraphs
do not use prefixes like get-, set-
"Mutability, method names, and a complete absence of constructors are nothing compared to the much bigger sin this class is guilty of. It is not class, but rather data structure. And this sin can't be forgiven. Amen"
objects must be characterized by their capabilities. Name objects considering what they are and not what they do. "Suffix -er is evil ingredient"
Example: CaseTypeProduct
"So what we get from making classes small? The answer is elegance, maintainability, cohesiveness, and testability "
Bad example
“We shouldn’t have to know about such things as static keywords in Java, but alas, we have them. I don’t know who exactly authored them in OOP, but they are pure evil. The static methods, not the authors. I hope.”
Если не удалось найти и скачать презентацию, Вы можете заказать его на нашем сайте. Мы постараемся найти нужный Вам материал и отправим по электронной почте. Не стесняйтесь обращаться к нам, если у вас возникли вопросы или пожелания:
Email: Нажмите что бы посмотреть