News for hackers. Stuff that matters.
Re:Show HN: Mizu.js – Lightweight HTML templating library fo... by CharlieDigital on Thursday December 19, 2024 @03:59PM (#42465649)

    > 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 libraries job of making you code more modular; that's your job by writing good code.

Re:Show HN: Mizu.js – Lightweight HTML templating library fo... by gavmor on Thursday December 19, 2024 @07:15PM (#42467129)
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.

Re:Show HN: Mizu.js – Lightweight HTML templating library fo... by szundi on Friday December 20, 2024 @02:05AM (#42468928)
there are libraries/frameworks that make that practically hard though