Design Patterns - Creation Patterns


Please indicate the source of the reprint: http://blog.csdn.net/ndzjx/article/details/77884906



























An American article is attached: (from the software designer test questions in the first half of 2017)



 

    The beauty of software is in its function, in its internal structure, in her function, in her structure, and in the way her team creates her.
and in the way in which it is created by a team. To a user, a program For the user, a program that presents the correct functions through an intuitive and simple interface is beautiful.
with just the right features presented through an intuitive and simple For a software designer, it is beautiful to separate internal structures and minimize internal coupling in a simple and intuitive way.
interface is beautiful.To a software designer,an internal structure         
That is partitioned in a simple and intuitive manner, and that minimizes for both developers and managers, the significant progress that an active development team will take every week, producing bug-free code, is beautiful.
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 Our world needs software--lots of software. Fifty years ago, software was run on several large and expensive machines.
was something that ran in a few big and expensive machines. Thirty years Thirty years ago, in most corporate and industrial environments.
ago it was something that ran in most companies and industrial settings.
Now there is software running in our cell phones, watches, appliances, now we have software in our cell phones, watches, appliances, cars, toys and tools, and the demand for new and better software will not stop.
automobiles,toys,and tools. And need for new and better software never
stops. As our civilization grows and expands, as developing nations build, as developing nations build infrastructure, as developed nations strive to achieve greater efficiency,
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. We know she can be difficult to use, unreliable, and carelessly structured.
Unreliable, and carelessly structured. We know that there are software. We know that the tangled and careless internal structure of some software systems makes them expensive and difficult to change.
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 system crashes and misbehavior.
there are software systems that crash and misbehave. These are ugly systems.
Unfortunately, as a profession, software developers tend to create more ugly systems, not beautiful ones.
ugly systems than beautiful ones.
    There is a secret that the best software developers know. Beauty is a secret that the best software developers know. Beauty is cheaper than ugliness, and beauty is faster than ugliness.
Cheaper than ugliness. Beauty is faster than ugliness. A beautiful software A beautiful software system can be built and maintained with less time and less money than an ugly software system.
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 new software developers don't know this. They think they have to do everything fast and fast.
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, big mistake! They do everything fast and fast, making software rigid and incomprehensible!
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. On the contrary, ugliness is really 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.
























Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325795882&siteId=291194637