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
-
sariel84472yIMO a large percentage of toxic devs in node are angular and react devs, angular moreso than react though.
-
As a non-web dev I still struggle to understand why the fuck y'all got like 17 frameworks that all do the same thing or why you would even need one to begin with
-
kiki352492yuse web components. Even without them, well-written direct DOM manipulation with querySelector and standard DOM api is guaranteed to be faster than poorly-written react or angular. They're no magic pill.
-
@kiki You of all people should understand that the benefit of component frameworks is declarative UI and not just clear module boundaries.
-
@LotsOfCaffeine Historical reasons mainly, the DOM used to suck so bad we generated an intermediary object model (virtual DOM), diffed that and applied only the necessary transformations. This model, the way to build it, and the diff-and-sync module were what mainly set the frameworks apart.
Later they all diverged on unrelated ideas as well. -
@LotsOfCaffeine But also the w3c gets hard on making event handling imperative while simultaneously keeping the styles declarative, so we needed a way to sync all that up since by default you both have to retain element instances to preserve event handlers and be aware of the overall structure which the queries are applied to. The solution turned out to be to isolate ourselves from the DOM and focus on structure, and have the middle layer take care of event handler registration.
-
kiki352492y@lorentz the concept of changing the data and making ui rerender to reflect it is dead.
-
@kiki I see it all over the place, in new apps as well, and it doesn't really hurt UX in any way so I see neither evidence nor reason for this claim. Are you sure it's dead to the rest of the world too and not just you?
-
kiki352492y@lorentz there was a time I've seen Flash everywhere too. The reason is, web doesn't rerender the entire thing on every state change. DOM itself is inherently stateful and isn't made of pure functions.
-
h3rp1d3v5192y@kiki svelte/solid/preact do targetted update instead of page rerender on state change. Dom manipulation is not fun at all. All react hooks/ signals are stateful but the API is functional. Once I tried declarative UI, I can never go back.
-
kiki352492y
-
h3rp1d3v5192y@kiki Honestly, they (my company) should use lit.dev instead of angular. The whole thing is opp cluster fuck. All UI updates are manually triggered. With lit, they don't have to deal with observable complications LoL 🤣.
Looked into lit and some repo. Ugly af. Not for me. -
h3rp1d3v5192yFor my job, it's impossible to push any small fixes that are not assigned to me. Lit.dev? 🤣 There is no saving.
Related Rants
Tweet: Angular is slow.
Response:
vdom is worse than angular.
Then why not fix the stupid change detection strategy, broken form type/validations, late subscription bugs.
"Angular is for enterprise app".
This sentence means nothing.
Wtf angular community is so toxic
https://twitter.com/mgechev/status/...
rant
angular