Open SimonLab opened 4 years ago
Currently the Main.elm file contains all the logic of the application. We have only 3 kind of pages but with new features coming this will certainly rapidly grow (e.g capture page, categorise page, about page, ...): https://github.com/dwyl/app-mvp-elm/blob/7507bab9b6136a7ea603592e743778c31d517ed9/src/Main.elm#L31-L34
Main.elm
If we keep all the logic of the pages in the Main module it will be difficult to navigate the code.
Main
Based on the projects structure of
creating a module per page seems to be a good idea to manage the logic specific to a route.
Currently the
Main.elm
file contains all the logic of the application. We have only 3 kind of pages but with new features coming this will certainly rapidly grow (e.g capture page, categorise page, about page, ...): https://github.com/dwyl/app-mvp-elm/blob/7507bab9b6136a7ea603592e743778c31d517ed9/src/Main.elm#L31-L34If we keep all the logic of the pages in the
Main
module it will be difficult to navigate the code.Based on the projects structure of
creating a module per page seems to be a good idea to manage the logic specific to a route.