星期三, 7月 05, 2006

design patterns

josh ko如下所言

design patterns
面對特定情境,從前人經驗所歸納出來的解決方法
一種特定模式的解法


ps新座右銘如下
養我者父母,教我敗書者josh

3 則留言:

Josh Ko 提到...

喔,我講的 patterns 指的就是 design patterns :P。

Josh Ko 提到...

GoF《Design Patterns》p.2, 1.1 What is a Design Pattern?

Christopher Alexander says, "Each pattern describes a problem which occurs over and over again(JK 注:因同樣問題重複出現,從而歸納萃取出對症下藥的 "patterns"。) in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice."(JK 注:因為 "patterns" 只是「樣式」、「模式」、「範式」,不是針對每個具體問題的精確解答。)Even though Alexander was talking about patterns in buildings and towns, what he says is true about object-oriented design patterns. Our solutions are expressed in terms of objects and interfaces instead of walls and doors, but at the core of both kinds of patterns is a solution to a problem in a context.

yen3 提到...

只是一種解決的方法,並不像algorithm要求的如此精準~

design pattern 在不同的language中實作是不同,但是理念相同

algorithm 實作,我想,只是源碼的差異罷了

這樣子想不知對否

哈,禮拜五要去敗啦,不用太擔心