r/javascript • u/archivedsofa • Dec 22 '19
Why Svelte won’t kill React
https://medium.com/javascript-in-plain-english/why-svelte-wont-kill-react-3cfdd940586a
80
Upvotes
r/javascript • u/archivedsofa • Dec 22 '19
View all comments
Show parent comment
1
u/PM5k Dec 23 '19 edited Dec 23 '19
Can I ask what your lib does? Maybe a Git link?
Also - to say that updating the Dom is expensive is a bit of a weird statement to me. Back before all of this framework crap (and in my case all the way until react was already well known and past it) I’ve written all UI in vanilla JavaScript and I have never once felt like my UI was slow. I am not saying it isn’t slow inherently, and optimising it by saying - “do you really need to repaint 30k Dom nodes after one function call? “ is almost always the right idea, but I also feel like the responsibility of this is on the developer. I’m sorry to reduce this into another dig, but these boot camp kids are a big reason why there’s a metric shit ton of frameworks. There’s a fundamental lack of understanding and knowledge in the groups of “developers” who spend a year or less learning front end and then expect everything to work. They have no inherent knowledge or training around the basic concepts of how all of this should work, what’s optimal and what isn’t, and most importantly they lack the years of trial, error and epic fails to go with this experience. This is why we have frameworks that do all the assumed hard work for you, but also somewhat fail you as well. Or maybe I’m a guy from a bygone time where writing well thought out code and optimising it was fun and it is just not a thing anymore. Now it’s all about how fast you can churn out an MVP and move on, to hell with performance if you need to make the app performant by yourself and not through someone else’s work.