Refactoring 101 ●
Recap –
–
–
Most refactoring reduces code ●
More self-documenting
●
More flexibility
●
More testable
3 loops (getFrequentRenterPoints, getTotalCharge, and statement) ●
Isolates calculations
●
Enabled multiple statements (text/html)
Optimizing and refactoring = different ●
–
46
Refactor, then optimize
Future = separation of concerns