设计模式---创建型模式


转载请注明来自:http://blog.csdn.net/ndzjx/article/details/77884906



























附美文一篇:(来自2017上半年软件设计师试题)



 

    The beauty of software is in its function,in its internal structure,   软件的美,在她的功能中,在她的结构中,也在她的团队创建她的方式中。
and in the way in which it is created by a team. To a user,a program        对于用户来说,一个程序通过直观简单的界面来呈现正确的功能,是美的。
with just the right features presented through an intuitive and simple       对于一个软件设计者,以简单直观的方式分隔内部结构,最小化内部耦合,是美的。
interface is beautiful.To a software designer,an internal structure         
that is partitioned in a simple and intuitive manner,and that minimizes     对于开发者和经理,一个积极的开发团队每周都会取的重大进展,生产无缺陷的代码,是美的。
internal coupling is beautiful.To developers and managers ,a motivated 
team of developers making significant progress every week,and producing 
defect-free code,is beautiful.There is beauty on all these levels.          所有这些层次,都存在‘美’。
    our world needs software--lots of software. Fifty years ago software     我们的世界需要软件--大量的软件。五十年前,软件是在几台大而昂贵的机器上运行的。
was something that ran in a few big and expensive machines. Thirty years     三十年前,是在大多数公司和工业环境中运行的。
ago it was something that ran in most companies and industrial settings. 
Now there is software running in our cell phones,watches,appliances,      现在我们的手机,手表,电器,汽车,玩具和工具都有软件,并且对于新的更好的软件的需求不会停止。
automobiles,toys,and tools. And need for new and better software never 
stops.As our civilization grows and expands,as developing nations build     随着文明的发展和扩大,随着发展中国家建立基础设施,随着发达国家努力实现更高的效率,
their infrastructures,as developed nations strive to achieve ever greater 
efficiencies,the need for more and more Software continues to increase.     越来越多的软件的需求不断增加。
It would be a great shame if,in all that software,there was no beauty.     如果在所有软件中没有‘美’的话,这将是一个极大的羞耻。
    We know that software can be ugly. We know that it can be hard to use,  我们知道软件可能是丑陋的。我们知道她可能很难使用,不可靠,不小心结构化。
unreliable ,and carelessly structured. We know that there are software      我们知道有些软件系统的纠结和粗心的内部结构使得它们变得昂贵和难以改变。
systems whose tangled and careless internal structures make them expensive   
and difficult to change. We know that there are software systems that present   我们知道有一些软件系统通过尴尬和繁琐的界面呈现其功能。 
their features through an awkward and cumbersome interface. We know that        我们知道有软件系统崩溃和不当行为。
there are software systems that crash and misbehave. These are ugly systems.    这些是丑陋的系统。
Unfortunately,as a profession,software developers tend to create more       不幸的是,作为一个专业,软件开发人员倾向于制造丑陋的系统,而不是美的系统。
ugly systems than beautiful ones.
    There is a secret that the best software developers know. Beauty is             这有一个优秀的软件开发者都知道的秘密。美比丑更成本低,美比丑更快。
cheaper than ugliness. Beauty is faster than ugliness. A beautiful software         一个美的软件系统相对于丑的软件系统,可以用更少的时间,更少的钱来建造和维护。
system can be built and maintained in less time,and for less money ,than an 
ugly one. Novice software developers don't. understand this. They think that        新的软件开发者不知道这个。他们认为他们必须快速,快速地做一切。
they have to do everything fast and quick. They think that beauty is impractical.   他们认为美是不切实际的。
No! By doing things fast and quick,they make messes that make the software stiff, 大错特错!他们快速,快速地做一切,使软件僵硬,难以理解!
and hard to understand,Beautiful systems e flexible and easy to understand.        而美的系统是灵活易懂的。
Building them and maintaining them is a joy. It is ugliness that is impractical.    建造和维护她们是一种乐趣。相反,丑陋才真正是不切实际!
Ugliness will slow you down and make your software expensive and brittle.           丑陋会减慢你的速度,使你的软件昂贵而脆弱。
Beautiful systems cost the least build and maintain,and are delivered soonest.     (最后告诉你)美的系统成本最低,维护成本最低,交货时间最短。
























猜你喜欢

转载自blog.csdn.net/ndzjx/article/details/77884906