a good software design is to try to change
If your software is hard to change, the problem may occur when you want to improve the design. Now let's see if several instruments can be easily changed. If a new instrument is added to an existing program, we need to add a new instrument specification and add a new query method to inventory, which does not seem easy to change!
It seems that we still ha
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
Object-oriented design principle principle objective object-oriented design original table single Responsibility principle case Closed-closing principle case dependence reversal principle caseObject-
Ask for PHP object-oriented design and data access design. for example, if one class Person has a database operation class ConnPerson, one operation is to buy a chicken, how should we design chicken information in the database? Whether to include the Conn class in perison, i
Ask for PHP object-oriented design and data access design. for example, if one class Person has a database operation class ConnPerson, one operation is to buy a chicken, how should we design chicken information in the database? Whether to include the Conn class in perison, i
attribute Name: type [= default value]
Visibility method Name (parameter list) [: Return value type]
Examples are as follows: (3) The relationship between classes ① Association Relationship 1) bidirectional correlation. Examples are as follows: 2) One-way association. Examples are as follows: 3) Self-correlating. Examples are as follows: 4) Multiple sexual associations. Examples are as follows: 5) Aggregation relationship. Examples are as follows: 6) combined relationship. Simi
Some experiences in Object-Oriented Analysis and Design
Analysis, Design and Implementation
What I understand is the true object that exists or does not exist in real life. An obvious feature of this object is that it has many st
Ask PHP design for object-oriented design and data accessibility
For example, there is a class person
There is a database operation class Conn
One of the actions in person is to buy a chicken, the chicken information to be put into the database
How should I design it?
is to
() {Alert"Hi! I am "+ This. name); }varPerson1 =NewCreateperson (' ZS ',' Boy ',' 2001-02-03 ');varPerson2 =NewCreateperson (' ls ',' Boy ',' 2001-02-04 '); Person1.sayhi ();//outputs "Hi! I am ZS "Person2.sayhi ();//outputs "Hi! I am LS "In general, an object or class is more than one method and requires multiple methods to work with it.CreatePerson.prototype={ sayHi:function() { alert("Hi ! I am "+this.name); }, walk:function() {
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
Object-oriented design is divided into two stages, namely high-rise design and low-level design
High-level design
The overall model of development software for the development of the system in the high-rise
In object-oriented design, how to deal with changes in design requirements through small changes is a matter of great concern to designers. To this end, many oo pioneers have proposed many object-oriented
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
Recently changed a new job, there are some problems in the interview process did not give the answer, for their technical short board and promote the urgent.JavaScript is the object of Everything (key: A value of a data), for the moment not to discuss the right and wrong sentence, you can imagine the importance of the object in JavaScript, and object-
Seven major object-oriented design principles (Transition) and seven major design principles
I. Single responsibility principle:
Full name: "Single-Responsibility Principle"
Object-Oriented De
The task of object-oriented design is to further standardize the results of object-oriented analysis, so that it can be accepted directly by object-oriented programming.
ConceptObject-
1. Change is the natural enemy of reuse!The biggest advantage of object-oriented design is that it resists change2. Re-understanding Object-orientedUnderstanding Isolation Changes:From the macro level, the object-oriented approach
coupling (Low coupling)Loosely coupled as a principle of evaluation system design, the responsibility lies in:
Reduce dependencies between classes and classes
Change the impact of a class to other classes to minimize
Higher reusability
Polymorphic (polymorphism)In an inherited system, a different invocation is produced at run time using the same design-time definitionProtected changes
5 Programming styles and the abstractions they use:
Process-oriented algorithms
Object-oriented classes and objects
Oriented to logical goals, usually expressed in predicate calculus
Rule-oriented if--then the rule
A constraint-invariant
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.