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
2
190
Single responsibility principle
Single responsibility principle
Grzegorz Wilczyński
November 12, 2012
Tweet
Share
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
100
WebComponents or shadow side of the Doom
gwilczynski
0
49
clean code
gwilczynski
0
130
git scm in one hour
gwilczynski
0
110
Productivity for Programmers
gwilczynski
3
210
Git branching model for TAPTeam
gwilczynski
0
930
JS design patterns
gwilczynski
6
370
Other Decks in Programming
See All in Programming
[AI Engineering Summit Tokyo 2025] LLMは計画業務のゲームチェンジャーか? 最適化業務における活⽤の可能性と限界
terryu16
2
220
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
11
4.9k
ゆくKotlin くるRust
exoego
1
190
LLMで複雑な検索条件アセットから脱却する!! 生成的検索インタフェースの設計論
po3rin
4
1.1k
Context is King? 〜Verifiability時代とコンテキスト設計 / Beyond "Context is King"
rkaga
10
1.5k
AIエージェントの設計で注意するべきポイント6選
har1101
6
2.9k
まだ間に合う!Claude Code元年をふりかえる
nogu66
5
920
生成AI時代を勝ち抜くエンジニア組織マネジメント
coconala_engineer
0
37k
PostgreSQLで手軽にDuckDBを使う!DuckDB&pg_duckdb入門/osc25hi-duckdb
takahashiikki
0
230
GoLab2025 Recap
kuro_kurorrr
0
790
DevFest Android in Korea 2025 - 개발자 커뮤니티를 통해 얻는 가치
wisemuji
0
180
re:Invent 2025 トレンドからみる製品開発への AI Agent 活用
yoskoh
0
570
Featured
See All Featured
Facilitating Awesome Meetings
lara
57
6.7k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
270
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
270
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
420
Documentation Writing (for coders)
carmenintech
77
5.2k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Ruling the World: When Life Gets Gamed
codingconduct
0
120
My Coaching Mixtape
mlcsv
0
21
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
33
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.8k
The SEO Collaboration Effect
kristinabergwall1
0
320
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