Hacker News new | ask | show | jobs
by CharlieDigital 543 days 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.

2 comments

Yes, 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.

there are libraries/frameworks that make that practically hard though