[LR] Refactoring MovieRental #7 – Move Branching to Data | Let’s Refactor


Branching over data should be close to where the data. Because if I ever change the data’s semantics in the future, I see the branching that depends on it and can change it alongside. In this episode, I show you how to move computation without changing the API of the class that originally contained it.

► All Refactoring Episodes: http://goo.gl/f7Yf21
► Let’s Develop! http://letsdeveloper.com
► Don’t Miss an Episode: http://goo.gl/whzDi1
► Check out the Code: https://github.com/letsdeveloper/Lets-Refactor-MovieRental

«Refactoring»
“A change made to the internal structure of software to make it easier to understand and cheaper to modify without changing its observable behavior”, http://martinfowler.com/books/refactoring.html

«Other Series»
► Let’s Develop Conway’s Game of Life: http://goo.gl/xc59GX
► Let’s Develop With Git in Eclipse: http://goo.gl/phqnDe
► Let’s Develop With Maven in Eclipse: http://goo.gl/3KK2gb


Share this: Facebooktwittergoogle_plusredditpinterestlinkedinmail | Follow me: twittergoogle_plusyoutube