Rethinking the filesystem as global mutable state, the root of all evil

Rethinking the filesystem as global mutable state, the root of all evil

Whenever you invoke an executable, you are implicitly passing that executable a massive amount of global mutable state: namely, the filesystem. I’m also importing some of the concepts from Rethinking files here, namely the idea that handles can be held by a shell as shell variables, shells can pass handles as command line arguments to programs, and programs can return handles in turn. This is because we told our shell to invoke the program with a specific filesystem passed to it; namely, the handle to a filesystem returned by the program , which spawns a virtual filesystem which contains no files and returns the handle to it.

Source: www.devever.net