6 ms·
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 usin
by aordano 4y 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.
- divbzero 4y agoCoincidentally, 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 https://millionjs.org/docs/api/basics/m [2]: https://mithril.js.org/hyperscript.html https://mithril.js.org/hyperscript.html
- echelon 4y agoFirst time I've seen "DX". Developer experience, I assume from context? That's an awesome term and I'm going to steal it.
- aordano 4y agoYes, developer experience. I thought it was a common term, maybe not so much. And I agree, it's a great term :)
- 8n4vidtmkvmk 4y agoya,. 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
- hinkley 4y agoCode that doesn’t work for the developers eventually won’t work for anyone else, either.
- franciscop 4y agoI 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 https://twitter.com/FPresencia/status/1553263166796308481
- LAC-Tech 4y agoIf this is the first time you've seen DX I've got two words for ya
- echelon 4y agoI'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.
- aidenyb 4y agoThanks for the feedback, Million has a React compat layer https://millionjs.org/docs/start-here https://millionjs.org/docs/start-here too
- toastercat 4y agoThis 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.
- pier25 4y agoDid 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.
- wruza 4y agoI 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.
- LAC-Tech 4y agoI 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.