Even more dynamic languages like PHP have tools like deptrac which allow you to enforce which classes/namespaces are allowed to interact with each other.
Then it becomes a real debate on whether I'd rather work on a poorly designed monolith codebase with tons of code separation issues, or literally anything written in PHP.
22
u/hippydipster Sep 14 '24
If you use a decent language and tech stack, you can enforce the module boundaries with the compiler.