teamniteo / salarycalc

Elm engine running the Niteo Salary Calculator
https://niteo.co/salary-calculator
MIT License
4 stars 2 forks source link

Split Elm code into Main and helper modules #30

Closed tad-lispy closed 5 years ago

tad-lispy commented 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:

Then all logic could go to SalaryCalculator (functions like salary, commitmentBonus). The Main module would contain main, init, update, view and their helpers.