Live data from Hacker News

How to build a large Angular.js application

gocardless.com

51–53 of 53 posts

Re: How to build a large Angular.js application

#51
post #31

Earlier quoted context omitted.

Rails is about 110,000 LOC, last I checked right before the 4.0.0 release, where'd you get that number?

$ git clone https://github.com/rails/rails.git && cd rails $ find . -name '*.rb' | xargs wc -l | tail -1 232424 total Maybe I should have said LOCC (lines of commented code)?

Ahhh, you know what? I just realized I was confused: the diff for rails 4 was about +110,000 / -100,000, that's what I'm remembering that number from. My bad!

Re: How to build a large Angular.js application

#52
post #50

Earlier quoted context omitted.

Have you built anything with AngularJS? I've built apps in both Flex and AngularJS, and to me AngularJS is a very different beast, and a much better beast. Unlike Flex, AngularJS: does not provide a UI component library, has a first-class runtime environment (that is growing, not shrinking), integrates into existing websites (rather than sitting inside them as black boxes), brings an MV* way of thinking with it (Flex…

Yeup, i've worked with both and a lot, and with Flex back in the day (I co-authored a big publisher book on the topic). I'm not saying Angular/Flex is the same beast. I'm saying that one of market segments that is going to find it most useful is the same people who were looking at Flex to solve problems back in 2006/07. Naturally, technology has progressed quite a bit since Flex came out. For a JS library, Angular hi…

Yes, I'd agree that both solve the "large dev teams looking to build native browser-based apps". But I think the difference is that Flex was reasonably good at it, but was very effectively sold into the enterprise by Adobe. Hence it did well in the enterprise, but not great outside.

By contrast, AngularJs is not being sold into the enterprise by anyone (yet?), and is, IMO, better at solving those problems.

Hence my prediction: unlike Flex, AngularJS will gain market share in single-page-apps outside the firewall, as well as inside the firewall.

Re: How to build a large Angular.js application

#53
post #48

Earlier quoted context omitted.

9K LOC (not including comments) may not be "large" but it is quite sizeable and in a framework like Angular, probably does quite a bit. For comparison, I work on a Backbone.js app that has the following distribution. -------------------------------------------------------------------------------- Language files blank comment code -------------------------------------------------------------------------------- Javascr…

What did you use to generate this LoC analysis?

Looks like the output of cloc
Post reply on HN