|
|
|
|
|
by gavmor
543 days ago
|
|
Slick looking website, novel and relatively intuitive DSL, solid documentation! Parsing the playground demo was a fun scavenger hunt! Too fun... it took me several minutes to find `(coins += income)` at the line break. For me, it's difficult to scan for "code" that's in-lined as strings. That <progress/> eval, especially, is a doozy! > Use this [eval] directive sparingly, prefer alternative directives for better maintainability and security. This directive is intended for edge cases. Oh, and yet *eval is the heart and soul of the demo? In fact, it looks like the principal action--creating buildings--is performed by... the progress bar? That's low-cohesion and high-coupling if I've ever seen it. I would want to know: what are the Mizu ways of modularizing code to increase cohesion and decrease coupling? Anyways, thanks for sharing and congrats on launching. |
|
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.