SlideShare a Scribd company logo
Object Oriented Design Principles with silly names but help you code more betterer.
SOLID
FREDDY NOSTRILS
Illegal Muppets
1. Single Responsibility Principle
Classes should only have one reason for change
Border Patrol patrol_border accept_illegal_shipments_of_muppets
DAMN POSTAL STRIKE! Border guards can't patrol whilst waiting for packages
2. Open/Closed Principle
Classes Should be Open for Extension but Closed for Modification
Border Guard accept_tequila_bribe
Border Guard accept_bribe(bribe)
Look for the Abstractions!
Liskov Substitution Principle
Subtype should be completely substitutable for the Supertype
Border Guard drink(Fluid)
!=
Although Freddy Will be Happy the Guards' Boss won't be!
Interface Segregation Principle
Clients should not be forced to depend on methods they do not use.
Shipment Illegal Muppets circulate_air(airholes_count) ship
Dependency Inversion Principle
High Level Business Logic shouldn't depend on lower level details.
-find muppets -pack muppets -bribe border patrol -phone pedro to come and pick up muppets. -celebrate Freddy's Business Logic : What's the problem here?

More Related Content

PPTX
Soild principles
PPTX
Solid Principles Of Design (Design Series 01)
PPTX
Design principles - SOLID
PDF
Introduction to SOLID Principles
PPTX
SOLID principles
KEY
SOLID Design Principles
PPTX
Object Oriented Design SOLID Principles
PPT
SOLID Design Principles
Soild principles
Solid Principles Of Design (Design Series 01)
Design principles - SOLID
Introduction to SOLID Principles
SOLID principles
SOLID Design Principles
Object Oriented Design SOLID Principles
SOLID Design Principles

Similar to Object Oriented Design Principles - SOLID (20)

PPT
Advanced OOP - Laws, Principles, Idioms
PPTX
Becoming a better developer by using the SOLID design principles
ODP
Geecon09: SOLID Design Principles
PPTX
Design Principles
PPT
Design poo my_jug_en_ppt
PPTX
OO design principle
PPTX
Is your code solid
PPT
DesignPrinciples-and-DesignPatterns
PDF
DPC 2019, Amsterdam: Beyond design patterns and principles - writing good OO ...
PDF
OOD Principles and Patterns
PPTX
C:\Fakepath\Combating Software Entropy 2
PPTX
C:\Fakepath\Combating Software Entropy 2
PPTX
Advanced oop laws, principles, idioms
PPTX
SOLID Principles
PDF
Clean code
PDF
SOLID Principle & Design Pattern.pdf
PDF
Object Oriented Design Principles
PPTX
Practical Enterprise Application Development
PDF
Refactoring to SOLID Code
Advanced OOP - Laws, Principles, Idioms
Becoming a better developer by using the SOLID design principles
Geecon09: SOLID Design Principles
Design Principles
Design poo my_jug_en_ppt
OO design principle
Is your code solid
DesignPrinciples-and-DesignPatterns
DPC 2019, Amsterdam: Beyond design patterns and principles - writing good OO ...
OOD Principles and Patterns
C:\Fakepath\Combating Software Entropy 2
C:\Fakepath\Combating Software Entropy 2
Advanced oop laws, principles, idioms
SOLID Principles
Clean code
SOLID Principle & Design Pattern.pdf
Object Oriented Design Principles
Practical Enterprise Application Development
Refactoring to SOLID Code
Ad

More from Tom Crinson (8)

PPT
Destructuring demystified
KEY
Hidden treasures of Ruby
ODP
Crystal Agile
PPTX
Javascript Basics for Advertisers
ODP
A few questions on MongoDB
ODP
Higher Order Ruby
ODP
Itty bittypresentation lrug
PPTX
Test Driven Development: Why I hate it; but secretly love it.
Destructuring demystified
Hidden treasures of Ruby
Crystal Agile
Javascript Basics for Advertisers
A few questions on MongoDB
Higher Order Ruby
Itty bittypresentation lrug
Test Driven Development: Why I hate it; but secretly love it.
Ad

Recently uploaded (20)

PPTX
Spectroscopy.pptx food analysis technology
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
Teaching material agriculture food technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Spectroscopy.pptx food analysis technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Teaching material agriculture food technology
NewMind AI Weekly Chronicles - August'25 Week I
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Diabetes mellitus diagnosis method based random forest with bat algorithm
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Reach Out and Touch Someone: Haptics and Empathic Computing
Building Integrated photovoltaic BIPV_UPV.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Review of recent advances in non-invasive hemoglobin estimation
Machine learning based COVID-19 study performance prediction
Programs and apps: productivity, graphics, security and other tools
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Unlocking AI with Model Context Protocol (MCP)
MIND Revenue Release Quarter 2 2025 Press Release
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

Object Oriented Design Principles - SOLID