2 ms·
> I would want to know: what are the Mizu ways of modularizing code to increase cohesion and decrease coupling? Ostensibly exactly what you would do with JavaS
by CharlieDigital 2y ago
> I would want to know: what are the Mizu ways of modularizing code to increase cohesion and decrease coupling?
Ostensibly exactly what you would do with JavaScript.
Write a class or function closure similar to Vue composables.
It's not really the framework or library's job of making your code more modular; that's your job by writing good code.
- gavmor 2y agoYes, I know that it's my job to write good code. What I'm wondering is how must I design modules to accommodate this framework? I guess what's not immediately clear to me is what's in scope for eg eval. I'll have to dig into the docs more than I have.
- szundi 2y agothere are libraries/frameworks that make that practically hard though