《设计模式解析》 第12章 专家设计之道 复习题

《设计模式解析》 第12章 专家设计之道 复习题

Review Questions

Observations

1:

Alexander uses the term alive to characterize good designs. What terms did I suggest using when it comes to software?

健壮而灵活的系统

2:

Good design requires keeping what in mind?

The big picture。心中始终要有整个设计的蓝图,来指导各个阶段的工作。

3:

Alexander suggests that the best approach to design involves "complexification." What does this mean?

从一个简单的最初设计开始,逐步细化,逐步添加各种特性,使得设计越来越复杂。是一种循序渐进的过程。

4:

To Alexander, what relationships does a pattern define?

模式定义了问题域中实体间的关系。模式是用于解决特定问题的,针对实体间的不同关系,能够适用不同的模式,因为模式本身是针对实体间的相互关系的解决方案。

5:

What are Alexander's five steps to design?

找出模式à从背景模式开始à从背景转向内部à改进设计à实现

Interpretations

1:

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?

设计,不应该一开始就着手局部,应该从整体开始,然后转向内部,继而分化出各个部分的特质。

Opinions and Applications

1:

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的说法仍适用。

2:

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?

好的彩光,开阔的视野,令人心仪的色泽搭配

3:

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的方法。

而一些二次开发的项目,似乎就难以适用了。因为需要沿着其他人的方案继续,继续去改造一个以存在的项目。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值