• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Square, Ellipse, Ring
行动就是一切
博客园 首页 新随笔 联系 订阅 订阅 管理

2008年1月30日

Design by Contract
摘要: A failure on the precondition indicates a bug on the client/callerA failure on the postcondition indicates a bug on the routine/supplier.Inheritance:Making sure that the precondition is always equal t... 阅读全文
posted @ 2008-01-30 16:44 Ellipse 阅读(200) 评论(0) 推荐(0)
 
 

2007年11月3日

what's interface
摘要: Someone may think thatinterface, the more the better, but not indeed: interface is action inclining, and interface supposes that it can have several implementation, if not, there's not necessary to us... 阅读全文
posted @ 2007-11-03 03:48 Ellipse 阅读(246) 评论(0) 推荐(0)
 
 

2007年10月18日

Provider, Manager, Helper
摘要: Provider: supports you,- "has"Manager: Designates &keepsyou, - "knows & manage", it seems that it will manage a family of product and expose services to cusumersHelper: asto itself, it does no... 阅读全文
posted @ 2007-10-18 20:33 Ellipse 阅读(233) 评论(0) 推荐(0)
 
 

2007年10月15日

Build your own CAB #13 - Embedded Controllers with a Dash of DSL
摘要: to make the view itself simplerto help a view control some distinct part of its behaviorcontext: we have a Trade screen that has seven different states depending upon whether you're creating or review... 阅读全文
posted @ 2007-10-15 21:43 Ellipse 阅读(213) 评论(0) 推荐(0)
 
 

2007年10月11日

Layer supertype for MVP
摘要: Presenter: publicinterfaceIPresenter{///<summary>///Bindstheview.///</summary>///<paramname="view">Theview.</param>voidBindView(objectview);///<summary>///Bindsthemodel./... 阅读全文
posted @ 2007-10-11 14:50 Ellipse 阅读(315) 评论(0) 推荐(0)
 
 

2007年10月9日

Build your own CAB#12 - Rein in runaway events with the "Latch "
摘要: temporarily detach the event handler while you are performing some special actionsfor example. When you select a tabpage in a tabcontrol, the TableSelected event will be rosed. But when you are creati... 阅读全文
posted @ 2007-10-09 17:15 Ellipse 阅读(252) 评论(0) 推荐(0)
 
 

2007年9月28日

Build your own CAB#11 - Event Aggregator
摘要: meet problems too many subscribers and publisher too many kinds of eventSo aggregator know all objects manage the events from all objects propagate event to subscribers 阅读全文
posted @ 2007-09-28 11:18 Ellipse 阅读(280) 评论(0) 推荐(0)
 
 

2007年9月27日

Build your own CAB Part #9 - Domain Centric Validation with the Notification Pattern
摘要: the model specify which validator will be used, and then the validator pass the model to validation attribute and gather error message from the attributes. 阅读全文
posted @ 2007-09-27 19:00 Ellipse 阅读(224) 评论(0) 推荐(0)
 
Build your own CAB Part#8 - Assigning Responsibilities in a MVP pattern
摘要: I like that:Model, is just lump of data and keep some domain business that with Model.Service, when the presenter needs to call more then one services, then you can think about facade.Presenter & ... 阅读全文
posted @ 2007-09-27 18:01 Ellipse 阅读(191) 评论(0) 推荐(0)
 
 

2007年9月17日

Build your own CAB Par#7 - what's the Model?
摘要: to View: Domain Model Class - easy, little change to the application, but, tightly coupled and the Model may be polluted with craft to support UI needs; This pattern can be preferred when the screen d... 阅读全文
posted @ 2007-09-17 18:54 Ellipse 阅读(266) 评论(0) 推荐(0)
 
 
下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3