Clean Code Cheat Sheet (TDD/ATDD)
От: Uzzy Россия  
Дата: 07.06.13 16:54
Оценка: 56 (8)
Наткнулся на следующий документ

http://www.planetgeek.ch/wp-content/uploads/2013/06/Clean-Code-V2.pdf

Может кому еще будет полезно.
Re: Обсудим?
От: BluntBlind  
Дата: 15.08.13 00:55
Оценка:
Спасибо, клевая штука. У меня есть вопросы, не все я понял, не все...

На первом листе в разделе Dependencies\Feature Envy:
The methods of a class should be interested in the variables and functions
of the class they belong to, and not the variables and functions of other
classes. When a method uses accessors and mutators of some other object
to manipulate the data within that object, then it envies the scope of the
class of that other object. It wishes that it were inside that other class so
that it could have direct access to the variables it is manipulating.


Вот это я понять не могу, в чем суть?
Re: Clean Code Cheat Sheet (TDD/ATDD)
От: __kot2  
Дата: 16.08.13 23:52
Оценка:
вообще многие советы они или не о чем "Too dense algorithms that lose all expressiveness."
или спорные "Return a constant to get first test running. Refactor later."
или вообще бред "A test checks exactly one feature of the testee."
Re[2]: Обсудим?
От: DrDred Россия  
Дата: 17.08.13 06:29
Оценка: 4 (1)
Здравствуйте, BluntBlind, Вы писали:

BB>На первом листе в разделе Dependencies\Feature Envy:

BB>The methods of a class should be interested in the variables and functions
BB>of the class they belong to, and not the variables and functions of other
BB>classes. When a method uses accessors and mutators of some other object
BB>to manipulate the data within that object, then it envies the scope of the
BB>class of that other object. It wishes that it were inside that other class so
BB>that it could have direct access to the variables it is manipulating.
BB>


BB>Вот это я понять не могу, в чем суть?


Похоже на изложение закона Деметры
Обсуждение идет чуть ниже
Автор: AlexRK
Дата: 19.07.13
в этом же разделе форума
--
WBR, Alexander
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.