the client program should not be forced to rely on methods that they do not need to use. Its English abbreviation is ISP, English full name is interface segregation Principle. in fact, the interface separation principle means: an interface does not need to provide too much behavior, an interface should only provide an external function, should not be all operations are encapsulated in an interface. 6. Dimitri Principles (LOD) The core idea of the Dimitri principle is that one object should kno
A distributed hash (DHT) implementation algorithm, proposed by MIT in 1997, was designed to address hot spot problems in the Internet, with a similar intent to carp. The consistent hash corrects the problem caused by the simple hashing algorithm used by carp, so that distributed hashing (DHT) can be really applied in the peer-to-peer environment. The consistency hash algorithm proposes four definitions for
. For example, if you have adjusted the kernel parameters, you must run it again. /configure to make the new settings take effect. You need to re-run the configure script before using the make command to re-compile the script. There are two methods: first, run the following command: config. status -- recheck; the second is to use the command touch config. status, which updates the timestamp of the file. Note: If you want to add or delete the./configure option, you must re-enter the complete comm
stop the electricity. As a result, he said that the electricity was supplied to two fish ponds and he had to be careful. Someone sitting in the middle of the fish pond has already begun to catch a hacker. We still get nothing here, a little depressed. It's almost and it's just getting started. My dad's hook ran a crucian carp, marking that the water wasn't without fish. Then the tragedy began to get connected, first, an uncle's fishing wire fell off
squatted at the door of the anguosi and wrapped the dazzling white silk around my forehead, Chen Dong appeared. When he saw me, he also saw the white paper behind me: "selling as a dead mother "."What is your name ?" He stood in front of me and looked gentle.I slowly raised my head and looked straight at him: "It looks like duckweed, and there is no surname .""Duckweed? You should not be the one who is on the move. At least you should swim like a fish in the water .""Fish? The little girl has h
bait: but the younger brother has no bones to climb fast, and it will not become a butterfly. What should he do without carrying this hard and heavy shell?
Mom: Because will drill Earth and the earth will protect him.
Little snail bait cried: We are so poor, the sky is not protected, and the Earth is not protected.
Snail mother comforted him: "That's why we have shells !」
We don't rely on the sky or the land. We rely on ourselves.
3. Sharks and fish
Someone once tried to put the most ferociou
the younger brother has no bones to climb fast, and it will not become a butterfly. What should he do without carrying this hard and heavy shell?Mom: Because will drill Earth and the earth will protect him.Little snail bait cried: We are so poor, the sky is not protected, and the Earth is not protected.Snail mother comforted him: So we have shell! We don't rely on the sky or the land. We rely on ourselves.3. Sharks and fishSomeone once tried to put the most ferocious shark and a group of tropic
Demeter (or the short-cut-level) is also called the least knowledge principle (least knowledge principle or LKP). If the two classes do not communicate with each other directly, then these two classes should not have a direct interaction. If one class needs to call a method of another class, it can be forwarded by a third party.
The premise of the dimit rule is that in the structure design of the class, each class should minimize the access permissions of members.
The fundamental idea of the di
design depends on details, which is poor because the policy is affected by changes in details. The dependency inversion principle makes the details and policies depend on abstraction. The stability of abstraction determines the stability of the system.
Iv. Interface isolation principle (ISP)
Interface segregation principle: it is better to use multiple special interfaces than to use a single total interface. In other words, from the perspective of a customer class: the dependence of a class
bait: but the younger brother has no bones to climb fast, and it will not become a butterfly. What should he do without carrying this hard and heavy shell?Mom: Because will drill Earth and the earth will protect him.Little snail bait cried: We are so poor, the sky is not protected, and the Earth is not protected.Snail mother comforted him: "That's why we have shells !」 We don't rely on the sky or the land. We rely on ourselves.
3. Sharks and fish
Someone once tried to put the most ferocio
* maintainability and reusability are not exactly the same. The following principles can be used to increase the maintainability of a program: 1. "open-closed" principle (OCP) the principle of open-closed principle is that a software entity should be open to extensions and closed to modifications. Ii. LSP liskov substitution principle: Subtypes must be able to replace their base types. Iii ,? Dependency inversion principle (DIP) iv ,? Interface isolation principle (ISP) 5 ,? Synthesis/aggregati
) Liskov substitution principle (Rishi replacement principle): Subtypes must be able to replace their base types. Iii. Dependency inversion principle (DIP) Iv. Interface isolation principle (ISP) 5. Principles of synthesis/aggregation multiplexing (CARP) Vi. dumit rules) I. "open-closed" principle (OCP) We are required to make the software extensible and closed as much as possible when designing the software. Open-closed PrincipleIn principle,
sky will protect her.
Little snail bait: but the younger brother has no bones to climb fast, and it will not become a butterfly. What should he do without carrying this hard and heavy shell?
Mom: Because will drill Earth and the earth will protect him.
Little snail bait cried: We are so poor, the sky is not protected, and the Earth is not protected.
Snail mother comforted him: "That's why we have shells !」
We don't rely on the sky or the land. We rely on ourselves.
3. Sharks and fishSomeone onc
Black fungus, grown on bamboo trees, looks like human ears, black or brown black. It is also known as black fungus, also known as wood fungus, trek chicken. Black fungus is extremely nutritious,According to historical records, it was the exclusive product of Emperors in the ancient times, containing a lot of carbohydrate, protein, iron, calcium, phosphorus, carotene,Vitamins and other nutrients, each 100 grams containing 375 mg of calcium, equivalent to 7 times of crucian
muddy ground. Just like a child looking at the old man, thinking that there will be endless fish as long as there is a fishing rod, like a staff looking at the boss, thinking that as long as you sit in the office, there will be a financial source.
Sharks and fish
Someone once tried to put the most ferocious shark and a group of tropical fish in the same pool, and then separated them with reinforced glass. At first, the shark continuously collided with the invisible glass every day,
object-oriented language. Beauty is a base class, and sister is a child class of beauty. As a "Love ()" method, brother accepts sister as a parameter. Therefore, this "love ()" method generally cannot accept the beauty instance.
I will not turn the example of the rectangle square below. You can go to the blog address above to learn about it.
2. Synthesis/aggregation Reuse Principle (CARP) (conversion from http://www.cnblogs.com/zhenyulu/articles/3
snail bait: but the younger brother has no bones to climb fast, and it will not become a butterfly. What should he do without carrying this hard and heavy shell?Mom: Because will drill Earth and the earth will protect him.Little snail bait cried: We are so poor, the sky is not protected, and the Earth is not protected.Snail mother comforted him: "That's why we have shells !」 We do not * Days, nor * places, we * ourselves.
3. Sharks and fish
Someone once tried to put the most ferocious shark and
.
My umbrella is convenient. it sits there waiting for me. it has wheels on it so that I do not have to carry it around. I don't even have to push it because it can propel itself. sometimes, I will open the top of my umbrella to let in the sun. (Why I am using my umbrella when it is sunny outside is beyond me !)
In Seattle, there are hundreds of thousands of these umbrellas in all kinds of colors. Most people call them cars.
Implementation Method:1. Use the delegate separation Interface2. Use mu
A distributed hash (DHT) implementation algorithm, proposed by MIT in 1997, was designed to address hot spot problems in the Internet, with a similar intent to carp. The consistent hash corrects the problem caused by the simple hashing algorithm used by carp, so that distributed hashing (DHT) can be really applied in the peer-to-peer environment.The consistency hash algorithm proposes four definitions for d
Carp flag on the man's Day is a legend from China's "ambitious" and "Carp leaping dragon".Gift ConsiderationsPungent odorThis kind of toys is usually cheaper than the inferior toys, do not map a cheap, thought to go home to wash the sun can be. Pungent taste, may be a toy with irritating substances, it is easy to stimulate the children's respiratory tract, the children's nasal mucosa also has a stimulating
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.