3 ms·
In the web, any dependencies have to be sent to the client as well, so making them small and having the build chain handle grouping them all up in one minified
by MrStonedOne 8y ago
In the web, any dependencies have to be sent to the client as well, so making them small and having the build chain handle grouping them all up in one minified file is suppose to make things quicker for clients.
also languages like python require an affirmed compile time resolved call to the classes so it can more easily know what code is not used or not going to ever be used.
Javascripts string based introspection and runtime generation of code being the backbone to the entire framework also makes it impossible to know what parts of included code are even used, just because no code calls out to it at build time doesn't mean the code isn't going to generate calls to it.
- bandrami 8y agoPeople surely aren't evaluating strings in production code, are they? The LISPer in me just died a little.