Live data from Hacker News

How to build a large Angular.js application

gocardless.com

21–30 of 53 posts

Re: How to build a large Angular.js application

#21

Can anyone comment from experience on the testability of Angular.js, that is mentioned in the article? Was it a reason to chose Angular.js over some other framework (if so, which framework)?

Looks like you missed the following line in the article

> Angular.js is built from the ground up with testing in mind. In our opinion this makes Angular different from all other frameworks out there. It is the reason we chose it.

Re: How to build a large Angular.js application

#22

Would be interesting to hear if you discovered any downsides to Angular. I've been working with it a lot lately, but it seems to be a really good solution and the only issues with it is it can be hard to set up to be compatible with googlebot and the slightly tough learning curve

We didn't look at all at SEO since it's our customer dashboard, we don't really care about it.

Here's the few downsides of Angular IMO :

- I'm particularly unhappy with the router, it does a good job but as soon as you start to have nested routes and complex layout, it you want to avoid copy-pasting the same bits of code everywhere it becomes a nightmare. We mitigated most of these issues by using a lot of directives but it doesn't solve the problem entirely. We looked at ui-router at some point but weren't totally satisfied by the way it worked. Maybe we should take another look.

- errors are sometimes very obscure, it can be hard to debug, even if at some point you start to recognize some errors and know where to look first

- docs could be better

There are some other glitches here and there but most of the time Angular is a real pleasure to use, it's by far the best front-end framework I've worked with.

Re: How to build a large Angular.js application

#23

not as good as ng-boilerplate http://joshdmiller.github.io/ng-boilerplate/#/home with its modular cut and paste directory structure.

Thanks a lot for mentioning this - I was about to have to dive into setting up a build for an Angular app I'm working on (which I need to learn eventually, just not right now) so that project really helps.

Re: How to build a large Angular.js application

#24

What are some large AngularJS projects that have been launched? I could only find Google DoubleClick and YouTube's PS3 interface. http://builtwith.angularjs.org/ Not to downplay the Ermahgerd Translator! http://ermahgerd.jmillerdesign.com/#!/translate

https://www.tesla.im

Re: How to build a large Angular.js application

#25

What are some large AngularJS projects that have been launched? I could only find Google DoubleClick and YouTube's PS3 interface. http://builtwith.angularjs.org/ Not to downplay the Ermahgerd Translator! http://ermahgerd.jmillerdesign.com/#!/translate

the site http://builtwith.angularjs.org is no longer updating i guess. their github page indicates a lot of pending pull requests. https://github.com/angular/builtwith.angularjs.org/pulls

Re: How to build a large Angular.js application

#26

not as good as ng-boilerplate http://joshdmiller.github.io/ng-boilerplate/#/home with its modular cut and paste directory structure.

We've basically settled on the same way of organizing Angular project. Our plan is to have specs and scss file in the module folder too.

Unfortunately we couldn't do it before because we're using rails assets pipeline, but it should happen soon now.

Re: How to build a large Angular.js application

#27
post #12
post #8

Earlier quoted context omitted.

Example: I'm working on a "large" CakePHP application (similar to Rails) with 24,000 lines of our own code, 57,000 lines of code from community plugins, and 240,000 lines of core framework code.

It would be 2-10 times less lines of code on Django (and also on Rails). Lines of code comparisons do not scale between programming languages.

I'm not sure I agree. All the frameworks just mentioned do more or less the same thing and have comparable lines of code counts.

- Django - 215,000 LOC (.py)

- Ruby - 232,000 LOC (.rb)

- CakePHP - 240,000 LOC (.php)

Re: How to build a large Angular.js application

#28
post #27
post #12

Earlier quoted context omitted.

It would be 2-10 times less lines of code on Django (and also on Rails). Lines of code comparisons do not scale between programming languages.

I'm not sure I agree. All the frameworks just mentioned do more or less the same thing and have comparable lines of code counts. - Django - 215,000 LOC (.py) - Ruby - 232,000 LOC (.rb) - CakePHP - 240,000 LOC (.php)

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

Re: How to build a large Angular.js application

#29

What are some large AngularJS projects that have been launched? I could only find Google DoubleClick and YouTube's PS3 interface. http://builtwith.angularjs.org/ Not to downplay the Ermahgerd Translator! http://ermahgerd.jmillerdesign.com/#!/translate

I have a feeling AngularJS is the type of framework the will be used often for inside-the-firewall type of corporate apps than public facing consumer web stuff. But this is just my hunch right now and is influenced by my past building these style apps with Adobe Flex.

Re: How to build a large Angular.js application

#30
post #12
post #8

Earlier quoted context omitted.

Example: I'm working on a "large" CakePHP application (similar to Rails) with 24,000 lines of our own code, 57,000 lines of code from community plugins, and 240,000 lines of core framework code.

It would be 2-10 times less lines of code on Django (and also on Rails). Lines of code comparisons do not scale between programming languages.

>>It would be 2-10 times less lines of code on Django (and also on Rails) [Compared to CakePHP].

Interesting claim. Do you have references?

(An account with a couple of hundreds of Karma making extreme claims? Please surprise me by not being a troll. :-) )

Post reply on HN