Live data from Hacker News

Huge no. of files for Angular 2

stackoverflow.com

101–105 of 105 posts

Re: Huge no. of files for Angular 2

#101

Earlier quoted context omitted.

Hope this comment stays at the top before all the "wow JS sucks!!!" people arrive :-) Though to be fair a "modern" JS dev environment does use a ton of stuff! IIRC Angular 2 production builds are actually pretty efficient.

IIRC the Angular2 production builds are the largest among all the frameworks. If you add the router it sits just shy of a meg - and that's just the dependencies. Not sure if they've started working on bringing the size down yet, but there are 1KB alternatives[1] for those who cares about their users. [1] - http://monkberry.js.org/

This website froze my Firefox running on an i7 CPU due to the animated background.

Re: Huge no. of files for Angular 2

#102
post #74

Earlier quoted context omitted.

My results of the hello world tutorial in Angular2 was 53 requests, 4933.49KB, and loaded in 1.74s on local dev, according to browser dev tools. All for one html file that had one h1 element. Plus, it started out broken. I had to search elsewhere to find the solution to the error the tutorial produced.

That's not a production build. Minify it, run dead code elimination. Exactly as you would with any other language with a compiler. Also, worth noting that the tutorial being broken isn't symptomatic of JS, that's a problem with Angular (which has a history of sucking, and IMO Angular 2 just takes all of the problems with Angular 1 and adds more baggage to it). Be aware as well that Angular 2 is a full-fledged Web Fra…

I thought I’d never use Rails as example for a lightweight web framework, but Rails has to be the standard – and anything heavier than rails has to be completely discarded.

Re: Huge no. of files for Angular 2

#103
post #90

Earlier quoted context omitted.

Just ignore your whole dev/code folder from Spotlight. It's not a good way to get to it anyway.

Is there an indexer in any operating system that's worth the aggravation? Windows Explorer's is hot garbage, and I've never been real impressed with any of the ones in my various Linux distributions. Old-school grepping or using Notepad++'s find in files feature is far away the best method I've come across, which is... kinda sad.

I like Agent Ransack on Windows; much faster than the regular search. I've never looked into how it works.

Re: Huge no. of files for Angular 2

#104

This person is counting the node_modules directory. While JS is a bit insane and this directory will have a ridiculous number of files, they are concerned: "because my deployment (google app engine) allows only 10K files" meaning, they don't realize that node_modules is for development and not related to the application they would actually deploy.

Hope this comment stays at the top before all the "wow JS sucks!!!" people arrive :-) Though to be fair a "modern" JS dev environment does use a ton of stuff! IIRC Angular 2 production builds are actually pretty efficient.

I'm not sure the right conclusion here is "oh, well then that is reasonable."

Re: Huge no. of files for Angular 2

#105
post #3

Has npm finally figured out how to de-dupe dependencies? In one project, I have something like 47 copies of the same version of the same library, distributed at all levels of the node_modules hierarchy. I try not to think about that JS tooling too hard, lest I start pulling my hair out and devolve into a screaming crazy person.

Yes, that's already solved with npm 3.
Post reply on HN