Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Bad news: everything is stateful, everything has to be constructed and modified procedurally step-by-step, attributes are all strings and change events are forwarded in the worst way imaginable.
The W3C had a chance to reconcile JavaScript with html and they failed. I'm not passing data in strings when I can just use a component framework that doesn't suck balls just to support string-like state (which is obviously far too slow to be the way forward anyway, even the best APIs would be too slow). -
@lambda123 Because procedural updates introduce complex dependencies between pieces of code, while simultaneously making the code a lot longer, which makes them an endless source of bugs that simply can't occur in a declarative model.
-
@lambda123 The course you can finish in two days shouldn't make or break your choice of tech.
-
@lambda123 And yeah procedural is certainly faster, but this particular use case makes up for that with the cost of serializing and deserializing everything to and from text when the "public state" (another terrible idea) of the component changes
-
@lbfalvy Not sure I 100% understand your info but strings are not the only way to communicate with web components
Having fun with HTML5 custom elements and shadow DOM. Finally, a genuine way to make widget libraries.
rant