3 ms·
I had most of these concerns when I was early learning the language. I found it annoying to have everything in modules. Now, however, I've come to appreciate th
by sergiomattei 5y ago
I had most of these concerns when I was early learning the language. I found it annoying to have everything in modules. Now, however, I've come to appreciate the organization and structure that this forces upon the programmer.
It makes me structure my code and group related concerns at time of writing. I now code my functions as a working collective rather than individual items.
And with .exs files, you can have multiple modules in one file for quick scripting.[0]
[0]https://github.com/matteing/stack/blob/main/server/boilerplate.exs https://github.com/matteing/stack/blob/main/server/boilerpla...
- brightball 5y agoThis was one of my big impressions of Elixir. It forces you into so many things that improve long term maintainability.
- kopos 5y agoWhich is exactly what class based modularity provides