Hacker News new | ask | show | jobs
by aordano 1414 days ago
This reminds me so much of MithrilJS, and i also remember how terribly unergonomic it was, a terrible DX. The Vite JSX plugin is nice tho, I can see myself using this for something, but i will probably get tired of the ergonomics once i hit some complex component.

I am currently in early stages of writing a lightweight reactive framework more of the likes of Alpine and there are some things in this source that can prove fruitful. The rendering process is one of the most interesting things here imo.

7 comments

Coincidentally, the same command can work for both Million [1] and Mithril [2]:

  m('div', {id: 'box'}, ['hello'])
[1]: https://millionjs.org/docs/api/basics/m

[2]: https://mithril.js.org/hyperscript.html

This looks nothing like Mithril.js outside of the superficial comparison of the hyperscript helper using `m` instead of `h`, but almost every popular reactive front-end lib has a hyperscript-like API.
Thanks for the feedback, Million has a React compat layer https://millionjs.org/docs/start-here too
I actually like hyperscript DX more than JSX/HTML. What I’ve found out though is that most “prettifiers” and formatters in editors (unlike vim) suck so much at hierarchical calls formatting.
I really don't find not having JSX a big deal. If left to my own devices I won't even code preact/react with JSX so I can avoid a transpile.
Did you try Mithril with JSX? When I used it I thought the DX was great. Router and Http client included. No need for state management libs.
First time I've seen "DX". Developer experience, I assume from context?

That's an awesome term and I'm going to steal it.

ya,. developer experience. thought it was kind of a lame term and first but now i kinda love it. dx all the way. aint using no framework i have to fight with even if it produces optimal ux. sorry users, i love me more than you
Code that doesn’t work for the developers eventually won’t work for anyone else, either.
I just used "dev experience" yesterday when I was going to use "DX" at first, just in case someone didn't know the term. I thought I was being silly and that by now everyone would know the term, but apparently I did the right thing to be a bit over paranoid here! Thanks for confirming:

https://twitter.com/FPresencia/status/1553263166796308481

Yes, developer experience. I thought it was a common term, maybe not so much.

And I agree, it's a great term :)

If this is the first time you've seen DX I've got two words for ya
I've heard "developer experience" a million times. My last company had a few teams devoted to it, and the existential need is palpable.

I've just never seen it in abbreviated form, and that's kind of shocking to me because it's so obvious.