
design
numenshane1
啥都懂点,啥都不精!
殊途同归
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
设计思维点滴二:classes and objects
What Is and What Isn’t an Objectdefine control objects as “the ones that unite courses of events and thus will carry on communication with other objects“an object represents an individual, identifiableitem, unit, or entity, either real or abstract, with a原创 2010-07-08 14:53:00 · 848 阅读 · 0 评论 -
responsive web design 浏览器UI布局呈现策略 zhangbowd@hotmail.com
“Recently, an emergent discipline called “responsive architecture” has begun asking how physical spaces can respond to the presence of people passing through them. Through a combination of embedded robotics and tensile materials, architects are experimenti翻译 2011-01-13 20:50:00 · 873 阅读 · 0 评论 -
elements of reusable object-oriented software NOTE
Class versus Interface Inheritance <br /> Class inheritance defines an object's implementation in terms of another object's implementation. In short, it's a mechanism for code and representation sharing. <br /> In contrast, interface inheritance(原创 2010-11-14 09:59:00 · 611 阅读 · 0 评论 -
系统设计原则--SRP OCP LSP DIP ISP
一、单一职责原则(SRP) 每个类应当只负责单一内聚的职责,每一个职责都是变化的一个轴线,当需求变化时,该变化会反映为类的职责的变化。一个类应当仅有一个引起它变化的原因,如果一个类承担了多于一个的职责,那么引起它变化的原因就会有多个,等于把这些职责耦合在了一起。违反SRP的设计通常可以采用门面模式或代理模式进行重构,分离业务的职责。二、开闭原则(OCP) 软件实体(类、包、模块等)应该是可以扩展的,但是不可修改的,即对于扩展是开放的,对于修改是封闭的,对实体的行为扩展时,无需改动源代码或转载 2010-12-13 10:20:00 · 2231 阅读 · 0 评论 -
DFS架构
分布式文件系统FastDFS架构剖析key word : load-balancing 、distributed 、indexing server(sync)、storage server(grouping policy)、 chunk server (not support segmentation storage, suitable for small file capacity FastDFS是一款类Google FS的开源分布式文件系统,它用纯C语言实现,支持Linux、FreeBSD、AIX等UN原创 2010-11-30 10:03:00 · 1049 阅读 · 0 评论 -
mspaint implementation research
<br />http://wenku.baidu.com/view/2e5863e79b89680203d825c4.html<br />使用五种设计模式实现画图板<br /> <br />原创 2010-09-08 11:52:00 · 505 阅读 · 0 评论 -
OOD启示录
“你不必严格遵守这些原则,违背它们也不会被处以宗教刑罚。但你应当把这些原则看成警铃,若违背了其中的一条,那么警铃就会响起。” <br />----------Arthur J.Riel(1)所有数据都应该隐藏在所在的类的内部。(2)类的使用者必须依赖类的共有接口,但类不能依赖它的使用者。(3)尽量减少类的协议中的消息。(4)实现所有类都理解的最基本公有接口[例如,拷贝操作(深拷贝和浅拷贝)、相等性判断、正确输出内容、从ASCII描述解析等等]。(5)不要把实现细节(例如放置共用代码的私有函数)放到类的公有接翻译 2010-09-12 09:43:00 · 650 阅读 · 0 评论 -
设计思维点滴一:complex system
The Five Attributes of a Complex SystemHierarchic Structurethe fact that many complex systems have a nearly decomposable,hierarchic structure is a major facilitating factor enabling us to understand,describe, and even ‘see’ such systems and their parts.It原创 2010-06-24 15:03:00 · 1130 阅读 · 0 评论 -
high-performance server architecture
引言<br />本文将与你分享我多年来在服务器开发方面的一些经验。对于这里所说的服务器,更精确的定义应该是每秒处理大量离散消息或者请求的服务程序,网络服务器更符合这种情况,但并非所有的网络程序都是严格意义上的服务器。使用“高性能请求处理程序”是一个很糟糕的标题,为了叙述起来简单,下面将简称为“服务器”。本文不会涉及到多任务应用程序,在单个程序里同时处理多个任务现在已经很常见。比如你的浏览器可能就在做一些并行处理,但是这类并行程序设计没有多大挑战性。真正的挑战出现在服务器的架构设计对性能产生制约时,如何通过改转载 2010-08-12 17:24:00 · 672 阅读 · 0 评论 -
WPF architecture analyzing
http://martinfowler.com/eaaDev/PresentationModel.htmlview is only responsible for projecting image to screenpresentation model do data syncronization with view, has separated data member and data member same as view.presentation model has reference to view原创 2010-11-23 15:00:00 · 749 阅读 · 0 评论