Alibabacloud.com offers a wide variety of articles about best books on design principles, easily find your best books on design principles information here online.
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
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
design and develop software. It is not easy for each of us to accept a new idea. Although OO has been around for many years, however, through university education and learning, it is difficult for us to understand the importance of code maintainability. We need to use real projects, excellent books, and enthusiastic mentor to help us learn new ideas.
Secondly, this book helps me to learn the
common modes. I think the best mode of entry books, content vivid, style lively. If you know less about the pattern, look at this book is the most suitable, even if you are good, I believe there will be a harvest.Recommended: Five Star 2.Name: Java and patternsLanguage: JavaComments: First introduced the basic principles such as SRP,LSP, and then introduced the GOF23 model and other three models, to Chines
design principles. They show us how the design principles are used in Java programming. Java JDK uses some design principles: factory mode in the BorderFactory class, Singleton mode in the Runtime class, and decorator mode in the
package, it will affect all classes in the package, but it will not affect other packages.
Package coupling principle
No-ring dependency principle (Acyclic Dependencies Principle, ADP)
The package dependency does not allow loops.
Stable-Dependencies Principle, SDP)
Dependency in a stable direction
Stable-abstractions principle (SAP)
The abstraction level of the package should be consistent with its stability.
Old ti
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
weigh repeatedly, not only to make the structure clear, but also to achieve high cohesion and low coupling.---> Dimitri Law requires decoupling between classes, but the decoupling is limited, the principle is only for reference, if it violates this principle, the project may not fail, which requires you to use the principle of repeated measures, do not follow is not correct, strict implementation is "too bad."Iv.: Central idea(1) in a scene, the A,b,c class. Complete a goal. A relies on b,b to
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
Single Responsibility Principle, abbreviated as SRP.Definition: There should never is more than one reason for a class-to-change.There should be and only one cause for class changes.Division of duties? A single definition and level?should be based on actual business conditions. Focus on the point of change.In practice, classes are difficult to do with a single function, but the interface should be as single as possible.Design pattern six Principles/In
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
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
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
For Java programmers, mastering object-oriented design theory and some design patterns is an essential skill. To start programming without learning a theory is similar to learning a language without studying the alphabet. There's a lot of object-oriented theory, design patterns and best practices on the market, but only a few
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
Open closed Principle)
The core of the open/closed principle is: open to expansion and close to modification.
The vernacular means that when we change a software (such as extending other functions), we should use the extension method to achieve the software change, instead of modifying the original code to achieve the change.
The principle of opening and closing is an abstract summary of the first five principles. The first five
MySQL Lock Mechanism9.2 comparison of lock mechanisms of various storage engines9.3 use the lock mechanism to optimize MySQLConclusion 9.410. MySQL Query statement Performance Optimization10.1 basic principles of Query statement Optimization10.1 properly design and use Indexes10.2 Optimization of Join10.3 transaction Optimization10.4 other common Optimization Methods and TechniquesConclusion 10.511. MySQL
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
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.