3 ms·
For my FE projects I employ a module based code structure. If you import a module, you get the whole thing. This lends itself to many positives but one negative
by qudat 6y ago
For my FE projects I employ a module based code structure. If you import a module, you get the whole thing. This lends itself to many positives but one negative is it makes it easy to run into circular dependencies. I wrote an article discussing my architecture and how I solve circular dependencies in js.
https://erock.io/scaling-js-codebase-multiple-platforms/ https://erock.io/scaling-js-codebase-multiple-platforms/
In the article I argue that circular dependencies are a good thing because they uncover poor code organization.