Closed tad-lispy closed 5 years ago
As discussed here https://github.com/niteoweb/salarycalc/pull/29#issuecomment-485755681 it would be good for tests. The modules should probably be focused around types, maybe:
Cities
Careers
Role
Then all logic could go to SalaryCalculator (functions like salary, commitmentBonus). The Main module would contain main, init, update, view and their helpers.
SalaryCalculator
salary
commitmentBonus
Main
main
init
update
view
As discussed here https://github.com/niteoweb/salarycalc/pull/29#issuecomment-485755681 it would be good for tests. The modules should probably be focused around types, maybe:
Cities
Careers
(includingRole
type)Then all logic could go to
SalaryCalculator
(functions likesalary
,commitmentBonus
). TheMain
module would containmain
,init
,update
,view
and their helpers.