SOLID Stands For Single responsibility Openclosed Liskov substitution Interface segregation Dependency inversion The principles when applied together intend to make easy to maintain and extend over ID: 560577 Download Presentation
Five design principles. SOLID design. 1. SOLID, what is it?. Single responsibility principle. A class should have only a SINGLE responsibility. Change in the specification on that responsibility should only affect this class.
of Floral Design. Learning Targets. 1. I can define floral design.. 2. I can list the principles of design.. 3. I can explain the concept of proportion.. 4. I can explain how the concept of balance is applied to floral design..
Hebrews 5:12-14. Hebrews 5:12-14. For though by this time you ought to be teachers, you need someone to teach you again the first principles of the oracles of God; and you have come to need milk and not solid food. 13 For everyone who partakes only of milk is unskilled in the word of righteousness, for he is a babe. 14 But solid food belongs to those who are of full age, that is, those who by reason of use have their senses exercised to discern both good and evil. .
Introduction to Human Computer Interaction. Gulfs of execution and evaluation. Gulfs of execution and evaluation. How can I…?. Did it work?. Usability. Often the technology gets in the way of people and activities they want to do. .
Building an Interesting Photograph. Principles of Art and Design. Balance. Proportion. Repetition. Movement. Contrast. Emphasis. Variety. Unity. Principles of Art and Design. Balance:. Principles of Art and Design.
SOLID Stands . For. Single responsibility. Open-closed. Liskov. substitution. Interface segregation . Dependency . inversion. The principles, when applied together, intend to make . easy . to maintain and extend over .
Download Presentation - The PPT/PDF document "SOLID Design Principles" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
SOLID Design Principles
Presentation on theme: "SOLID Design Principles"— Presentation transcript:
SOLID Design PrinciplesSlide2
The principles, when applied together, intend to make
to maintain and extend over
S – SRP -
Every class, function, variable
should define a single responsibility, and that responsibility should be entirely encapsulated by the
is important to keep a class focused on a single concern is that it makes the class more
O –OCP -
software entities (classes, modules, functions, etc.) should be open for extension, but closed for
that is, such an entity can allow its
to be extended without modifying
its source code
This is especially valuable in a production environment, where changes to source code may necessitate code
tests, and other such procedures to qualify it for use in a productSlide5
– LSP -
a particular definition
S is a subtype of T, then objects of type T may be replaced with objects of type
altering any of the desirable properties of that program Slide6
I – ISP -
Interface segregation principle
states that no client should be forced to depend on methods it does not
ISP splits interfaces which are very large into smaller and more specific ones so that clients will only have to know about the methods that are of interest to
– DIP -
Dependency inversion principle
High-level modules should not depend on low-level modules. Both should depend on abstractions
Abstractions should not depend on details. Details should depend on abstractions.Slide8