Discover ideo principles of design, include the articles, news, trends, analysis and practical advice about ideo principles of design on alibabacloud.com
1. Design Principles
(1) User principles. Human-Machine Interface Design must first be establishedUser type. The classification type can be determined from different angles according to the actual situation. Determine the type and predict their response to different interfaces based on its characteristics. This require
coupling.
----- The concrete coupling relationship. The two classes are dependent on each other,
This is the specific coupling relationship. If a specific class directly references another specific class
This relationship is generated.
----- Abstract coupling relationship, which occurs in a specific class and a smoke
In this way, the maximum flexibility is maintained between classes that must have a relationship.
Why is dependency inversion?The dependency between object-oriented prog
The so-called No recruit wins a recruit, practice a kung fu divides into internal strength and drilling. Drilling is like the moves, is the so-called 23 kinds of design patterns. But the internal strength, is the heart, that is the 6 kinds of laws. The light will drilling that is the huaquanxiutui, the internal strength is the realm. So many design patterns, after learning 2 times, 3 times may also forget t
perspective. Although we have a single responsibility for an interface subdivided from a single responsibility, we sometimes find that even if we have applied a single responsibility principle, there are still many methods in the interface, at this time, our interface isolation principle is required.
2. Connection Between the interface isolation principle and the single Responsibility Principle
The single responsibility principle is to abstract and segment interfaces from the business perspecti
Shaolin temple since his childhood. He worked hard and worked hard to cultivate his skills, until he reached the point where he had no choice but to win. Of course, a hero like Qiao Feng is naturally experienced in practice. In this way, Mu rongfu, the "one by one, another by another", met Qiao Feng, who beat the world without rivals with the 18 palm of the Dragon Army, and Mu rongfu lost.
From the perspective of design
1, single duty principle: For a class, there should be only one cause of its change;2, the Richter substitution principle: Subclasses must be able to replace the parent type with them;3, open-closed principle: The program's entity objects (modules, classes, functions, etc.) should be extensible, but should not be able to modify;1), two features of the open closure principle:A), which is open for expansion;b), for the modification is closed;2) to realize the core idea of open-closed:Face abstract
, high-level modules and the underlying module should be dependent on abstraction.2, detail also relies on abstraction.4. The principle of substitution on the Richter scaleSubclasses can replace parent types.Only if the subclass can replace the parent class, the Software unit function is not affected, the parent class is actually reused, and the subclass can also be a new behavior on the basis of the parent class.Because of the substitution of subtypes, modules that use the parent class type can
Java Six Design Patterns1. Single responsibility Rule (SRP): There is only one reason for the change of class.2. Dependency inversion rule (DIP):1, the high-level module should not rely on the underlying module, both with the dependency interface;2, the interface does not depend on the details; 3, the detail depends on the interface.3. Interface isolation rules: dependencies between classes should be based on a minimum number of interfaces.4, the R
Opening and closing principle OCP (Open for extension,closed for modification). The core idea of open and close principle is that an object is opened to expansion and closed to modification.
In fact, the opening and closing principle means that changes to the class are made by adding code rather than altering the existing code. In other words, once the software developer writes out the code that can be run, it should not change it, but to ensure that it can continue to run, how to do this? Th
Design Pattern OO Principles
1, package change--single responsibility principle
2, multi-use combination, less-use inheritance-the principle of the Richter replacement
3, for interface programming, not for implementation--interface isolation principle
4, strive for loosely coupled design between interactive objects--Dimitri law
5, the class shou
method's preconditions (that is, the parameter of the method) are more lenient than the input parameters of the parent class method. 4). When a method of a subclass implements an abstract method of the parent class, the post condition of the method (that is, the return value of the method) is more than
1. Detailed introduction to six principles in design mode
Summary: Single Responsibility Principle defi
The following: Mainly describes the seven design principles of the name, definition and frequency of use.?Principle One: (Srp:single responsibility principle) Single duty principle also known as single function principleCore: Decoupling and enhanced cohesion (cohesion poly, low coupling)Describe:Classes are much more likely to be modified, so you should focus on a single function. If you put multiple functi
1. Opening and closing principle (the Open Closed principle OCP)
A module should be open in terms of extensibility and should be closed in terms of modification. Therefore, the interface encapsulation mechanism, abstract mechanism and polymorphic technique should be considered as far as possible in object-oriented design. The principle is also suitable for non object-oriented design method, is one of the i
Tags: efficiency file Cap File System Runtime design principles Description Program implementation recommendations1. Relationship between the original document and the entityCan be a pair of one or one-to-many, many-to-many relationships. In general, they are one-to-one relationships: a single original document corresponds to and corresponds to only an entity.In special cases, they may be one-to-many or man
Tags: blog http ar os using SP strong on fileDatabase design principles (reproduced)1. Relationship between the original document and the entityCan be a pair of one or one-to-many, many-to-many relationships. In general, they are one-to-one relationships: a single original document corresponds to and corresponds to only an entity.In special cases, they may be one-to-many or many-to-one relationships, that i
Object-oriented design principles are at the heart of oops programming, but most of the Java programmers I've seen are enthusiastic about design patterns like Singleton (singleton), Decorator (adorner), OBSERVER (Observer), Instead of focusing enough attention on learning object-oriented analysis and design. It is impo
He was able to make a revolution in the way we use home appliances, and now we still have it as a design inspiration for the modern world, the best example of which is Apple. The core features of many of Apple's best-selling products are based on the design principles of Dieter Rams.
Dieter Rams's most famous design i
Ryan Boudreaux, primarily for the hospitality industry and the federal government, wrote a series of articles on four design principles, the first Effective design principles for Web Designers:contrast , as follows:
If you have received a formal course in design, you may ha
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.