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
Design Patterns in PHP
Search
Czerny
August 30, 2017
Technology
76
0
Share
Design Patterns in PHP
PHP BLT #8
第117回 PHP勉強会@東京
Czerny
August 30, 2017
Other Decks in Technology
See All in Technology
エンジニアは生成AIと どのように向き合うべきか? ことばの意味という観点から
verypluming
3
330
地元にいないローカルオーガナイザーの立ち回り
uvb_76
1
440
速さだけじゃない! VoidZero ツールが移行先に選ばれる理由
mizdra
PRO
6
730
大学生が本気でDatabricksを活用してDiscordサークルをデータ駆動させてみた
phantomjuju
1
330
インフラが苦手でも大丈夫! 紙芝居 Kubernetes -WWGT 10周年編-
aoi1
1
330
Diagnosing performance problems without the guesswork
elenatanasoiu
0
150
個人AIからチームAIへ:開発における品質と生産性の再設計
moongift
PRO
0
360
脅威をエンジニアリングの糧にして:恐怖を乗り越えた先にあったもの / Turn threats into fuel for engineering: what lay beyond overcoming fear
nrslib
1
370
Sony_KMP_Journey_KotlinConf2026
sony
2
200
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.8k
最低限これだけ押さえれ大丈夫_Claude Enterprise/Team企業展開ガバナンス入門
tkikuchi
1
670
Cloud Run のアップデート 触ってみる&紹介
gre212
0
300
Featured
See All Featured
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
280
Music & Morning Musume
bryan
47
7.2k
Making the Leap to Tech Lead
cromwellryan
135
9.9k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Agile that works and the tools we love
rasmusluckow
331
21k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
210
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
200
Thoughts on Productivity
jonyablonski
76
5.2k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
600
The Limits of Empathy - UXLibs8
cassininazir
1
340
ラッコキーワード サービス紹介資料
rakko
1
3.5M
Transcript
Design Patterns in PHP 2017-08-08 PHP BLT #8 2017-08-30 第117回
PHP勉強会@東京 K. LEE @CzernyF
自己紹介 • LEE KWANGHOON • J-WAVEi • Perl/PHP/Python, etc. •
@CzernyF • 犬 • SUZUKI Cappuccino
TL;DR
https://github.com/domnikl/DesignPatternsPHP.git
Design Patterns? • OOP設計ノウハウのカタログ • Gang of Four • 全23パターン
• Purpose ◦ Creational ◦ Structural ◦ Behavioral • Scope ◦ Class ◦ Object
実は結構古い • Javaが出るより前 • 言語仕様やFrameworkに既に含まれてるパターン • OOPをやってれば自然にかけるようになるパターン • 今ではアンチパターンになってる場合も ◦
再考: GoF デザインパターン ▪ http://qiita.com/irxground/items/d1f9cc447bafa8db2388 • やはり銀の弾丸などない ◦ ただのパターンにすぎない ◦ すべての状況において最善とは限らない
だが • 現代にも有用なパターンはまだある • OOPの実践的なサンプル ◦ OOPを熟知している読者をターゲットにしてる ▪ だが、OOPについてまだ理解が足りない人に勉強にはなるかも •
合わせて読んでほしい ◦ 新人プログラマに知っておいてもらいたい人類がオブジェクト指向を手に入れ るまでの軌跡 ▪ http://qiita.com/hirokidaichi/items/591ad96ab12938878fe1
Facade
Facade pattern
Mediator
Mediator pattern
応用: Facade-Mediator!?
その他に • Abstract Factory • Factory Method • Decorator •
Observer • Template Method • Visitor • その他、現代的パターン(DIとか)
まとめ
Phing使ってる方、 いませんか!?