Practical Object-Oriented Design: An Agile Primer Using Ruby
Rate it:
Kindle Notes & Highlights
14%
Flag icon
Booyaa
Ask the class questions about its purpose to identify if it has a single responsiblity. Single responsibility principal should also apply to the methods within the class.
15%
Flag icon
Booyaa
recognising dependencies in an object it knows the name of another class it knows the name of a message to be passed to another class other than itself it knows the arguments for another objects initializer/constructor it knows the positional arguments for another classes’ constructor
22%
Flag icon
Some classes are more likely than others to have changes in requirements. Concrete classes are more likely to change than abstract classes. Changing a class that has many dependents will result in widespread consequences.
24%
Flag icon
Design experts notice domain objects without concentrating on them; they focus not on these objects but on the messages that pass between them.
28%
Flag icon
Demeter is often paraphrased as “only talk to your immediate neighbors” or “use only one dot.”
28%
Flag icon
Instead of evaluating this phrase by counting the “dots,” evaluate it by checking the types of the intermediate objects.
29%
Flag icon
If you remove the dots from this line of code, your costs may well go up instead of down.