successful than before, a large group of eager programmers are waiting for the opportunity to use it. Life is beautiful.
An inch in size ......
Good days always go too fast. A few weeks later, the boss came to patronize you that morning. He said: customers sometimes want the copy program to output to the tape piercing machine.
Customer! They always destroy your design. Writing software is much easier without customers.
Once again, you warn
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
Original Author: Robert C. Martin
Original article: http://www.objectmentor.com/resources/articles/Principles_and_Patterns.pdf
Reference page: http://www.objectmentor.com/resources/publishedArticles.html
Ii. Object-oriented Design Principles
1 The Open-Close principle (open and closed principle)
A module shoshould be open for extension but closed for
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
touch.
It is important to note that the design principle is to allow us to choose among the many ideas more in line with our product ideas, rather than let us based on these principles to creative.
Using design principles to screen out all kinds of ideas, this method works well. But if you stick to these
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.
, "Microsoft" (Microsoft) "WYSIWYG" concept; "Google" (Google) simple, direct business style, without exception to follow the "kiss" principle, is also the "kiss" principle, These seemingly magical business classics have been fulfilled. And Apple's Iphone/ipad the principle to the extreme.It's a simple matter to complicate a thing, but it's complicated to make a complicated task simple.Reference : Http://en.wikipedia.org/wiki/KISS_principleProgram to a interface, not an implementationThis is the
, These seemingly magical business classics have been fulfilled. And Apple's Iphone/ipad the principle to the extreme.It's a simple matter to complicate a thing, but it's complicated to make a complicated task simple.Reference : Http://en.wikipedia.org/wiki/KISS_principleProgram to a interface, not an implementationThis is the most fundamental philosophy in design patterns, focusing on interfaces rather than implementations, relying on interfaces, rat
in the object-oriented solid principle, which is another way of this principle. There is also a principle called composition over inheritance (like combination rather than inheritance), which is the design principles in the 23 classic design patterns.
Command-query separation (cqs)-command-query separation principleQu
doesn't answer the fundamental object-oriented question-Why do we use object-oriented objects. How should we use the three mechanisms to achieve "good object-oriented". What kind of object-oriented principles should we follow?
Any serious object-oriented programmer, such as a C # programmer, needs to systematically learn object-oriented knowledge and object-oriented knowledge from programming languages an
As we all know, design principles are the cornerstone of design patterns. When the design principles are followed, the written code becomes very flexible and can cope with changes and be easier to maintain. Of course, it is not so absolute. Next, we will briefly introduce so
both the order table and the Order record table, the order table read and write frequently, and the order record table for the management, read and write general) 7, Configuration table, log table, scheduled task table, etc. 8. Summary table Design (Multi-Table association queries will be slow, but also easy to get stuck in the case, you can consider a summary of the business, record to the summary table)Fourth step in optimization designAfter the pr
general)7, Configuration table, log table, scheduled task table, etc.8. Summary table Design(Multi-Table association queries will be slow, but also easy to get stuck in the case, you can consider a summary of the business, record to the summary table)Fourth step in optimization designAfter the precipitation of the business, accumulate some design ideas or extract the common points of the multi-project, red
deep understanding of the design mode and continue to hone it in practice.
The pattern is less important than the OO principle. If you can design a program that basically complies with the above principles, you may have summarized a new pattern, therefore, the learning model aims to deeply understand oo ideas and principles
external code5. Unified Access (Uniform access):such as the xxx.name in C #6. Standard language (Language)7. Liskov Replacement principle (LSP):in cases where there is any substitution implementation for t or a subclass (becoming s), a reference to the software (method, class ...) of type T (an interface or abstract superclass). Should work normally or as expected. 8. The law of Demeter:do not experience long-distance object structure paths to send m
Shaolin temple since his childhood. He worked hard and worked hard to cultivate his skills, until he reached the point where he had no choice but to win. Of course, a hero like Qiao Feng is naturally experienced in practice. In this way, Mu rongfu, the "one by one, another by another", met Qiao Feng, who beat the world without rivals with the 18 palm of the Dragon Army, and Mu rongfu lost.
From the perspective of design
Today, I attended the course "C # object-oriented design patterns (1): Object-oriented Design Patterns and Principles. Summarized some notes.First, we will introduce what is the design pattern: the design pattern describes a gener
can manipulate an abstract body, in which the module relies on a fixed abstract body, so it can be closed for modification, and through this abstract derivation, it can also extend the behavior of this module.Developers should abstract only those parts of the program that exhibit frequent changes, rejecting immature abstractions and abstractions as important as themselves.The Richter replacement principle:Its subclass object can be substituted for the parent class object, but its parent object
behavior to the superclass, to eliminate duplicate code in subclasses to achieve its advantages, provides a code reuse platform, to help the subclass to get rid of the repetition of the invariant behavior of entanglement.
disadvantage : If there are too many basic methods in the parent class, the number of classes increases and the system becomes larger.
application : The Templatemethod () in the AbstractClass abstract class is the template method.
Command mode encapsulates a request into an o
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.