Discover ideo principles of design, include the articles, news, trends, analysis and practical advice about ideo principles of design on alibabacloud.com
I. Design Principles1. Dependency inversion principle (DIP)
High-level modules (stability) should not depend on low-level modules (changes), both of which should depend on abstraction.Abstract (stable) should not depend on implementation details (changes), and implementation details should depend on abstraction.
2. Open and closed principle (OCP)
Class modules should be extensible, but cannot be modified; open to extensions and closed to changes
printing staff ID method, the head office directly to print, thus avoiding the coupling with the staff of the branch.The purpose of the Dimitri law is to reduce the coupling between classes, because each class reduces unnecessary dependencies, so it does reduce the coupling relationship. But everything has degrees, although can avoid and non-direct class communication, but to communicate, will inevitably through an "intermediary" to contact, such as in this case, the head office is through the
Seven main object-oriented design principles
Opening and closing principles : In the face of demand, changes to the program is done by adding new code , rather than changing the original title
dependency Reversal Principle : High-level modules should not rely on the underlying modules, two should be dependent on the abstract, the abstract should not rely on the
Focus on not stopping the user and all else will follow (Focus on not planning the user and keeping everything going)
The watch is a perfect device shape that allows you to use it when doing other things, such as cooking, eating, walking, running, and even talking. If your application causes users to stop what they are doing, it is a good opportunity to consider how to use the principles in this section to upgrade the program.
Try:
Calculate the time
The basis of reusable object-oriented software-design mode, with its reusable design intention, ingenious logical thinking by the vast number of object-oriented program design is sought after. But many programmers often turn the question of thinking into what patterns they encounter. This kind of confucianism、the thinking has seriously influenced the artistry of
1. Opening and closing principle (Open Close Principle)2. The principle of substitution on the Richter scale (Liskov Substitution Principle)3. Dependency reversal principle (dependence inversion Principle)4. Interface Isolation principle (Interface segregation Principle)5. Dimitri rule (Law of Demeter) and least known principle6. Single Duty principle (Responsibility Principle)7. Combination/Aggregation multiplexing principleGeneral principles of soft
Opening and closing principles
Definition: A software entity such as classes, modules, and functions should be open to extensions and closed for modification.
The source of the problem: in the software lifecycle, because of changes, upgrades, and maintenance, and other reasons for the software to modify the original code, may introduce errors in the old code, may also cause us to have to refactor the entire function, and the need for the original cod
First Lecture: 1. Object-oriented design patterns and principles Introduction to Design Patterns: Each pattern describes a problem that recurs around us, and the core of the solution to the problem.--christopher alexander{Architect} Software designers ' understanding of the concept of design patterns: (1) The
Article Description: design in a lot of times are inspired by the Flash, mobile application design is more flexible, how to better design an application, there is no specific methods and conventions. However, in order to better avoid the designers detours, design principles
What is design mode? Design patterns are a set of reusable, most known, categorized purposes, code design experience Summary. Use designPatterns are designed to reuse code, make code easier for others to understand, and ensure code reliability. There is no doubt that design patterns are more in the system than othersWi
closed principle is vague. It only describes how the objects in the software are opened for extensions, but not modified or disabled. The principle of opening and closing is an abstract summary of the first five principles. The first five principles are specific implementations of the principle. Therefore, if the principle of opening and closing is used, it is actually a bit false because it does not have
Before, the author shared an article, "Comprehensive analysis of the importance of Web page vision design principles", the article simply introduced the web design principles of the importance of visual. A friend added my QQ to discuss what principles of visual
Since the core of object design is the class, the following principles are basically the discussion of the design of the class, the other types of elements are relatively simple, basically also conforms to most of the principles listed here. Before we have analyzed the basic princi
Article Description: Excellent web Design 10 principles: innovative practical and rich in beauty.
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
This article was compiled from 〈a Matter of principle〉, author of Facebook product design director Julie Zhuo.Julie stressed in the article, designers make every design decision behind, should have to have this, it is best to have to stand the test of the principle of support, and these principles can be scaled, so that other members of the team can understand, d
Atitit. log system principles and design and best practices.
1. log system is an indispensable unit test, tracking debugging tool 1
2. The log system framework should generally include the following basic features 1
1. The output log has its own category. 2
2. logs are divided into different levels according to certain standards. 2
3. multithreading is supported. 2
4. Stability. 2
3. An Ideal log Mode 2
4.
For a single responsibility principle, there should be only one reason for its change in a category.
If a class has too many responsibilities, it is equivalent to coupling these responsibilities. A change in responsibilities may weaken or suppress the class's ability to fulfill other responsibilities. When a change occurs, the design may suffer unexpected damages. In fact, we can find it for classification and separation.
What software
The single responsibility principle (Srp:single responsibility principle), also known as the single function principle, stipulates that a class should have only one reason for change.If a class takes on too much responsibility, it is tantamount to coupling those responsibilities together. A change in one's responsibilities may weaken or inhibit the ability of this class to perform other duties. This coupling leads to a fragile design that, when change
In the previous Java 23, you learned about the singleton mode and Factory mode of design mode. Here, the design pattern is introducedPrinciple of object-oriented thought designIn the actual development, we want to understand the object-oriented thinking more deeply, we must be familiar with the design principles of the
1. Definition
In short, the definition of the merging/aggregation reuse principle is: Use synthesis and aggregation as much as possible, and do not use inheritance as much as possible.
2. Meaning
Why "we should try to use synthesis and aggregation instead of inheritance?
This is because:
First, inheritance reuse destroys the packaging. It exposes the implementation details of the parent class to the subclass, which violates the principle of information hiding;Second, if the parent class ch
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.