“Temporal variables […] are useful only within their own routine, and thus they encourage long, complex routines” (Martin Fowler). Going down this path we decompose the statement-method further and then finally realize our HTML-statement without duplicating any computation!
► 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: | Follow me: