Design Patterns in software application development in the real reference

   At night feeling on the plane in Wuhan to Hangzhou somewhat boring, this time finally saw a beautiful flight attendant, and indeed looked very beautiful to watch, boring to write a blog to publish home go up in Hangzhou, wrote a design examples of modes in practical applications of system development.
   In fact, design patterns can really understand and apply the design pattern is not an easy thing, because most of the daily development work is not a collection of strange and so can be designed to achieve the goal.
   When there are special needs, if the idea of using design patterns, or indeed more difficult to achieve in a timely manner to achieve a code that will be very bloated, difficult to understand and even people reading.
   Suppose we have a need to have a compatible client program supports a variety of operating modes, and just write a program, instead of writing the code for different clients different publishing models, after all four sets while maintaining client program is terrible write a thing if the client program is ideal.
   Add features such as a character, may be added directly to the database, it may be through WCF, Remoting, WebService and other means of server, client, complete separation of the release mode.
   Actually write such a program is purely to play technology, software systems rarely true real customer needs can be so flexible deployment, write such a program can be flexibly deployed fully but also to the future needs work, a good framework to stabilize Well, when a customer needs can immediately demonstrate to the customer, more likely to be successful, more likely to win the competition.
   Program only needs to be configured in Config.xml <add key = "ServicePath" value = "DotNet.Service" /> parameter can be, for example, modify DotNet.WCFClient, DotNet.RemotingClient smooth handover to the current operating mode software other programs that do not modify.

 

FIG be appreciated that the model of the factory design pattern can be freely selected parts, each part to achieve the function are the same. There may optionally be a four channels. 

 

   Opportunities often belong to those who are prepared, if you want to get success in the future will need to work a little bit more every day, in the next 10 years, the software industry will be full of opportunities for the industry, the software industry can do no wrong choice, but to be able to software professionals can work independently.

Reproduced in: https: //my.oschina.net/iwenr/blog/227564

Guess you like

Origin blog.csdn.net/weixin_33889245/article/details/91674255