Hacker News new | ask | show | jobs
by ishener 3612 days ago
32,000 files for a hello world... jeez, i'm going back to java.....
2 comments

Not 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).
Also note that this is only the standard library. If you add an enterprise framework you're probably pushing 50k.
JRE 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.

I'd argue that Angular2 is a platform as well.
Yes, let's compare the industrial strength tested jdk with the average npm lib developer.
No, 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.