Design Pattern new solution

zhaozj2021-02-16  84

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 pattern

The simplest definition of Pattern is: As long as it is repeatedly repeated, Pattern. In accordance with this definition, you can find a bunch of pattern:

Pattern in the fourth advertisement:

Original price ..., now buy as long as ..., send you a group ..., please call it right away ..., 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 show: "Jerry! Thank you for introducing this L'Elei Java series, let me become a Java expert in the company in just three months, this is amazing!"

Pattern:

1. Questioning the opponent a money or a marriage affair 2. Put your family Tongtong on the stage and cry. Singing. Singing "Love will win"

Other techniques such as Jin Guangthen Party, the scratch scams ..., etc., all have repeated features, so it can be considered pattern.

Pattern in the movie

There are also a lot of Pattern, please see the example below.

Increase the tension of tension when chasing

When the bad guys chased the good people, the good man hid the car, but found that the car did not move, and the engine was worried, and he worked hard, and he had the word "com 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 protagonist to kill bad people rationality Pattern

Finally, bad guys and good people's confrontation, the last good people were victory, but if a good person directly put bad people, the image of the good person in the hearts of the audience would be damaged, so the good people first rug a life, but the bad guys did not be in the bones. Snoving a gun, aiming at a good person, saying that it is fast, the good people alarm, for self-insurance, and smashed the bad guys. 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.

Horror Pattern

There is no need for me, and the movie screaming (Scream) The first episode analyzes a large pile of horror film.

formulation

Hollywood film 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

Therefore, Pattern is a smart crystallization of "Thousand Hamer". Experienced experts and no experience, the difference is that experienced experts know how to use certain formulas (Pattern) to solve specific problems in an appropriate timing, which is the Know-How to solve specific problems.

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 ... 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 visitus

转载请注明原文地址:https://www.9cbs.com/read-14394.html

New Post(0)