Statement: This series of blog reference "Big Talk design mode", author Geoscience. It is generally considered that code that complies with the following six principles is easily extensible and reusable: the six principles of any object-oriented language should be adhered to, in order to make your code easy to expand high-consumption as far as possible to meet th
With the C # language foundation, we still need to learn the design pattern principle before learning the design pattern. This is the premise of the design pattern and is the criterion for us to judge whether the design is reasonable. So in this blog, I will first learn and
database, in the file system in the C + + language after the processing is completed, the final storage is appended to the table. This is the experience of telecom billing system design. (3) If a table is found to have too many records, such as more than 10 million, the table is split horizontally. Horizontal segmentation is done by dividing the table's records horizontally into two tables with a value
Seven Principles of Software Design
The general principles of design patterns are as follows:
1.Open-closed principle ):A software entity should be responsible for extended development and should be closed for modifications. when designing another module, the module should be extended without being modified. in other
General principles of design pattern adherence:1. Open-Close principle (open-closed Principle, OCP): a software entity should be developed for expansion and closed for modifications. The point is that when designing a module, the module should be extended without being modified. In other words, It should be possible to change the behavior of the module without having to modify the source code, and to extend
calculation is first outside the database, the file system sideAfter the processing of the C + + language is completed, the final storage is appended to the table. This is the experience of telecom billing system design.(3) If a table is found to have too many records, such as more than 10 million, the table is split horizontally. The horizontal split is done with the table primary keyA value of PK is a li
example, 10 million), the complex calculation is first outside the database, the file system sideAfter the processing of the C + + language is completed, the final storage is appended to the table. This is the experience of telecom billing system design.(3) If a table is found to have too many records, such as more than 10 million, the table is split horizontally. The horizontal split is done with the tabl
first outside the database, the file system sideAfter the processing of the C + + language is completed, the final storage is appended to the table. This is the experience of telecom billing system design.(3) If a table is found to have too many records, such as more than 10 million, the table is split horizontally. The horizontal split is done with the table primary keyA value of PK is a line dividing the
I recently encountered a problem with the design principles of OOD during the written examination. From http://www.cnblogs.com/xwang/archive/2009/01/13/1374652.html
Five Principles of OOD:
(1): SRP, single responsibility principle (only Buddha should assume the responsibility to publish xuanmiao secrets ...)
A class should have only one reason for change.
Because
Database Design Principles
1. The relationship between the original document and the object can be one-to-one, one-to-many, and many-to-many. In general, they are a one-to-one relationship: an original document corresponds to only one entity.
In special circumstances, they may be one-to-many or many-to-one relationships, that is, an original document corresponds to multiple entities, or multiple original do
sideAfter the processing of the C + + language is completed, the final storage is appended to the table. This is the experience of telecom billing system design.(3) If a table is found to have too many records, such as more than 10 million, the table is split horizontally. The horizontal split is done with the table primary keyA value of PK is a line dividing the table's records horizontally into two table
system sideAfter the processing of the C + + language is completed, the final storage is appended to the table. This is the experience of telecom billing system design.(3) If a table is found to have too many records, such as more than 10 million, the table is split horizontally. The horizontal split is done with the table primary keyA value of PK is a line dividing the table's records horizontally into tw
Label: use AR strong sp c on code R ad Six principles of design patterns I. six principles of the design model
Name
Explanation
0. Single Responsibility Principle (SRP)
For a class, there should be only one reason for its change.
Statement: This series of blog reference "Big Talk design mode", author Geoscience.
It is generally considered that code that complies with the following six principles is easily extensible and reusable:
The six principles of any object-oriented language should be adhered to, in order to make your code easy to expand high-dose to meet the six
In the object-oriented Master Robert C. in Martin's Agile Software Development: Principles, patterns and practices, only the OCP, LSP, SRP, dip, and ISP mentioned above are listed as the design principles of Ood. Indeed, these principles are the cornerstone
know as little as possible about other objects.Basic idea: reduce coupling.g: the principle of synthetic multiplexingInstead of using inheritance, it is preferable to use a combination rather than an inheritance principle, which is to use the composition/aggregation method first.Basic idea: In taking advantage of the object's lowest point, the combination is preferred, not the inheritance, because any changes to the parent class can directly affect the behavior of the subclass.eg. To pack an el
Several Python Function Method Design Principles summarized
This article mainly introduces several Python function method design principles, this article explains how to do one thing for each function, keep it simple, keep it short, input and use parameters, and output and use return statements. For more information, s
principleDefinition: The client should not rely on interfaces it does not need, and the dependency of one class on another should be based on the smallest interface.The problem is that class A relies on class B through interface I, Class C relies on class D through interface I, and if interface I is not the smallest interface for Class A and Class B, then Class B and Class D must implement methods that they do not need.Solution: Split the bloated int
the necessary guidance and "reward" feedback for their exploration and learning behavior.PrototypeRegardless of style, the interface form depends on the actual function. Good design solutions are inseparable from pre-production planning, especially through sketches or wireframe prototypes. Identify the core use case requirements, use prototypes to continually try and validate, and lay a solid foundation fo
I was interviewed by the Business School magazine a few days ago, today, the finished articles released first, the latest issue of the magazine will be published, I will put the article first in the blog, it is a recent new blog, blog or can not be deserted ah.
Here's the text.
How to design a product with excellent user experience is an interactive designer always faced with a difficult problem, "good product d
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.