How many of these "native" frameworks do we have already? I was never interest in web development but lately I've tried to learn something new and chose the web (the biggest platform ever). Seriously how come we are still using JavaScript ? And why are we compiling everything to JavaScript ? And why web assembly still needs JavaScript ?
These UI toolkits, frameworks (angular react Vue ... And whatever) will always output 1MB of JavaScript for a simple hello world.
Because that's the only language that browsers actually support at the moment and it's unlikely to change in the near future.
And why are we compiling everything to JavaScript
You don't need to compile anything and in fact you are transpiling from language X to JavaScript. The main reason is that a lot of developers now have to write code for the browser and they don't like the design decisions made in the JS language and so want to write in a language more like [insert their favourite language here] because it's "better" than JavaScript.
And why web assembly still needs JavaScript ?
Pardon ? Web Assembly doesn't need JavaScript for more details see here.
These UI toolkits, frameworks (angular react Vue ... And whatever) will always output 1MB of JavaScript for a simple hello world.
That's false.
For example the Vue.js hello World clocks in at 88KB unzipped, zipped up the total JS is 32.2KB. In terms of what you are looking at it's probably the Dev build which is large because it allows you to properly debug your application when you are developing. This is the same in non-web based environments like C / C++ in terms of an optimised build vs a non optimised build. If you don't believe me have a look here that's the total vue.js lib that you can include on your page without an "compiling".
19
u/dwighthouse May 08 '19
We’ve come full circle, I see.