- 博客(3)
- 收藏
- 关注
原创 面向对象编程原则
<br /><br />SRP The Single Responsibility Principle: A class should have one, and only one, reason to change. <br /><br />OCP The Open Closed Principle: You should be able to extend a classes behavior, without modifying it. <br /><br />
2010-10-20 00:12:00 264
原创 MVC 模型-视图-控制器体系结构
MVC 模型-视图-控制器体系结构 J2EE 是根据一个特定的应用程序结构开发的,这个结构称为 模型-视图-控制器(MVC)。MVC 清楚地将应用程序定义为三个分离的层: 模型:应用程序的数据和业务规则的集合――通常称为应用程序的业务逻辑。 视图:应用程序的用户界面。 控制器:定义了应用程序如何对用户输入或模型层的变化作出反应――通常称为应用逻辑。 MVC 体系结构的优点 J2EE 中没有任何东西强迫您使用 MVC 体系结构来组织应用程序,但是这样做有许多很好的理由。通过定义三层之间的清
2010-10-19 23:18:00 995
原创 Adapter
Definition<br />Convert the existing interfaces to a new interface to achieve compatibility and reusability of the unrelated classes in one application.Also known as Wrapper pattern.Where to use & benefitsTry to match an interface(WindowAdapter, et
2010-10-19 20:35:00 353
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人