Why create tiny JS modules? https://github.com/sindresorhus/ama/issues/10#issuecomment-117766328 (works surprisingly well in practice!)
miniblog.
Related Posts
Difftastic 0.27 is out! In this release:
* Added support for Kotlin and TOML
* Updated to latest tree-sitter parsers, including TS union types, C++ fold expressions and Java modules
* Improved the scaling of diff algorithm on large expressions
What languages have changed the most since their creation?
JS? IIFEs and prototypes to modules and classes.
C++? Plain pointers to smart pointers.
There must be more dramatic examples.
I really like the one-module-per-file model of JavaScript or Python.
If you're storing code in files, you might as well leverage file boundaries. If modules are a separate abstraction (e.g Rust, OCaml), it's harder to learn and choose how to organise code.

