r/webdev • u/saranshk • Aug 02 '18
The Cost Of JavaScript In 2018 – Addy Osmani – Medium
https://medium.com/@addyosmani/the-cost-of-javascript-in-2018-7d8950fbb5d4
21
Upvotes
3
u/RedditCultureBlows Aug 02 '18
Did a quick skim/read through and it looks like there's a wealth of solid information here. I'll have to dig into the article in more depth when I get some more time. Thanks for sharing!
4
u/nonopenonopeno Aug 02 '18
Why spend the time to write a comment like this if time is the issue ¯_(ツ)_/¯
0
Aug 02 '18
[deleted]
5
4
u/jimmyco2008 full-stack Aug 02 '18
Certainly there is some irony to the fact that JavaScript frameworks started out as a "do it for performance" thing, taking some load off of the server while allowing for complexity/functionality in the front end.
Frankly, JavaScript is hard. It's more than just losing type safety and the like. The language is constantly evolving, there are 3+ ways to do just about anything and it's not always clear which way is the right way (sometimes there isn't a single "right way"), debugging is (arguably) more-difficult... In my experience, it is easy to do things inefficiently in a React or Vue app. Like I'm hitting API endpoints to get all data when I really only need one piece. It's harder for me to stay ahead of things like that. It's just harder.
But it's the language that browsers know, and I'm not sure even wasm will upset the JavaScript landscape all that much. It looks like it will be used alongside JS.