Years ago, the human body strength to expand the site, access to food, then compared to development. Later, people learned to use tools. Start using stones and sticks.
Later, the human civilization, the sword and the body is not the only way to determine the strength of the only condition. And then later. Some intelligent people based on the fight habits to add to the philosophy of thinking, to defend and retreat, sports disease Xu, rigid and false as the principle. Invented martial arts, even some people who have poor physical qualities. According to their own situation to learn the corresponding martial arts can also become a master martial Arts. This is thanks to the people who invented the martial arts cheats, but also to the development of the Society for martial arts talent needs.
By now, man has invented a musket. Even if a disabled person can kill a brawny man, it was unthinkable.
Dozens of years ago. Computers have just been invented, and people use it to solve some simple problems, and the program apes make some short code to implement some short functions. They write the process freely and in a style. As society's demand for computers and their functions increases sharply. The problem with the apes is getting bigger, and not every program ape can write qualified software. People fall into the software crisis, only a few days ability to use their own wisdom to solve the problem.
They reached an agreement and summed up the way to solve the problem for future generations to learn.
So that we learn a few years of programming technology, we can achieve a certain level. With the emergence of these "martial arts cheats", the requirements of the procedural apes are getting lower. People use good tools and understand principles and patterns to write code. I believe. Over the decades. The program ape uses the mouth to say a word the corresponding software can write the code.
With the study of "design pattern", I think this subject is the skill cheats of the program ape, it is the crystallization of wisdom of the predecessors. Tell us about the various problems and solutions we may encounter. From machine language to high-level language. From process development to object-oriented development, this is the embodiment of the complication of software development. is also the embodiment of technological progress.
One of the complications of software development is the variability of demand.
Process-oriented through the partitioning of functional modules, through the function of mutual calls to achieve, when the requirements change, you need to change the function, and the modified function may be called in many places. Correlate multiple data. Make the code maintenance and debugging become the airport difficult.
Twists and turns, the birth of object-oriented programming, overcomes the problems caused by the change. Object-oriented attention is to the object. Be able to define what you are responsible for and do what is required of it. Developers. Understand the need to be a single object. These objects are then created so that they are called to each other until they meet the needs of the business. At this point, assume that demand changes again. We can encapsulate these areas of change, making it easier to isolate code from the effects of change.
With the object-oriented technology. Developers are able to design the code so that changes in requirements do not have much impact, but this also makes design development more difficult. The complexity of object-oriented design makes overall development difficult again. The appearance of design patterns gives us the means to solve complex problems on the shoulders of giants.
Design Pattern Summary--Program Ape's Skill cheats (on)