Modules, components, micro-services… all the modern trends in web development are about breaking things up into encapsulated, self-contained units of functionality, and there are great reasons for this: it helps simplify your mental models, makes things easier to maintain and eases future evolution of the system.
Yet when it comes to our code organization, many projects still organize their files and directories based on file type. What about “componentizing” our source files? Learn about The Modlet Pattern, a dead simple idea about co-locating related files, that has huge benefits, along with tools that support the pattern.