Undergraduate stage to learn design patterns, at that time on the design model of the Five Principles of--solid principle of the concept and understanding is still relatively vague, at this time passed 2 years, in the study of "Advanced software Engineering" course, the teacher also mentioned the
Everything is neither created out of thin air nor optimized in place in one step!
C language is no exception. The following principles apply to some C language applications:
1. The smaller the space usage, the better.
The parameter passing method of C language functions is to copy a parameterProgramSubject
Labels: C ++ solid principle object-oriented design ideas The solid principle of Object-Oriented Design
SRP the single responsibility principle single Responsibility Principle
OCP the open closed principle Principle
LSP the liskov substitution principle's replacement p
S.O.L.I.D is the acronym for several important coding principles (programming Priciple) in object-oriented design and programming (Oodoop).
SRP
the single Responsibility principle
single responsibility principle
OCP
the Open Closed principle
LSP
The Liskov Substitution Principle
Richter substitution principle
S.O.L.I.D is the acronym for several important coding principles (programming Priciple) in object-oriented design and programming (Oodoop).
SRP
the single Responsibility principle
single responsibility principle
OCP
the Open Closed principle
LSP
The Liskov Substitution Principle
Richter substitution principle
representation of the same change implies that it is a specific subclass in the same inheritance hierarchy.② package different changes into different interfaces or abstract classes, there should not be two different changes appearing on the same interface or abstract class. A change mixed with another change would violate the principle of singleness and therefore should be separated.6.4 Best Practices(1) Summary of several design
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
framework and implement extension details.
In fact, the entire definition of the open and 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 prin
Bertrand Meyer.
Take the students as an example. The night students are child classes of the students, so they can appear anywhere they can. This example is somewhat far-fetched. In an example that can reflect this principle, the circle is a special subclass of the elliptical. Therefore, the circle can appear in any place where an ellipse occurs. But in turn, it may not work.
The following figure shows the related diagram of liskov:
Figure 2 liskov
How to learn C language well? Why do you have to learn neither deep nor solid, dabbler feelingI believe that this may be a lot of friends of the problem, I have such a feeling before, programming to a certain time, the ability to find the bottleneck, neither deep nor solid, dabbler. For example: You use Java and. NET for a long time, these languages with virtual
10 object-oriented design principles that Java programmers should know, java Object-Oriented Design
Object-Oriented Design principles are at the core of OOPS programming, but most Java programmers I have seen are enthusiastic about desig
queries? If yes, a composite index can be created; otherwise, a single field index is considered;
C. If the fields contained in the composite index are often contained in the Where clause, they are divided into multiple single-field indexes;
D. If the composite index contains more than three fields, consider the necessity and reduce the composite fields;
E. If there are both single-field indexes and composite indexes on these fields, you can delete c
Since the core of object design is the class, the following principles are basically the discussion of the design of the class, the other types of elements are relatively simple, basically also conforms to most of the principles listed here. Before we have analyzed the basic princi
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
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
replacement principle and the Dimitri law of the first letter, only one) together is solid (solid, stable), The implication of its representative is that the 6 principles of the use of the benefits: the establishment of a stable, flexible, robust design, and the opening and closing principle is the most important, is
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
Object-oriented design principles are at the heart of oops programming, but most of the Java programmers I've seen are enthusiastic about design patterns like Singleton (singleton), Decorator (adorner), OBSERVER (Observer), Instead of focusing enough attention on learning object-oriented analysis and design. It is impo
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.