Seven principles: Open and close principle, Richter substitution principle, dependency reversal principle, synthesis/aggregation multiplexing principle, Dimitri rule, interface isolation principle, single duty principle.The open and closed principle is the cornerstone of object-oriented reusable. The other six principles are instruments and tools.Details of the rules (reproduced in this section)http://kb.cn
Article Description: any new era of web sites, responsiveness, dedication perfect rendering, no matter the access device, but it brings another huge advantage to web design. The response era of web design principles confirms the value, so it is more obvious that these are effective and useful regardless of time or designer practice. Here are seven basic
In any programming language, the use of functions is mainly due to the following two scenarios:
code block duplication, it is necessary to consider the use of functions to reduce the redundancy of the program
code block is complex, this time you can consider the use of functions, enhance the readability of the program
when the process is complex enough, consider the functions and how to combine them. in Python function design, mainl
Summary
Relational database is a kind of database which is widely used at present, the design of relational database is the process of organizing and structuring data, the core problem is the design of relational model. For the smaller database size, we can easily handle the table structure in the database. However, as the scale of the project grows, the database becomes more complex and the relational mode
The following is a typical example of a large system.
Before discussing the design principles, we must first clarify the fact:
In a software project team, when discussing project design, everyone has their own design philosophy. These design concepts are generally re
shown below:
///
Despite the use of BMW cars, drivers have a way to drive a carriage. You may say that if you have a wooden tree, you can add the method of the kaibao carriage! This solved the problem for a while, but what about Ferrari and Bentley? Therefore, there is a problem in our design: There is a tight coupling relationship between the driver and the Mercedes-Benz. The result is that the maintainability of the system is greatly reduced and
Design principles applicable to all regions (1)
One design is suitable for one project but not necessarily for another project. It is unrealistic to grasp the various designs applicable to each project. Experience tells us that using rules can help our brain take control of more things. Similarly, with the help of design
refactoring techniques can find its existence, it is the simplest but most difficult to apply the principle of the need for designers to discover the different responsibilities of the class and separate it, The multiple responsibilities of the discovery class require designers to have strong analytical and design skills and related refactoring experience.example of a single responsibility principleExample descriptionA Java-based
Just like the location of Newton's three major laws in classical mechanics, the open-closed principle is the cornerstone of object-oriented reusable design (Object Oriented Design or OOD. Other design principles (the Lee principle of substitution, the principle of dependency inversion, the principle of synthesis/aggreg
Just like the location of Newton's three major laws in classical mechanics, the Open-Closed Principle is the cornerstone of object-oriented reusable Design (Object Oriented Design or OOD. Other design principles (the Lee principle of substitution, the principle of dependency inversion, the principle of synthesis/aggreg
satisfied first;
Note: Often we do not adhere to the third paradigm in the design table, because the reasonable sink residual field will give us to reduce the join query;
For example: The album table will be added to the image of the click Number field, in the album Picture table will also add the image of the click Number field;
MySQL Database design
PHP design patterns-six principles. PHP design patterns-six principles code that follows the six principles is generally considered to be scalable and reusable: These six principles should be followed by any object-oriented langua
Just like the location of Newton's three major laws in classical mechanics, the open-closed principle is the cornerstone of object-oriented reusable design (Object Oriented Design or OOD. Other design principles (the Lee principle of substitution, the principle of dependency inversion, the principle of synthesis/aggreg
Document directory
(1) Single-Resposibility Principle and interface-segregation principle)
Single Responsibility Principle
Interface isolation principle
(2) principle of open-closed principle and principle of dependency inversion (dependecy-inversion principle)
Open and closed Principle
Dependency inversion
(3) liskov replacement principle (liskov-substituion principle)
We often talk about three main characteristics of object-oriented: encapsulation, inheritance, and polymorphism. T
service invocation and assembly, while SDO defines and regulates the data in the service world, which has a clearly defined information model, independent of the data source and the specific data access technology, Makes it easier and more efficient for services to access data and exchange data between services.Many companies have supported SCA/SDO on the Java EE platform and have also provided C + + versions. IBM WebSphere Process Server 6 implement
depend upon details, details should depend upon abstractions.Another expression is:to program for the interface, do not program for implementation. The English definition is:Program to a interface, not an implementation.analysis of dependency reversal principleThe dependency reversal principle was Robert C. Martin's third engineering notebook in 1996 for the C + + Reporter column, which he later joined in
class must be self-compatible with its base class.◆ Dip: The dependency inversion principle depends on abstraction rather than implementation.◆ ISP, interface isolation principle, customers only need to pay attention to the interfaces they need.
The other six items are about the package design principles. In this article, a package refers to a binary publishable file, such as A. jar file or DLL file, rat
creates a problem: The table is the Union primary key with the order number and the product number. In this table, the product name, unit, commodity price and other information is not related to the table's primary key, but only related to the product number. So this violates the design principle of the second paradigm. And if the Order Information table is split, the product information is separated into another table, the Order Item table is also s
directly with each other, then these two classes should not have direct interaction, and if one of the classes needs to invoke a method of another class, the call can be forwarded through a third party.
The fundamental idea of this principle is to emphasize the loose coupling between classes, and the weaker the coupling between classes, the more beneficial the reuse, the more weakly coupled class is modified and does not affect the related classes. In the structure
This article explains the principles that programming should follow.
I just want to give a rough translation, or take a closer look at the English language so that it will not be misled by others.
The principles of good programming
By Christopher Diggins
Today's post is a lightly edited repost from my blog at the area, a web-site dedicated to users of AutodeskMedia and entertainment products. I came up
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.