Live data from Hacker News

Mithril.js – A modern client-side Javascript framework

mithril.js.org

51–60 of 83 posts

Re: Mithril.js – A modern client-side Javascript framework

#51

It is great to see Mithril again on front page of HN, it is one of the most simplest and easiest modern JS frameworks. I only know flarum [0] as a project which has used Mithril mixed with jQuery [1] and personally, I am quite amazed how snappy it is. [0]: https://discuss.flarum.org/ [1]: https://github.com/flarum/core/blob/master/js/package.json

Not to mention the wonderful testing utils which ship with it https://mithril.js.org/testing.html

Re: Mithril.js – A modern client-side Javascript framework

#52

It is great to see Mithril again on front page of HN, it is one of the most simplest and easiest modern JS frameworks. I only know flarum [0] as a project which has used Mithril mixed with jQuery [1] and personally, I am quite amazed how snappy it is. [0]: https://discuss.flarum.org/ [1]: https://github.com/flarum/core/blob/master/js/package.json

Lichobile[0] (lichess[1] mobile version) is also made with mithril.

There's also https://flems.io a snappy web playground with an open source embeddable core[2] ( shameless self promotion :P )

[0]: https://github.com/veloce/lichobile

[1]: http://lichess.org

[2]: https://github.com/porsager/flems

Re: Mithril.js – A modern client-side Javascript framework

#53
post #45

The main problem with steering away from templates is that designers who know HTML are immediately alienated from the code base. Same thing with CSS as objects instead of using real CSS. When working with libs that use HTML templates such as Vue, it's still possible for designers to be integrated in the development process. But with HyperScript, JSX, or Mithril, anyone contributing to the codebase has to know JavaScr…

If they can’t learn basic JavaScript, they should not be touching the code base with a ten foot pole. Designers can still design, but through mockups and comments passed to people qualified to modify code.

Re: Mithril.js – A modern client-side Javascript framework

#54
post #42

I credit mithril and it’s fantastic community of knowledgeable devs with really changing my learning style at the outset of my dev career. Essentially from learning by reading, and becoming overwhelmed (as is often reported in the js world), to learning by doing and using technology. I’m sure this happens to many other people through different routes but I personally experienced it through this community. Seeing peop…

Second this. Mithril.js is absolutely incredible, and my coworkers are often surprised at how quickly I can dive into a React project and fix an issue because I don't carry the baggage of doing things "the react way".

Every now and then I use software tools where rather than complaining about how x or y should be different, everything seems to be the best possible version of something I'd have come up with myself, and I have zero complaints. Mithril.js is one of those tools.

You're not "in a Mithril project", you're basically just using javascript but the VDOM is expertly and minimally handled by some key functions.

Participating in the project via Gitter was very welcoming as well. Long live Mithril!

Re: Mithril.js – A modern client-side Javascript framework

#55

It is great to see Mithril again on front page of HN, it is one of the most simplest and easiest modern JS frameworks. I only know flarum [0] as a project which has used Mithril mixed with jQuery [1] and personally, I am quite amazed how snappy it is. [0]: https://discuss.flarum.org/ [1]: https://github.com/flarum/core/blob/master/js/package.json

Aside, Flarum's scrubber/scrollbar is brilliant and a massive upgrade to how you have to navigate a traditional message board like phpbb where you kinda guess at arbitrary pagination til you're where you want to be.

Good example of using a SPA to improve UX of a "document-based" app.

Another example of this sort of SPA improvement is when clicking on a list-view item brings up an overlaying modal of the item-detail page which is nicer when user is browsing rapidly.

Re: Mithril.js – A modern client-side Javascript framework

#56
post #45

The main problem with steering away from templates is that designers who know HTML are immediately alienated from the code base. Same thing with CSS as objects instead of using real CSS. When working with libs that use HTML templates such as Vue, it's still possible for designers to be integrated in the development process. But with HyperScript, JSX, or Mithril, anyone contributing to the codebase has to know JavaScr…

If they can’t learn basic JavaScript, they should not be touching the code base with a ten foot pole. Designers can still design, but through mockups and comments passed to people qualified to modify code.

It's a collision between half the industry telling designers they need to know HTML and CSS to do the CSS work themselves (instead of Software Engineers, because they apparently don't want to deal with it) while the other half of the industry makes it ever harder to do so.

Consistency isn't exactly a high point when it comes to industry signaling vs reality.

Re: Mithril.js – A modern client-side Javascript framework

#57
post #45

The main problem with steering away from templates is that designers who know HTML are immediately alienated from the code base. Same thing with CSS as objects instead of using real CSS. When working with libs that use HTML templates such as Vue, it's still possible for designers to be integrated in the development process. But with HyperScript, JSX, or Mithril, anyone contributing to the codebase has to know JavaScr…

If they can’t learn basic JavaScript, they should not be touching the code base with a ten foot pole. Designers can still design, but through mockups and comments passed to people qualified to modify code.

I love getting PRs from designers on my Vue project at work. They enjoy not having to wait on me and I enjoy focusing on application logic instead of CSS tweaking.

Re: Mithril.js – A modern client-side Javascript framework

#58
post #17

Earlier quoted context omitted.

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. :-)

Because HyperApp also has state management built in.

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.

Re: Mithril.js – A modern client-side Javascript framework

#59
post #45

The main problem with steering away from templates is that designers who know HTML are immediately alienated from the code base. Same thing with CSS as objects instead of using real CSS. When working with libs that use HTML templates such as Vue, it's still possible for designers to be integrated in the development process. But with HyperScript, JSX, or Mithril, anyone contributing to the codebase has to know JavaScr…

If they can’t learn basic JavaScript, they should not be touching the code base with a ten foot pole. Designers can still design, but through mockups and comments passed to people qualified to modify code.

If markup and styling are not in JavaScript, designers do not need to touch JavaScript at all.

Re: Mithril.js – A modern client-side Javascript framework

#60
post #21

This follows Reacts style of 'functions instead of templates'. I don't think it's a good idea. I think React will be the Java of our time. It caters to engineers who want everything to be well defined and typed. And to large corporations which don't care about heavy build processes. Looking at what happened to Java: It's still used a lot. But not by new and exciting companies or indie developers. I think we will see…

It would follow then that an engineer having to look at a React project in the future might have an initial reaction not foreign to an engineer having to deal with a legacy Angular 1.x codebase today: recoil.
Post reply on HN