Hacker News new | ask | show | jobs
by sergiomattei 1802 days 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/boilerpla...

2 comments

This was one of my big impressions of Elixir. It forces you into so many things that improve long term maintainability.
Which is exactly what class based modularity provides