http://blog.csdn.net/it_man/article/details/38292925A component, or assembly, refers to a binary unit that can be deployed independently, typically in the form of a DLL . For large software systems, good component design can break down the system into smaller components, so that each development team can focus on a single component without caring for the entire system. Component design requires adherence to
Definition: A software entity, such as a class, module, or function, should be open to extensions and closed to modifications.
Problem:During the software life cycle, errors may be introduced to the Old Code when the original code of the software needs to be modified due to changes, upgrades, maintenance, and other reasons, it may also cause us to have to refactor the entire function and re-test the original code.
Solution:When the software needs to change, try to implement changes by extending
: This article mainly introduces (5) Object-Oriented Design Principles 1 --- general principles and single responsibility principles. if you are interested in PHP tutorials, refer to them. I. general principles:
1. five object-oriented
In object-oriented design, how to deal with changes in design requirements through small changes is a matter of great concern to designers. To this end, many oo pioneers have proposed many object-oriented design principles to guide the design and development of OO. Below are
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
Object-Oriented Design Principles and object-oriented design principles
Seven object-oriented design principles
1. Open and Close principles
2. Lee's replacement principle
3. Single
Six principles of design patterns (6) -- six principles of open and closed Design Patterns
Definition:
The objects (classes, modules, functions, etc.) in the software should be open to extensions, but the modifications should be closed.
Personal Understanding:
In general, the open/closed principle refers to various com
9 principles of GUI Design (Article 1) and 9 principles of gui Design (Article 1)
Basic Principle 1: Focus on users and their tasks, rather than technologyBasic Principle 2: first consider the function and then representBasic Principle 3: Consistent with users' views on tasksBasic Principle 4: The
Six principles of design patterns (3) -- six principles of dependency inversion and Design Patterns
Definition:
High-level modules should not depend on low-level modules. Both of them should depend on abstract interfaces. Abstract interfaces should not depend on specific implementations. The specific implementation dep
Article Description: Android interface and interactive design principles.
Translator by:
After the iOS hig has been a powerful classic for n years, Android has finally launched a system of comparison hig (presumably to match the Android 4.0 Ice Cream Sandwich). By carefully comparing the "Design principles"
Talking about the index design principles of mysql and the differences between common indexes, mysql Design Principles
Index definition: a separate database structure stored on a disk. It contains reference pointers to all records in a data table.
Database index design
10 required webpage navigation menu design principles and navigation menu design principles
The navigation menu of a website is the most important instruction for users to learn more about other parts of the website after reading the webpage, and is vital for retaining users. There are many ways to
Design principles and Landscape Design Principles
1.0 OCP principles
That is, the open and closed principle means that the design should be open to the extension and closed to the modification. After the software is designed, the
Six principles of design patterns (5)-the six principles of design patterns
Definition:
An object should have a minimum understanding of other objects. The dimit rule is also known as the minimum Knowledge rule. It is called the Least Knowledge Principle (LKP) in English.
Personal Understanding:
The primary objective
Seven major object-oriented design principles (Transition) and seven major design principles
I. Single responsibility principle:
Full name: "Single-Responsibility Principle"
Object-Oriented Design
Note: For a class, you should focus only on one thing and only one cause of it
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
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
Why design patterns? Let's take a look at the six principles and use the design pattern principles.
Introduction
I don't like reading books very much, because I forgot to read ten lines of books, so I read the left teacher and copied it to improve my memory.
This is the http://www
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.