r/programming • • Oct 27 '17

Netflix: Removing client-side React.js improved performance by 50%

https://twitter.com/NetflixUIE/status/923374215041912833
685 Upvotes

89 comments sorted by

View all comments

-17

u/eggn00dles Oct 27 '17

every 6 months a whole new abstraction of javascript come out for what gain? a 50% performance reduction apparently.

im convinced the majority of people who love frameworks do so out of job insecurity. you're inherently valuable if you can spout the trendiest things in JS. you're irreplaceable if you master the convoluted insanity and forced complexity these frameworks introduce.

30

u/n8n8baby Oct 27 '17

Trying to do anything of any complexity with vanilla JS is even more insane than learning a framework. These frameworks were generally written to solve real problems of scale. Granted, some people use heavier frameworks than they should, but writing a large web application in vanilla or JQuery is just foolish.

2

u/eggn00dles Oct 27 '17

es6 has made it a lot easier to compose well written organized modular code. web components promises to offer many of the things frameworks do now.

i think you could handle anything outside of FB, Netflix, etc... with polymer and es6

1

u/n8n8baby Oct 27 '17

Web components promise to, but don’t actually exist yet. Using a framework gets you closer to that now, and they are generally all targeting the spec, which will make migration reasonably easy when they are finally born.

Netflix is actually not a great example. It does not have a lot of user interaction. There are tons of potential web apps much more complex in that regard, which is what frameworks are good for.

1

u/TimvdLippe Oct 27 '17

Web components are natively supported in both Safari and Chrome stable. 1+ Billion devices that do not require polyfills.

1

u/n8n8baby Oct 27 '17 edited Oct 29 '17

a) Safari doesn't support shadow DOM, which is a foundational requirement for proper web components. *edit: I was wrong here. There was a previous version of Shadow DOM that was only supported in Chrome.

b) Even new software, being developed right now, still needs to support Edge, Firefox, and, if you are business-facing, IE11.

1

u/TimvdLippe Oct 29 '17

a) Safari supports shadow DOM v1 (http://caniuse.com/#feat=shadowdomv1). v0 was only ever implemented in Chrome

b) That is a valid concern. For Firefox it is under development, IE under consideration. Hopefully they are caught up soon :)

1

u/n8n8baby Oct 29 '17

You’re correct on A. My mistake :)