MVC的爸爸
In researching the origins of the MVC pattern, I came across an archived posting from the Usenet group comp.lang.smalltalk from 1994. The posting read, in part:
I thought you might be interested in a ‘bit of history’ on origin of the Model-View-Controller paradigm.
Prof. Trygve Reenskaug is generally cited as being the creator of the MVC concept. He worked with the Smalltalk group at Xerox PARC as a visiting scientist in 78/79. During this stay at Xerox PARC he developed the MVC. I know him well and have talked to him about this. He confirms it, although stating that it was a collaborative effort at Xerox PARC.
My first idea was to separate presentation from information because the information structure is reasonably stable while the way we need to see it and manipulate it varies with the task. (This idea stems from around 1970 when I first became interested in distributed systems.)
Trygve Reenskaug現在已從挪威大學退休,並對UML的規格製定貢獻良多。
這個故事告訴我們:
1、早點兒生當xxx之父的機會比較大(當然像愛因斯坦這樣的大腦就例外,他大概生在那個時代都還是會發明跟相對論一樣偉大的理論)
2、如果要找最原始的mvc範例,可以多看smalltalk的相關討論站。另外colin moock的EAS2一書中也大量模仿smalltalk 的精神(加上部份java的實作手法,因為他的co-author是java背景)
3、如果要找現代一點的mvc或mvp範例,java struts 是個不錯的管道,它是遵循 MVC model 2 的精神去實作,只是我個人覺得它將工作流程的tier切分太細,雖然非常有彈性,但非常不適合小型的案子使用,因為很容易就會被架構給淹死。因此上乘之道是瞭解struts的原理與部份實作手法,然後改寫出自已喜歡的方式,例如針對RIA的架構去改一個適合的mvc pattern出來,目前這方面我已經有相當的成果。


Trackback this post | Subscribe to the comments via RSS Feed