by lysergia on 1/11/23, 12:06 AM with 126 comments
by qwtel on 1/11/23, 4:23 AM
It offers nothing in way of ensuring that custom elements behave like builtin HTML elements. Half the elements I've come across will break or perform no-ops when you update an attribute or set a propety after it was attached to the DOM. Nevermind detaching and reattaching to the DOM, which will break virtually all of them (including my own sad contributions to this space).
The exception to this are those built using a 3rd party library like lit-element or stenciljs, which fill in the obvious omissions of these specs. Perhaps in another 10 years, a mangled version of half of one of them can be standardized? In the meantime, each component shipping its own frontend library or inlining the same core functions over and over again does nothing in the way of interoperability. You can bundle every popular JS framework and mix their components today. The reason you don't do it then or now is bloat, not the lack of a minimally viable shared component interface.
Besides, if you're going to use a 3rd party library and associated bundler/compiler, you might as well pick a good one such as React, Vue, Svelete, Solid or even jQuery UI. Using any of these, you can design and build an entire app faster than the bikeshedding commissars from goog and aapl can agree on whether "open" or "closed" should be the default for attaching a shadow DOM (at the risk of ruining the joke: there was no agreement; the developer has to provide a value in each instance...)
by lordgroff on 1/11/23, 1:31 AM
Since I really like mithril and there's one UI library, I've been playing with Shoelace and Crayons and they're pretty nice to work with, but I remain a bit puzzled why there's so few players in the space.
by apatheticonion on 1/11/23, 3:44 AM
That said, generally speaking, web standards really suck at offering sandboxing capabilities for third party integrations.
by colecut on 1/11/23, 3:32 AM
by danielvaughn on 1/11/23, 3:58 AM
by _boffin_ on 1/11/23, 1:49 AM
Question: when and or if they gain in adoption, could you see them replacing react? If not, what’s the use-cases that you believe they wouldn’t work for?
by rektide on 1/11/23, 2:34 AM
Treating the web as a low level platform that we can extense on top of, grow & further, with new, creative higher-level layers of hypermedia: that is a path to software with a soul, not just for big companies hacking out features, but genuine good for society. A malleable cohesive comprehendible connected information space.
by misterbwong on 1/11/23, 6:30 AM
Documentation and Google-ability of the subject isn't great so prepare to some digging and experimentation.
The current native feature set is somewhat lacking so you're definitely going to want to augment with some sort of helper framework/library. Building any significantly sized project purely native with vanillaJS would be challenging.
There are also some unique hurdles with this type of project that our org had to work through-mainly on the integration and design side of it.
by logankeenan on 1/11/23, 3:23 AM
by abathur on 1/11/23, 4:34 AM
I did have some early hopes that it would also be a good way to enable content authors to coin and style markup within their posts/articles/etc., but the JS required makes me feel like it'll be too heavy for that use-case for most.
by fergie on 1/11/23, 11:27 AM
by foobarbecue on 1/11/23, 6:34 AM
by POPOSYS on 1/11/23, 8:52 AM
by hyperhello on 1/11/23, 1:17 AM
by dmitriid on 1/11/23, 8:51 AM
- extremely light on content
- goes out of its way to not present anything more complex than non-functional pieces of code or static examples
- while advertising that they are "easy to use", the Writing section immediately skips to comparing and using frameworks and libraries
- I guess is a front to get the courses at $39/month, but the only link is on the front page
This is a horrible, bad, no good resource that offers nothing of value.
by globalise83 on 1/11/23, 8:55 AM
by rado on 1/11/23, 6:25 AM
by metta2uall on 1/11/23, 1:50 PM
by nathias on 1/11/23, 7:49 AM
by lloydatkinson on 1/11/23, 5:20 PM
by WhiteBlueSkies on 1/11/23, 8:57 AM