随笔分类 -  设计模式

Design Patterns
摘要:闲来无聊,正好小组人员讨论到桌面的开发,那把笔者接触的WIndows平台下的几个主要的发展过程聊一聊。主要从概述,参考资料,图书等几个方面说起。所有的界面开发都会涉及如下的几个方面的内容:v 控件 [Contrrols Widget]及验证v 绑定:数据绑定到控件和控件的内容反馈回数据v 布局系统:v 模式和支撑:和服务的通讯,MVC MVP MVVM等模式史前期->WIN16这个主要是Windows3.x的时代,这个时代笔者接触的不是很多,当年也主要是使用体验了。当年买了很多的3寸5寸的软盘把系统安装拷贝进去,找机房尝试使用了。相比于DOS,打开了一个全新的窗口。石器时代->Wi 阅读全文
posted @ 2013-11-05 18:13 2012 阅读(2080) 评论(0) 推荐(0) 编辑
摘要:使用VS2012建立Web站点有个新惊喜,默认加了KnockoutJS这个Javascript的MVVM模式的实现库,方便Web前端的开发官方站点√主页: http://www.knockoutjs.com/ √文档和手册 : http://www.knockoutjs.com/documentation/ √代码: https://www.github.com/SteveSanderson/knockout 文章和指导 √http://learn.knockoutjs.com/: 官方的指导 √http://channel9.msdn.com/Events/MIX/M... 阅读全文
posted @ 2013-01-03 09:32 2012 阅读(1786) 评论(0) 推荐(0) 编辑
摘要:多层设计中各个分层核心关注的内容: Domain Model Layer The “Domain Model Layer” is the Heart of the Software. 负责业务概念、流程和领域规则 This layer should be responsible for representing business concepts, information on the status of the business processes and implementation of domain rules. It should also contain states ref... 阅读全文
posted @ 2011-09-16 13:02 2012 阅读(578) 评论(0) 推荐(0) 编辑
摘要:Layers vs. Tiers Layers refer to the logical division of components and functionality, and not to the physical location of components in different servers or places. Conversely, the term Tiers refers to the physical distribution of components and functionality in separate servers, including the net. 阅读全文
posted @ 2011-09-04 21:06 2012 阅读(773) 评论(0) 推荐(0) 编辑
摘要:MSDN Architecture Center 看到一个资料,详细讲解了关于N层架构的内容,有具体的示范代码和电子书,非常值得.net开发人员阅读。 具体的地址: http://microsoftnlayerapp.codeplex.com/ http://msdn.microsoft.com/es-es/architecture/en/ 电子书内容 http://download.microsoft.com/download/9/F/A/9FA4753A-FC8A-40DE-9EFA-CCAFB4C835FC/DDD_NLayered_NET40_Architecture_G... 阅读全文
posted @ 2011-09-02 08:16 2012 阅读(3151) 评论(1) 推荐(3) 编辑
摘要:关于MVVM的一个动手实验,在 VS2010可以直接使用和体验。具体参考:http://visualstudiogallery.msdn.microsoft.com/af12ce3b-8337-4bbb-853f-9fdad7105ec8Introduction to Model-View-ViewModelThis hands-on-lab is intended to be an introduction to the Model-View-ViewModel (MVVM) pattern. It integrates directly inside Visual Studio, with 阅读全文
posted @ 2011-08-25 21:31 2012 阅读(532) 评论(0) 推荐(0) 编辑
摘要:几个.net的O/R框架名称URLProsConsMicrosoft Entity Frameworkmsdn官方支持 可视化很好发展时间相对短NHibernatehttp://nhforge.com开发支持,时间很长比较复杂Subsonichttp://subsonicproject.comActive Record Auto-generate codeOpen Source, Not flexibleGenomehttp://www.genom-e.comFlexible Auto-generate codeExpensive, Sparse documentation数据实体的验证数据实 阅读全文
posted @ 2011-05-27 16:43 2012 阅读(1838) 评论(0) 推荐(1) 编辑
摘要:实现MVVM的框架有很多,如:• MVVM Light Toolkit: http://mvvmlight.codeplex.com• Microsoft Prism http://compositewpf.codeplex.com/• Calcium SDK http://calciumsdk.net/• Caliburn http://caliburn.codeplex.com/•Caliburn Micro http://caliburnmicro.codeplex.com/• Silverlight.FX: http://projects.nikhilk.net/Silverlight 阅读全文
posted @ 2011-05-26 08:53 2012 阅读(6813) 评论(0) 推荐(0) 编辑
摘要:这几个工具的站点Microsoft Unity http://unity.codeplex.comService Locator http://commonservicelocator.codeplex.comMEF .net4.0内含,3.x前在codeplex上开源UtilityThe main reasons to use Unity (or any other IoC container) are if:Ø You have dependencies between your objects .Ø You need to manage the lifetime of 阅读全文
posted @ 2011-05-24 10:28 2012 阅读(5839) 评论(1) 推荐(1) 编辑
摘要:MVVM Light框架是针对WPF和silverlight开发提供的一个MVVM模式的实现,以下简要总结一下该框架。[以下基于Silverlights4]MVVM Light组成目前的框架就两个库文件GalaSoft.MvvmLight库ViewModelBase:View Model的基础类,MVVM中VM实现Messenger:用于ViewModel和View之间传递的消息,注意系统的GalaSoft.MvvmLight.Messaging命名空间下已经预定义了一些常使用的消息处理类,如DialogMessage、NotificationMessageAction、Notificatio 阅读全文
posted @ 2011-05-21 23:02 2012 阅读(9578) 评论(1) 推荐(3) 编辑
摘要:在界面开发的过程中,为了提高多人协作能力和系统的可测试性,需要引入一些开发模式,本文针对常见的几个界面模式进行汇总,在以后使用时作为一个参考。A full branch of design patterns is dedicated to building UIs . The best-known UI design patterns are the Model View Controller (MVC), the Model View Presenter (MVP), and the Presentation Model (PM) patterns that you encountered 阅读全文
posted @ 2011-05-20 09:44 2012 阅读(6178) 评论(0) 推荐(1) 编辑