Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Single responsibility principle
Search
Grzegorz Wilczyński
November 12, 2012
Programming
210
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Single responsibility principle
Single responsibility principle
Grzegorz Wilczyński
November 12, 2012
More Decks by Grzegorz Wilczyński
See All by Grzegorz Wilczyński
REWRITE'EM ALL
gwilczynski
2
480
Chain made out of coins - smart introduction to blockchain
gwilczynski
0
110
WebComponents or shadow side of the Doom
gwilczynski
0
63
clean code
gwilczynski
0
150
git scm in one hour
gwilczynski
0
130
Productivity for Programmers
gwilczynski
3
220
Git branching model for TAPTeam
gwilczynski
0
940
JS design patterns
gwilczynski
6
380
Other Decks in Programming
See All in Programming
TSX の <Hoge<Fuga>> という構文に驚いた話 / tsx-type-argument-syntax
kanaru0928
0
240
仕様駆動開発の消費期限
watany
20
9.1k
Introducing Stack Pull Request in GitHub
kkamegawa
0
120
Claude Code全社展開のためにやったことn選~プラグイン302個・コミッター271人を支えるために~
kenchan
5
1.8k
コンパウンドプロダクト開発のためのローカルプロセスマネージャー再発明 #layerxgo
izumin5210
0
550
業務時間外もAIに働いてもらう話
colorful12
2
9.2k
信頼性の目標を誰も求めてない
shubox
0
430
「人を評価する AI」の設計と実装
ryoyanara
0
260
AI時代に学ぶ 好きなルール 嫌いなルール Linter編
shorty5121
0
240
「つくるAI」だけではバグは見つからない ~テストに必要な「見つけるAI」を分離させる戦略~
mfunaki
0
210
[PyCon KR 2026] More Variants, More Diversity for AI Accelerators
achimnol
0
120
Press start. Python's next generation.
willingc
PRO
3
290
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Designing for Performance
lara
611
70k
Practical Orchestrator
shlominoach
191
12k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
790
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
510
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
360
Joys of Absence: A Defence of Solitary Play
codingconduct
1
450
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.4k
Context Engineering - Making Every Token Count
addyosmani
9
1.1k
Transcript
Design patterns: The Single-Responsibility Principle Grzegorz Wilczyński 11th november 2012
SOLID The principles when applied together intend to make it
more likely that a programmer will create a system that is easy to maintain and extend over time. http://en.wikipedia.org/wiki/Solid_(object-oriented_design)
SOLID Single responsibility Open-closed Liskov substitution Interface segregation Dependency inversion
http://en.wikipedia.org/wiki/Solid_(object-oriented_design)
BIBLE http://www.amazon.com/Agile-Principles-Patterns-Practices-C/dp/0131857258
Rule #1 A class should have only one reason to
change. "Agile Principles, Patterns, and Practices in C#" Robert C. Martin
Rule #2 A class should have only one reason to
change. "Agile Principles, Patterns, and Practices in C#" Robert C. Martin
So please don't... http://3.bp.blogspot.com/-FQZ4VT_gbRY/T8RvXLTPWMI/AAAAAAAABP0/JCckSpENM88/s640/SingleResponsibilityPrinciple.jpg
Step 1 http://www.remondo.net/wp-content/uploads/2012/03/SingleResponsibilityPrincipleRadio.png
Step 2 http://www.remondo.net/wp-content/uploads/2012/03/SingleResponsibilityPrincipleRadioManagers.png
Homework $ git branch gw-solid-1 end time: 16.11.2012