News for hackers. Stuff that matters.
Re:Ask HN: Why is mithril.js not popular? by porsager on Tuesday April 16, 2019 @02:15PM (#19675937)
I think most people using it are busy building stuff with it, not having time to evangelize it. I've been using it for 4 years now, for almost any type of project you could imagine. It doesn't have that shiny hype polish as the rest, but it does a perfect job for what it's supposed to, and it has the best community I've ever encountered.
Re:Ask HN: Why is mithril.js not popular? by keb_ on Monday April 29, 2019 @02:00PM (#19780826)
Good point about the users not evangelizing it. Besides being a great tool in and of itself, the community is incredibly helpful and encourage a "use the right tool for the job" philosophy that I found refreshing.
Re:Ask HN: Why is mithril.js not popular? by brlewis on Tuesday April 16, 2019 @02:40PM (#19676142)
That matches my experience.
Re:Ask HN: Why is mithril.js not popular? by pictur on Wednesday April 17, 2019 @03:57AM (#19680634)
+1
Re:Ask HN: Why is mithril.js not popular? by PaulHoule on Tuesday April 16, 2019 @09:50AM (#19673554)
It's a crazy crowded space for one thing.
Re:Ask HN: Why is mithril.js not popular? by bengunnink on Tuesday April 16, 2019 @11:59AM (#19674782)
Rephrase the question: "Why should mithril.js be popular?"
Re:Ask HN: Why is mithril.js not popular? by muzani on Tuesday April 16, 2019 @06:59PM (#19678071)
I don't use web frameworks but it's always occurred to me that the big 4 JS ones are Angular, React, Vue, and Mithril.

Angular and React are popular because they're backed by giant companies who have the resources to market and document it well.

Vue and Mithril seem better built, but Vue has nicer syntax, and Mithril is more lightweight.

But if I wanted lightweight I figured jQuery and JS might be better. I'm possibly wrong about this but that's the layman impression I get.

Re:Ask HN: Why is mithril.js not popular? by brlewis on Tuesday April 16, 2019 @02:38PM (#19676129)
Re:Ask HN: Why is mithril.js not popular? by sergiotapia on Tuesday April 16, 2019 @12:15PM (#19674913)
It's a non-starter for me because it doesn't seem to have Mobx support. I use mobx to handle my application's state at a global level.
Re:Ask HN: Why is mithril.js not popular? by porsager on Tuesday April 16, 2019 @01:58PM (#19675781)
Mithril works seamlessly with Mobx, you just call m.redraw in autorun(). I actually think that just underlines the strength of Mithril. No need for a special wrapper library to support other modules.
Re:Ask HN: Why is mithril.js not popular? by porsager on Tuesday April 16, 2019 @03:05PM (#19676355)
Re:Ask HN: Why is mithril.js not popular? by sergiotapia on Tuesday April 16, 2019 @03:19PM (#19676467)
Thank you! I'll take a look!

Edit: Seems like it's bugged? `fields are not currently supported`

Re:Ask HN: Why is mithril.js not popular? by fuzetsu on Tuesday April 16, 2019 @04:54PM (#19677215)
Try this version out, I enabled babel. Your browser might not support class fields yet.

https://flems.io/#0=N4IgZglgNgpgziAXAbVAOwIYFsZJAOgCsEAaEAYw...

Re:Ask HN: Why is mithril.js not popular? by foxdonut00 on Tuesday April 16, 2019 @04:20PM (#19676950)
Seems to work fine, where are you seeing this error?
Re:Ask HN: Why is mithril.js not popular? by itronitron on Tuesday April 16, 2019 @04:23PM (#19676972)
i get the same error in Firefox