5 ms·
I love Mithril but I find hs to be noisy to read and tedious to write. It's probably because I've been reading and writing HTML for +20 years though.
by pier25 6y ago
I love Mithril but I find hs to be noisy to read and tedious to write.
It's probably because I've been reading and writing HTML for +20 years though.
- rapind 6y agoYes, probably. I started using haml (then slim) a very long time ago and the hyperscript / elm type syntax is fairly intuitive to me.
- engineeringwoke 6y agoWhat is the point of templating HTML? I really don't understand it. Just write HTML or HTML-like APIs like JSX. Is there some theoretical reason why this is wrong?
- lhorie 6y ago(mithril author here) hyperscript is about as close to a middle ground as we can get. It's compatible with JSX for the folks that really really want to see angled brackets, while still being uniform javascript like other API variations (div(), html`<div></div>`, etc). The lit-html syntax is not bad either, but template strings did not have as widespread support back when mithril originally came out.
- engineeringwoke 6y agoYeah but why isn't it just HTML?
- simplify 6y agoWhy isn't what just HTML?
- avtar 6y agoIs there a roadmap for mithril? As in, what are the current pain points, where development is headed, etc.
- lhorie 6y agoI've given stewardship of the project to the community. At this point, it's largely in maintenance mode. Most changes are tightening up loose semantics and the like. IIRC the last major was only a major by technicalities; it didn't really break anyone unless they were relying in weird obscure behaviors. Since the framework isn't interested in chasing trends and since it provides extension points via lifecycle methods, there's really nothing novel that needs to come from the framework itself. I know some of the more popular frameworks make it seem that webdev is constantly in churn/evolving, but if you look at React for example, other than the hooks paradigm shift etc, it hasn't really changed all that much in scope over the years either (the same can be said about other libraries as well). For example, Mithril could easily be used w/ coffeescript when that was still a thing, and people use it with typescript these days too without much fuss since TS is also a project that decouples well. And this is with zero changes to the framework. You can integrate dragula or plupload or google maps or whatever via lifecycle methods as you always could too. So, TL;DR: I think the focus still remains on making it as stable and robust as possible
- avtar 6y agoThis was helpful. Thanks!
- nextaccountic 6y ago