Alibabacloud.com offers a wide variety of articles about microservices design principles, easily find your microservices design principles information here online.
The open-close principle (OCP) is called the cornerstone of OOD and is one of the most important principles of Ood.
This principle was proposed by Master Bertrand Meyer in 1988 (Khan, at that time I am afraid few people in China know Oo, or even what the computer is): software entities shocould be open for extension, but closed for modification. How simple ?! This principle means that the software should be developed for expansion, and the modificatio
, is the IOC container and AOP to provide specific, these two modules, to a large extent, Represents the core value of spring as an application development platform. Their realization is rod.johnson in his other book "Expert One-on-one development without EJB," the embodiment of without EJB design thought At the same time, the design concept behind spring is also deeply embodied.
From a deeper point of vi
is this: some of the ancillary pages originally do not belong to the home page, in order to maintain the unity of the page and let users always know their location and the page "hanging" in the bottom of the homepage, but also worried that some users in this case do not know how to return to the home page, more likely to appear afraid to point So add a breadcrumb-like entry below, which seems clear, but does not conform to logic or principles;
Find
difficult to implement among the six design principles. If this principle is not implemented, it means that the open and closed principle (for extension development, for modification and closure) cannot be implemented.Dependency inversion can be implemented in three ways.1. Passing dependent objects through ConstructorsFor example, the parameters to be passed in the constructor are implemented through abst
Article Description: the upcoming "Coming Soon" page is a relatively new concept in the Internet, where, for a long time, there was nothing when new products were ready for business, and it suddenly appeared online the next day.
The upcoming "Coming Soon" page is a relatively new concept in the Internet, where, for a long time, there was nothing when new products were ready for business, and it suddenly appeared online the next day.
Today, there have been some changes in the marketing
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.
Article Description: Response web Design is now a hot topic in web design. In a way, it is very important to respond to the popularity of web design concepts because users are accessing the site in more and more diverse ways. Ipad,iphone,android mobile devices, desktops, notebooks-now our web design has to be used in a
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
"Design, must be full of poetic." ”
With over five years of user experience design team, from a few to more than 20 people. Before I have done technology, found that engineers and designers are actually a lot of similar places, that is, there is a pursuit.
Lead the team, not the good people on the line (the so-called administration), but also to achieve business success, to set goals, set th
that the structure of the program is starting to become loose. Any change to the input or output device will force you to re-organize the condition judgment of the while loop. But after all, your program can work normally. But now you have reached the bottom line. If a hateful customer breaks your design by changing the demand, you will leave immediately. You made up your mind.
Your crash ......
Unfortunately, it didn't take two weeks. You did
Article Description: Interactive Design Analysis: The main points of design principles.
When we started the design of a project , there must be countless ideas in mind. is to do the visual impact of strong, grabbing the eye of the gorgeous style? Or is it a retro collage wind? Or is the most in the minimal
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
Principles of design patterns1. "Open-Close" principle-the module should be open for extension, but should be closed for modification.2. Rys replacement principle-if the parent class is called, the replacement of the Child class can be completely run. The Li's replacement principle is a basis for inheritance and reuse.3. Merging Reuse Principle-less inheritance and more synthesis relationships are required.
Summary: This text is divided into two parts. The first part: basic knowledge of design pattern; Part Two: The six principles in software design, and analyzes the principle of single responsibility in detail.
(the timeline reference for this article: \java design mode (time series diagram) for Notes Support fo
Translator's words : For designers, poster design can be said to be the most exciting thing, because the poster form a variety of forms, broad themes, less restrictive, emphasizing creativity and visual language, point line, picture and text can be flexibly combined application, but also pay attention to the composition of the plane and color composition. It can be said that poster design is a synthesizer o
30-minute understanding of Object-Oriented Design Principles
Many people have read the design patterns, but Martin does not have much estimation on the object-oriented design principles (For details, refer to Agile Software Development:
Solid is an abbreviation for several important coding principles
Srp:the Single Responsibility Principle sole responsibility principle
Ocp:the Open Closed Principle opening and closing principle
lsp:the Liskov Substitution Principle Richter Replacement principleLd:the Law of Demeter Dimitri
Isp:the Interface Segregation Principle Interface separation principle
Dip:the Dependency Inversion Principle dependency inversion principle
One, the single
Object-oriented design principle principle objective object-oriented design original table single Responsibility principle case Closed-closing principle case dependence reversal principle caseObject-Oriented design principlesFor the design of object-oriented software system, it is a very important problem to improve th
Design principles (7 types): There are so many principles that guide us in the design and development of our programs because there is an unknown change in our program. In order to embrace this unknown change at the lowest cost, our predecessors summed up so many principles.
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.