Refactoring exercise using clean code principles and design patterns
Current implementation Rentals movie application
Movie classification/categories:
- Children
- Regular
- New Releases
Different prices for each movie category
Fidelity points calculated based on rented days
Ability to print statements as plain text
Change requirements (Refactoring triggering point)
- Produce an html version of the statement for the customer
- The movie classifications will soon change (new categories will be introduced) together with the rules for charging and for frequent renter points