What are two approaches to identifying commonalities and variabilities?
1、使用共性,可变性分析表。
2、选择问题域中任2个东西,问: 其中一个是另一个的变化么 他们都是其他东西的变化么?
Interpretations
1:
CVA says you should have only one issue per commonality. Why is this important?
如果每个共性有若干个问题,会导致这个抽象会有多个概念,这样内聚性就降低了。
2:
How do CVA and design patterns complement each other?
CVA完成了关注抽象,使得我们能够尽早找到最有用且高内聚的抽象。
设计模式使得我们关注于抽象间的关系,并能够利用过去的成功实践。
二者相辅相成。
Opinions and Applications
1:
Experienced developers, even more than inexperienced ones, often focus on entity relationships too early, before they are clear what the right entities are. Is that your experience? Give an example to confirm or refute this statement.
《设计模式解析》 第15章 共性与可变性分析 复习题 Review QuestionsObservations1:What are two approaches to identifying commonalities and variabilities?1、使用共性,可变性分析表。2、选择问题域中任2个东西,问:其中一个是另