3 ms·
Another article about web dev that fails to mention bare metal web components and Lit. How does this keep happening? While it's true that bare metal web compon
by dtagames 4y ago
Another article about web dev that fails to mention bare metal web components and Lit. How does this keep happening?
While it's true that bare metal web components don't handle routing or state for you, in many apps those are problems that you can solve yourself -- and in a way that makes sense to you, rather than to the framework developer.
In my experience with Lit and bare metal (browser standards-based) web components that you hand-craft (not from a library), there are fewer bugs and the ones that exist are ones you designed -- rather than ones that come from a misunderstanding of a framework. Without a framework to learn, your cognitive load consists of only your own inventions and abstractions -- which are far easier to remember and deal with than something designed by a committee and documented with some largess.
- metadat 4y agoIgnorance is the norm until the information spread reaches critical mass. You could help spread ideas you consider worthwhile (presumably the ones you mention) by providing concrete links to the things you are talking about, especially information on how to properly take advantage of them. I've never heard of Lit and/or bare metal, and don't know where to begin. I also consider myself proficient in React and Angular.
- dtagames 4y agoIndeed. I wrote a whole series on it. I don't post this every time I comment, though. :-) https://link.medium.com/RpKPYCuwAtb https://link.medium.com/RpKPYCuwAtb
- Waterluvian 4y agoI skimmed this article and I’m confused and must not be understanding it. It talks about bare metal vanilla components without any frameworks and such. This has my attention. But it ends with “here’s a library on top of web components called Lit!” Are web components not good enough yet? Why do I need anything?
- dtagames 4y agoIt's not a library. No components ship with Lit. It's just syntactic sugar for stuff that's built into browsers now. That's the "bare metal" parts. You need to write your own components and make your own library for your company or project, although some big firms like IBM, Alaska Airlines, and MS have released the libraries they made with it. This fact, that it's the "anti-framework" (ie: not a framework) is both its greatest advantage and its biggest source of confusion for new folks.
- Waterluvian 4y agoInteresting! Thanks for the clarification.