I’ve been using Elm on and off for a few years and I’m about the start a small/medium sized app (probably end up around 10k-20k loc).
I’m toying with the idea of keeping the entire application in one giant file for several reasons:
- Abstraction to separate modules always produces a ton of boilerplate and indirection (in my experience)
- Everything can be scoped in a file.
- I’m curious how it’ll play out (miserable failure or epiphany!)
I’m curious if anyone else has experience with really big files and how they felt about it.
I think the biggest issue is going to be editor support for navigation and performance. I’ve been a vim user of many years so I’m looking into other options that are Vim-like (neovim, and the rust ones). Would appreciate any suggestions.
I feel like the longer I can go without splitting, the more productive I’ll be.
P.S. entirely solo project, so not worried about annoying other developers with my experiment.