Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Write S.O.L.I.D code
Search
Yoan
June 13, 2017
How-to & DIY
2
2.5k
Write S.O.L.I.D code
Learn how to write Object Oriented S.O.L.I.D code
Yoan
June 13, 2017
Tweet
Share
More Decks by Yoan
See All by Yoan
L'artisanat logiciel à l'heure du numérique responsable
thirion
0
70
Clean Code du point de vue de la cognition
thirion
0
170
Agile Tech Coaching - The Missing Piece Of Your Organization
thirion
1
110
Cultiver l'intelligence collective à l'heure de ChatGPT
thirion
0
130
Clean Code from the Cognition Point of View
thirion
2
180
Xanpan - une méthode agile hybride centrée sur l'équipe
thirion
0
190
Les aventures d'un facilitateur au pays des techs - Agile Grenoble 2023
thirion
0
130
Clean Code du point de vue de la cognition
thirion
1
260
Les aventures d'un facilitateur au pays des techs - Agile Tour Lausanne 2022
thirion
0
190
Other Decks in How-to & DIY
See All in How-to & DIY
スマートハウスの蓄電性能の効率化を実現してみた~電気自動車編~
runrunsan
0
340
2025版 鯖落ちパーツで安価に機械学習用マシンを作ってみる
bobfromjapan
0
480
JAWS-UG と AWS - JAWS-UG 沖縄 Cloud on the Beach 2025
awsjcpm
0
120
LLMはTRPGのGMができる(確信)
kgmkm
0
2k
新婚19年目から学ぶ夫婦円満の正しい歩き方 / Life is beautiful
soudai
PRO
12
4.9k
苦いビールを避ける冴えたやり方
watany
2
460
The Definitive? Guide To Locally Organizing RubyKaigi
sylph01
6
1.9k
Azure PortalのQoLを上げてたら Big Techに怒られた
horihiro
2
510
JAWS-UG/AWSコミュニティ JAWS-UG おおいた
awsjcpm
2
2.9k
파이썬 토룡신점 운영후기
lqez
0
500
AWS Summit Japan 2025 個人的参加レポート
midnight480
0
190
雑にコミュニティを続けてもいいと思っている/Feel free to continue the community
camel_404
0
320
Featured
See All Featured
Ethics towards AI in product and experience design
skipperchong
1
140
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
0
300
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Code Review Best Practice
trishagee
74
19k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
230
Speed Design
sergeychernyshev
33
1.4k
Statistics for Hackers
jakevdp
799
230k
SEO for Brand Visibility & Recognition
aleyda
0
4.1k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
69
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
90
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.1k
Color Theory Basics | Prateek | Gurzu
gurzu
0
150
Transcript
@yot88 By yoan thirion S.O.L.I.D principles
@yot88 bad code / Good code Bad code vs Good
code Categorize each piece of code
None
@yot88 Singleton Tight Coupling Untestability Premature Optimization Indescriptive Naming Duplication
Single Responsibility Open/Closed Principle Liskov Substitution Interface Segregation Dependency Inversion Patterns and anti-patterns
@yot88 SRP A class should have only 1 responsibility
@yot88 Software entities should be open for extension, but closed
for modification. Open closed
@yot88 Subtypes must be substitutable for their base types. Liskov
substitution
@yot88 Clients should not be forced to depend on methods
that they do not use. Interface segregation
@yot88 High level modules should not depend on low level
modules : both should depend on abstractions. DI
@yot88 Good code / bad code Align each piece of
code with a S.O.L.I.D principle
1 3 3 1 3 16 13 2 4 14
15 6 8 9 12 5 10 11
3 13 16 1 3 16 13 2 4 14
15 6 8 9 12 5 10 11
3 4 2 1 3 16 13 2 4 14
15 6 8 9 12 5 10 11
3 15 14 1 3 16 13 2 4 14
15 6 8 9 12 5 10 11
3 8 6 1 3 16 13 2 4 14
15 6 8 9 12 5 10 11
3 11 9 1 3 16 13 2 4 14
15 6 8 9 12 5 10 11
3 10 5 1 3 16 13 2 4 14
15 6 8 9 12 5 10 11
12 1 3 16 13 2 4 14 15 6
8 9 12 5 10 11
1 3 16 13 2 4 14 15 6 8
9 12 5 10 11
@yot88 Let’s refactor using s.O.L.I.D
@yot88 exercises Practice S.O.L.I.D principles on code examples Clone the
repository at : https://github.com/ythirion/solid-kata Foreach code example : • identify why it’s breaking the given principle • Write down your refactoring strategy • Refactor it
@yot88 Where do you stand ? No quite yet On
the way Ready to roll