DEV Community

Discussion on: In programming, is it better to have many small files or one large file?

Collapse
 
hecrj profile image
Héctor Ramón • Edited

I'd like to share this amazing talk by Evan Czaplicki, the creator of Elm: The life of a file.

In Haskell and Elm, I like to think of files (i.e. modules) as small libraries that offer good APIs. Then, other modules build upon them to offer higher-level APIs, and so on. I try to apply this idea in other languages when possible.