The Single Responsibility Principle
DEMO: The Problem
In this class diagram, Rectangle class depends on GUI library package. Same way Graphical Application and Geometry Service are using Rectangle Class. If anything changes on GUI will affect the Rectangle class, hence it should be compiled likewise Geometry services and Graphical Application should be compiled.
The problem in Business Implementation
Problem Analysis
Refactoring Better Design
The Open / Closed Principle
DEMO: The Problem
The problem Analysis
Refactoring to a Better Design
Adding New rule easily
The Liskov Substitution Principle
Demo: The Problem
Refactoring to a Better Design
The Interface Segregation Principle
DEMO: The problem
Problem 1:
Note: In order to use Validate method inside of membership provider, we need to implement all other abstract base members which we do not use.
Problem 2:
Problem Analysis
Refactoring to a Better Design
Design Smells and Tips
The Dependency Inversion Principle
DEMO:The Problem
Refactoring to a Better Design
Design Smells
The Dependency Inversion Principle, Part 2
Traditional Programming
Refactoring Class Dependencies
First step is need to change the Static method to Instance method.
The Don't Repeat Yourself Principle, Part 1
Demo App and Analysis
Refactor Magic Strings
Refactoring Connection String
Refactoring Print Statements
Refactoring Magic Numbers
Refactoring Format Strings
Refactoring Duplicate Logic
Refactoring Repeated If-then Logic
Refactoring Conditional Polymorphism
The Don't Repeat Yourself Principle, Part 2
Test and Static Cling
Demo of Adding Integration Tests
Demo of Adding Unit Tests
Demo of MOCK Objects
Principles of Object Oriented Design - The Don't Repeat Yourself Principle, Part 3
Repeated Execution Pattern
Demo of Refactoring using Action of T
Demo of Refactor Data Access
Demo: Find Duplicate Code – Atomiq
Code Generation
Repetition in process
Demo of Automation with MS Build
Blogger Labels: SOLID,Principles,Object,Design,Single,Principle,DEMO,Problem,diagram,Rectangle,library,Same,Graphical,Application,Geometry,Service,Class,Implementation,Analysis,Better,Open,Liskov,Substitution,Interface,Segregation,Note,Validate,method,membership,provider,Smells,Tips,Dependency,Inversion,Part,Traditional,Dependencies,Static,Instance,Repeat,Yourself,Refactor,Magic,Strings,Connection,Print,Statements,Numbers,Format,Duplicate,Logic,Conditional,Polymorphism,Test,Integration,Tests,Unit,MOCK,Objects,Execution,Pattern,Action,Data,Find,Code,Atomiq,Generation,Repetition,Automation,Build
No comments:
Post a Comment