Applying Design Patterns to Everyday Problems

Have you read about design patterns but weren’t quite sure how or where to apply them in your application?  Have you heard of principles like loose coupling and programming to an abstraction, but didn’t know if you were really doing it right?  If so, this talk is for you.  
In this talk, I’ll work from several example code segments and show how to recognize which design pattern would be appropriate.  I’ll then show how to refactor the existing code to use the chosen design pattern and demonstrate how the resulting code is more understandable, easier to maintain and easier to test.
Among the examples I will show is how a dependency on an external system can be refactored using an interface and applying the bridge and adapter pattern. I’ll also show how to use the decorator pattern to cache results from an external call.  Finally, I’ll show examples of how patterns like the strategy pattern and chain of responsibility pattern can replace large blocks of if/else if statements to create a simpler design that is easier to test.

When this talk is complete, you will have a good idea of how to recognize where these patterns can be applied in your code base and how you go about implementing them.
Beginner : patterns designpatterns

Back

;