Re:Mithril.js – A modern client-side Javascript framework
by oweiler on Friday August 17, 2018 @12:04PM
(#17783758)
Nowadays I'd recommend HyperApp over mithril.js.
[ Parent
| on HN ]
Re:Mithril.js – A modern client-side Javascript framework
by dammitfoo on Friday August 17, 2018 @04:29PM
(#17785427)
May I ask why? What are the benefits of HyperApp over mithril?
Re:Mithril.js – A modern client-side Javascript framework
by anonytrary on Saturday August 18, 2018 @02:35AM
(#17787201)
Hyperapp looks like it'd be a pain to use for anything other than small widgets.
Re:Mithril.js – A modern client-side Javascript framework
by dammitfoo on Saturday August 18, 2018 @01:24AM
(#17787007)
I'm asking why you prefer hyperapp because Mithril has router and xhr capability built-in, and hyperapp doesn't seem to have those features. But hyperapp is really tiny though. :-)
Re:Mithril.js – A modern client-side Javascript framework
by jarcane on Saturday August 18, 2018 @05:58AM
(#17787756)
There are addons for routing and HTTP requests for hyperapp, and they add trivial amounts to the bundle size.
The reason to use hyperapp IMO is it is far closer to the actual Elm-style FRP model, and as such includes functional state management out of the box, in a far less awkward and boilerplate heavy way than Redux provides.
Re:Mithril.js – A modern client-side Javascript framework
by oweiler on Saturday August 18, 2018 @05:36AM
(#17787686)
Because HyperApp also has state management built in.
Re:Mithril.js – A modern client-side Javascript framework
by The_suffocated on Saturday August 18, 2018 @11:15AM
(#17788837)
If I understand correctly, HyperApp enforces the so-called SAM pattern, but that's it. Calling this "state management" seems to me an exaggeration. And why would one use a view framework to do (domain/application) state management? It doesn't sound right.