Formatter End Game

Zero config code formatters are all the rage these days. Go started the trend and now all the cools kids are doing it. It begs the question, what other moats can be unified with automation? One thing that comes to mind is codebase organization at the file system level. It would be kinda cool and well within the purview of a compiler to reorganize your file system to canonically group related source files. I personally search for files rather than memorizing their paths so why not formalize that insight and never argue about where a file lives again? Frameworks like RoR already reinforce file system conventions so why not take the next logical step and automate it?

An even more controversial corollary is having a formatter decide which files your functions live in. That could be even more helpful but every SWE I’ve pitched this to has had a revulsion response. I for one think it would be cool.