《设计模式解析》 第12章 专家设计之道 复习题
Review Questions
Alexander says, "But it is impossible to form anything which has the character of nature by adding preformed parts." What does he mean by this? 设计,不应该一开始就着手局部,应该从整体开始,然后转向内部,继而分化出各个部分的特质。 |
Sometimes, the case that is made for object-oriented programming is that it gives you small, reusable components that you can assemble to create a program. Does this align with Alexander or contradict him? Or is Alexander speaking at a different level? Why? 要用这些小组件去创造一个程序,也是需要从简单的设计开始,当需要某一个特定的功能块时,而那些组件又能够满足他的需要时,便可以将其组装到程序当中,而不满足需要的,只能摒弃。因此,从顺序上看,仍是从整体的概念出发,继而开始向内去实现。因此,Alexander的说法仍适用。 | |
Have you ever seen a courtyard or entryway in a house or building that has felt particularly "dead" or uninviting? As you look at Alexander's description of the Courtyard pattern, what entities did your courtyard fail to resolve or involve? 好的彩光,开阔的视野,令人心仪的色泽搭配 | |
Think of one software project in which you think Alexander's approach would apply and a project in which it would not apply. What are the issues? Keep this case in mind as you read the rest of the book. 从头开始设计的项目,都可以借鉴Alexander的方法。 而一些二次开发的项目,似乎就难以适用了。因为需要沿着其他人的方案继续,继续去改造一个以存在的项目。 |