evancz / elm-todomvc

The TodoMVC app written in Elm, nice example for beginners.
http://evancz.github.io/elm-todomvc/
BSD 3-Clause "New" or "Revised" License
1.22k stars 329 forks source link

Split Todo.elm into submodules #52

Closed ffigiel closed 8 years ago

ffigiel commented 8 years ago

It would make sense to extract some submodules from Todo.elm, e.g. Model, View, Messages, Update.

A big file is difficult to understand in a single read, whereas having submodules exposes the underlying structure. More importantly, I feel like there's no strong convention for containing different parts of a typical Elm application. Maintaining a single file is increasingly difficult, and suggesting a standard set of submodules would be beneficial for the community.

I'll be happy to work on a PR if this idea gets accepted.

ffigiel commented 8 years ago

nvm, I duplicated #45