勉強日記

チラ裏

Clean Architecture

Clean Architecture Part III ch11 DIP: The Dependency Inversion Principle

www.pearson.com Dependency Inversion Principle Stable Abstrations Factories Concrete Components Conclusion 英語 Dependency Inversion Principle 具象に依存するな 具象のモジュールって何 実際にコールされる関数が実装されているモジュール もちろ…

Clean Architecture Part III -- ch.7 SRP: The Single Responsibility Principle

www.pearson.com SRP: The Single Responsibility Principle SRP違反してそうな例 Symptom 1: Accidental Duplication Sympton 2: Merges Solutions Most Obvious Way To Use the Facade Pattern ビジネスルールとデータをまとめたい 「1クラス1メソッド」っ…

Clean Architecture Part 3 -- Design Principles

www.pearson.com Part 3 -- Design Principles SOLID原則の教えるところ 関数とデータ構造を「クラス」にまとめるやり方 クラスどうしの相互接続のあり方 「クラス」はオブジェクト指向言語を前提とはしていない 「ふるまいとデータがまとまったアレ」のこと…

Clean Architecture Part III ch10 ISP: The Interface Segregation Principle

www.pearson.com ISP: The Interface Segregation Principle ISP and Language ISP and Architecture Conclusion 英語 ISP: The Interface Segregation Principle SRPに則ってない User1はop1だけ利用 User2はop2だけ利用 User3はip3だけ利用 op1に変更を加…

Clean Architecture Part III ch9 LSP: The Liskov Substitution Principle

www.pearson.com LSP: The Liskov Substitution Principle Guiding The Use of Inheritance The Square/Rectangle Problem LSP and Architecture Example LSP Violation Conclusion 英語 LSP: The Liskov Substitution Principle 置換可能性 o1: S o2: T P -…

Clean Architecture Part III ch8 OCP: The Open-Closed Principle

www.pearson.com OCP: The Open-Closed Principle A Thought Experiment Directional Control Information Hiding Conclusion 英語 OCP: The Open-Closed Principle 1988, Bertrand Meyer提唱 A software artifact should be open for extension but closed …