Code Refactoring 16

Channel:
Subscribers:
1,330,000
Published on ● Video Link: https://www.youtube.com/watch?v=__-rstffCLs



Duration: 7:46
13,331 views
127


Get the Code Here: http://goo.gl/Jt8Lv

In this tutorial, I'll answer a question that was sent to me. The question pertains to how can we add additional features to code the right way.

When new features are needed it is a bad idea to add new code to older classes. This makes compact easy to understand classes complicated because they break the Single responsibility principle. I'll show you here how the decorator design pattern instead places each special case behavior (Embellishment) into its own class.




Other Videos By Derek Banas


2013-03-09Java Recursion
2013-03-07Linked List in Java 2
2013-03-03Linked List in Java
2013-03-01Stacks and Queues
2013-02-28Java Sort Algorithm
2013-02-24Java Algorithms
2013-02-21MVC Java Tutorial
2013-02-15Mark of the Ninja Review
2013-02-11Code Refactoring 18
2013-02-09Code Refactoring 17
2013-02-08Code Refactoring 16
2013-02-07Code Refactoring 15
2013-02-03Code Refactoring 14
2013-02-02Code Refactoring 13
2013-01-31Code Refactoring 12
2013-01-29Code Refactoring 11
2013-01-27Don't Starve Game
2013-01-25Code Refactoring 10
2013-01-24Code Refactoring 9
2013-01-23Code Refactoring 8
2013-01-21Install Eclipse for Java



Tags:
decorator design pattern
design patterns
decorator pattern in java
design patterns decorator
decorator design pattern java
decorator design patterns
decorator pattern
Java (programming Language)