What is Design Pattern? Many people talk to Design Pattern, what architectural design will be pulled, because they all look at the "Design Patterns" classic book of the four people, and no digestion will be fully charged. If you can't explain Design Pattern, I will suspect that they really understand the true meaning of Design Pattern. What is the easiest definition of Pattern Pattern is: As long as it is repeated, it is pattern. According to this definition, you can find a bunch of Pattern's example: the quarter price in the fourth advertisement: Original price ..., now buy as long as ..., send you a group ..., please call it right away ... If you are busy, please call it later. Use the divided screen to display the difference after use before use to strengthen the persuasion. For example: Upgrade from C to E (Note: C and E are not a generic language). Looking for someone to say: "Jerry! Thank you for introducing this L'Elei Java series, let me be a prostate Java expert in the company in just three months, this is really amazing!" Pattern at the time of the election: 1. Questioning the opponent a money or a marriage affection 2. Put your family to the stage to cry, one game, the eradication, the opening, "Love to win, win" other like Jin Guang Party's technique, scratching the skills. .. Wait, there is also a repeated feature, so it can be considered pattern. There are also a lot of pattern in the Pattern movie in the movie, please see the example below. When I raise the pursuit of the tension, the Pattern bad guys chased the good people, but the good man hid the car, but found the car to make it, and the engine will continue to launch, and let the words "come on, come one". When the bad guys chased the good people, the good people rushed into the elevator, and they crushed the Close button and dropped out of "Come on, Come One". Many movies use the above two Pattern, although it is an old-fashioned Pattern, but every time I see it, I always make me nervous about attack, I have to admit that these two pattern are very effective. Increase the Pattern movie who kills bad people's rationality, last, bad guys and good people, the final good people are victory, but if the good people will directly put bad people, the image of the good person in the hearts of the audience will be damaged, so good people first righted a bad way However, the bad guys didn't get into the bones, secretly took out a gun to aim a good person, saying that it was fast, the good people alert, for the self-insurance, saving the bad guilty. This pattern can make good people have humanity and make the bad people die. Bed played Pattern regardless of the relationship with the plot, the screenwriter and director always loves to add a passionate bed. This pattern is quite troubled with my family, because every time we see it, our conservative family often feel very embarrassing, the Pattern we react out is: excuse to pour tea, go to the toilet, call ... Help ... but the eyes are still stealing. The horror film is not required for me, and the movie screams screaming (Scream) The first set of horror film is a lot of Pattern. Formulating Hollywood movies is more Pattern, while European movies are less Pattern.
As for the film-derived film of Quentin Tarantino, it is difficult to find Pattern. Because of the Hollywood movie, you can find Pattern, so there is often a feeling like. Many people criticize Hollywood movies very "formula". Basically, Pattern is a formulating manifestation. So, is it a good thing to formulate? In terms of art, formulating results will cause rigid, so there is a lot of negative effects. The film number is "eight art", which is also an artistic creation, so it is best not to have too many pattern, otherwise it must be "no new intentions" by the film review. In the project, formula is a good thing. These formulas are the results of "Thousand Hamer", which use these formulas to ensure that the project has certain quality and accelerates the progress of the project. Software development is also a project, but also need to use formula as possible. (The software needs the art of art, which is not discussed herein). What is Design Pattern, Pattern is a smart crystallization of "Thousand Hamer". Experienced experts and unreportable newbies, the difference is that experienced experts know how to solve specific problems in proper opportunities, this is the Know-HOW cultivated in the month of the experts from the experts. See "Software Industry Knowledge Economy"). In general, the program for object-oriented software developments can be roughly divided into OOA (object-oriented analysis), OOD (object-oriented design), OOP (object-oriented ". The pattern used in the OOD (Object-Oriented Design) phase is called Design Pattern. With good Design Pattern, the system architecture can make the system architecture (also faster), which will have a lot of help for subsequent OOP, test, maintenance. Design Pattern will tell you, do not use inheritance without inheritance, in the case, without using the intelce ... so kind. These are the smart crystallization of the seniors in the software industry. I want to emphasize the Pattern of Design Pattern specializing in the Design period. But Pattern (such as program code, internal shrinkage) at Coding is not called Pattern to avoid confusion. Pattern during the Coding period is best called Coding Style (or Code Style). This noun in Design Pattern can also be used in many places. I think the grandson's Art of War is a book of Design Pattern, which tells you what kind of military actions should I do. As for how to cut people, it belongs to the part of the Implementation, and does not belong to the scope of the grandson. What is anti-pattern not all Pattern is good, bad pattern is called anti-pattern. If Anti-Pattern appears in your system, you have made someone else's "typical mistakes". In short, Anti-pattern is a wrong demonstration, try to avoid it. Let Design Pattern become your visitors, many people have to come in the design phase: "Pattern is hated when you use it." In fact, you can avoid this. There are many books on the DESIGN PATTERN and ANTI-PATTERN on the market.