關於mvc

mvc patter:

Model :business logic Contains all the data manipulated by the system. This can include an interface to an external store, such as a database,typically the model exposes only a public API to the other components

 

View: display code. The widgets that actually place the information in the user’s view. In wxpython ,pretty much anything in the wx.Window hierarchy is part of the view subsystem.

 

Controller :Interaction logic,the code that receives user events and ensures that they are handled by the system. In wxpython ,this subsystem is represented by the wx.EvtHandler hierarchy.


據說這個東西不是什麼新鮮的技術,早在1970s的時候smalltalk時代就有此概念,這個概念最早用在gui編程中,是一種結構化編程的思想,現在用在web編程中,用途不同了,東西還是那些東西,道理還是那個道理。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章