5 ms·
32,000 files for a hello world... jeez, i'm going back to java.....
by ishener 10y ago
32,000 files for a hello world...
jeez, i'm going back to java.....
- j_jochem 10y agoNot a lot better: $ unzip -l /usr/java/jdk1.8.0_77/jre/lib/rt.jar | wc -l 20138 It's just less of a burden on the host filesystem because those files are usually loaded straight from the jar (i.e. zip file).
- deleted 10y ago[deleted]
- j_jochem 10y agoAlso note that this is only the standard library. If you add an enterprise framework you're probably pushing 50k.
- ivan_gammel 10y agoJRE is a platform, so if you counting platform files, why not also counting NodeJS or browser sources too? I'd rather look at comparable thing like JEE server + Spring + some server-side renderer like Thymeleaf.
- marpstar 10y agoI'd argue that Angular2 is a platform as well.
- smrtinsert 10y agoYes, let's compare the industrial strength tested jdk with the average npm lib developer.
- stupidcar 10y agoNo, 32k source files for the whole Angular 2 SDK. The deployable hello world app would be one JS file. Try exploding every Jar in the JDK and counting how many class files and resources there are.