Interface and mask

xiaoxiao2021-03-06  126

What is the same as the interface and masks?

1. First, there is a "mouth" word. Moreover, this port has the role of transmitting information.

2. Can block some popular dissemination.

3, will bring some inconvenience.

In 2003, the Spring broke out made everyone maximized masks, using masks, masks also brought us a certain security guarantee.

.

The corresponding in the software industry, this time, in the industry, various epidemic viruses (this viral non-computer virus) industry, everyone's mask

- The interface is getting more and more attention. After studying and practicing past time, I have some experience, share with you, please correct it.

In the object-oriented software development, the software has an object consisting of objects. It seems that all humans constitute this society. Since it is a society

Will, people and people can not have a relationship, these relationships can be divided into three categories, need to know in-depth understanding, intimate contact

People with more stable relationships, such as lovers; people who only need to understand each other, such as friends; for you

None of people, such as strangers.

How can I make my minimize spare to death during a SARS in the virus? Not more than the following principles.

Principle of masks:

1. Minimize as much as possible, because anyone may become infectious sources. This is to eliminate the contact of the strangers. Reduce

, Friend's contact, of course, is not possible to meet with lovers. You can't completely disconnect between friends.

2, when contacting friends, must wear a mask, because the mask can block the attack of the virus to a certain extent. And try to minimize contact,

Don't complicate it with simple contacts.

3, and lovers? Of course, when you can contact your lovers, if you can, you can play a certain role in your mask, but it seems to have a little kiss.

Piece of mask. "Oh, dear, what brand of masks you wear today, really good, or fruit taste." "Oh, I just drunk

The taste of the juice is also good, and I am drinking her mask! ". Because of the depth of contact with each other, cross-infection is generally inevitable.

The mask may be in vain. Maybe sometimes single is not a good choice :).

4, and have proven to be infected or suspected people can absolutely not touch directly, if there is anything, it is best to pass the middle (such as a doctor

) Transcend, of course, and the doctor should also wear a mask, they are also people.

Mask Buy Guide:

5. Effective masks must be worn. How is it a valid mask? It must be compliant with two points: 1) It is not possible to hinder normal communication. 2) Can block large

Some viruses. If Hanni ("The protagonist of" Silent Lamb "is ugly and full of slits, you can't meet the first

Condition. The kidnapper is used to plug the tabbed mouth, and it cannot be a qualified mask (if it can be called a mask), it violates it.

Article 2.

6. Try to wear a beautiful mask, at least it should also look forward to the eye. Let everyone deal with you are more happy and wearing masks, not to let

You have taken the ugly mask and talk.

Known side effects:

7. Finally, it is also the most important. After wearing a mask, others are no longer recognized. Usually just like to deal with beauty, occasionally

Will go with dinosaurs. Of course, he didn't know that she was a dinosaur after wearing a mask. Perhaps it can be an imaginary marriage.

Temporary only these, everyone may have better suggestions. tell me. These human beings have resistant to SARS, which is equally effective in our software.

The software industry always has a large and small plague in the middle of the time, epidemic disease. Small, in the "copy paste Dafa"

Small bugs such as "reuse" code have some prevention and solving methods (1), although we have not completely used

stand up. The big demand changes such a "SARS" magnitude, but has not fully avoided vaccines, but some precautions are still

Some, which is now more popular and effective is the above "mask principle". That is to use the interface reasonably. The number in turn is as follows:

Explanation: Hereinafter, "SARS" refers to the change of demand; "lovers" refers to mutual dependence, one of which changes the other party

The object changed; "Friends" refers to the objects that use each other, limited and stable features; "strangers" refers to the phase

There are no logical correlations between each other; "infection" and "suspected" refers to objects that have been known more frequently, or in the future.

Objects that can change; "mask" is naturally an interface.

Interface usage principle:

1, "Don't talk to strangers" this ancient training, don't have to stress again, everyone should know and observe. So, "strangers" was

After I find that "SARS", you don't have to worry if you have been infected.

2. Use the right "mask" for "friends". For example, "masks" used between "Chess" should only communicate and "

"Chess" related information, "mask" can be "strict", only allowed this information. This is even "confirmed", I

You don't have to worry. Of course, if "virus" "infected" our "mask", you can't spur. That is, unless the interface is fixed

It has been modified, otherwise it will not be implicated by the demand change. If you are looking at the principle of DIP, the interface should be defined is what you want to get

Service, so unless you want to get another service or no need for existing services, the interface should not be modified. at this time,

In fact, you have first "SARS", you have used your "friends" - the object of the service. Perhaps it is considered to have "SARS

".

3. If the two classes are too much dependent, the interface cannot play a role. At this time, give up the interface, hold the other party directly, maybe it is more

Good solution. Although in human society, a pair of lovers are enviable, but it is best not to rely on such a close object, it seems "

Single object "is more popular. But absolutely can't make this quantity too much, otherwise they will not be able to travel like" triangular love ".

4, sometimes, only masks are not enough, but also a "doctor" as an intermediary. Especially some places that will change, this can

Better isolation changes. At this time, some design patterns are very useful. And many design patterns are implemented by this intermediary.

Such as Adaptor, AbstractFocTroy, etc. "Love people" seem difficult to kiss through the intermediary, of course, "King of Qian Wang" can

, But not everyone is doing. If you will not have "SARS", but because of your "lovers" frequently, you have to "SARS"

", I think you should consider this" lovers ", because you are not right, you are not a" same life bird. "

Interface design principle:

5. When designing an interface, you must also try to use effectiveness. First, the interface should meet your requirements and adapt to your needs. on the basis of

When the method is in the interface, the more simple and better. In this way, you will be exposed to others. "Exposure" is equally unwelcome in the software world.

6. The interface is naming as much as possible. How is it beautiful? First of all, the semantics are clear, it is standardized (such as using XXXCREATOR),

It is necessary to use the words simple, refining, it is best to use common words, don't let everyone know, but also ask for help the mountain word.

Additional benefits:

7. The interface also has the benefits of flexibility while isolating changes. If I want to watch the game, I said, "Give me a TV watching game!

"

TV, I haven't said that I haven't said to give me a color TV. Hey, what is there? "" Is it in a three-dimensional experience device, you can not only use it

Watch the game and use it to feel the immersive feelings. "Well, I will have it." "Sorry, respected gentleman, you just said that electricity

Vision, that is not a TV, so you can't use it. "" This guy, maybe I have just said, "Hey, give me a ball.

The things of the game "" I thought.

Or metaphor is some intensive, and it is also a chaotic expression. This also shows that I can't understand the interface.

Nonetheless, I hope to express some of my understanding of the interface, I look forward to everyone's correction and discussion.

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

New Post(0)