365 Days of code: Day 4


“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” 

Martin Fowler

Continuing with the refactoring from yesterday, today I will put all the calculation methods in a helper class.

This segregates the User model from its operations. Now User.java will only be used for interchange of the user data as defined by the JSON.

For all the calculations, we will call the methods of the helper class: CalcHelper.java

The architecture of the project is much neater now.


Leave Comment

Your email address will not be published. Required fields are marked *

Scroll Up