News for hackers. Stuff that matters.
Re:Have the Angular Team lost their marbles? by paulddraper on Wednesday October 29, 2014 @10:43AM (#8527403)
"Of everyone, Google should know how hard it is to maintain large web apps"

They do.

Google doesn't use Angular for Gmail, Docs, Sheets, Calendar, Maps, or Google+. They use Closure Tools (https://developers.google.com/closure/), which has a much longer history, and is geared towards truly large web apps.

As far as I know, only DoubleClick uses Angular.

Re:Have the Angular Team lost their marbles? by StevePerkins on Wednesday October 29, 2014 @11:08AM (#8527542)
I have no idea why Closure doesn't get more publicity. You never hear about it on Reddit/Slashdot/HN, but in the real world it's the foundation for virtually EVERYTHING Google does on the client-side, save for a handful of things still using GWT. Like GWT... Closure has been around awhile, has gentle-to-nonexistant migration issues, and will be around for at least a decade to come. Unlike GWT, and virtually everything else Google does... Closure is pure JavaScript, rather than a trans-compiling mess that tries (and fails) to replace JavaScript.

In client-side land, it's like there's inverse relationship between "blog chatter" and "real-world use in large projects". The tools that get all the attention are only used for personal tinkering, or by startups that mostly won't exist in a few years. Over the past several years, if something seems popular then that's a sign it's probably a children's toy for which you shouldn't stick your neck out within your company.

Re:Have the Angular Team lost their marbles? by btown on Wednesday October 29, 2014 @11:57AM (#8527849)
Well, Rails was talked about plenty back in the day (with its fair share of expletives), and it's proved to be anything but a children's toy.

Regarding Closure and its libraries, my impressions are that it gives tremendous maintainability and structure when you have a large team and a long-term project, but there's still a lot of boilerplate when you need things like a simple data binding. Having searched around, I've found that Angular (1.2) provides a good balance between structured, easy-to-find-things code, and fewer keystrokes to iterate fast on features. I wish React were like that, but the lack of best practices in the Flux architecture makes it hard to know where to put things - I found I was constantly worrying about shooting myself in the foot when I made architectural decisions in React.

I do think that Angular's going to get a Python-like version split, and it's refreshing that plenty of people are still writing Python 2 libraries... because I'm not leaving Angular 1.2 any time soon!

Re:Have the Angular Team lost their marbles? by kylecordes on Wednesday October 29, 2014 @12:45PM (#8528196)
I am also frustrated by the lack of broad interest in Closure. Partly because I am working in Clojure and ClojureScript, the latter of which relies on the Closure compiler for reasonably sized output and Closure libraries.

Keeping the various spellings of the name right is a challenge, but it seems to work very well. Yet it is so far from the rest of the ecosystem. When you roam across some interesting JavaScript library online, there is basically a 0% chance that it does things the Closure way.

Re:Have the Angular Team lost their marbles? by paulddraper on Thursday October 30, 2014 @03:30PM (#8535264)
Closure and Clojure...unfortunate naming conflict :P
Re:Have the Angular Team lost their marbles? by paulddraper on Wednesday October 29, 2014 @11:20AM (#8527628)
Having used Closure Tools for a couple years, I often wonder that.

But it lacks a lot of magic. It's based around reusability, maintainability, and performance, and not just features. Like you said, features get blogged, maintainability gets (silently) used.

Re:Have the Angular Team lost their marbles? by aikah on Wednesday October 29, 2014 @11:30AM (#8527686)
The closure-compiler is written in java. Here is your problem.
Re:Have the Angular Team lost their marbles? by StevePerkins on Wednesday October 29, 2014 @12:06PM (#8527912)
If you don't mind my asking, what do you mean by this? If you're doing non-trivial client-side development, then you are probably already managing the details of your building/minification/testing through Grunt or something like it anyway. Does the issue boil down to, "Needing a Node.js installation on my laptop to do client-side development is fine... but having a JVM installed on my laptop sucks because ermahgerd-old-people-enterprise-uncool"?
Re:Have the Angular Team lost their marbles? by aikah on Wednesday October 29, 2014 @12:44PM (#8528192)
Dont shoot the messenger,i'm just explaining you why the js community doesnt give a damn about all these closure tools written in java.
Re:Have the Angular Team lost their marbles? by paulddraper on Wednesday October 29, 2014 @11:34AM (#8527722)
It could be written in NodeJS, Haskell, or BF, but I doubt it would matter. I know a lot of JS developers that use Git, which is written in C.
Re:Have the Angular Team lost their marbles? by aikah on Wednesday October 29, 2014 @11:42AM (#8527758)
> It could be written in NodeJS, Haskell, or BF, but I doubt it would matter. I know a lot of JS developers that use Git, which is written in C.

Well git isnt a javascript compiler and git doesnt need the JVM to run.

Re:Have the Angular Team lost their marbles? by dpurp on Wednesday October 29, 2014 @11:08AM (#8527548)
Angular is actually used by a growing number of teams within Google, although most, if not all, use Angular with Closure.
Re:Have the Angular Team lost their marbles? by paulddraper on Wednesday October 29, 2014 @11:28AM (#8527679)
It's true they are not mutually exclusive. Closure is several related tools that can be used independently: a JS compiler (minifier + type-checker), templates, and very large JS library.

Some people use Angular in place of templates.

http://www.mircozeiss.com/a-radical-new-approach-to-developi... http://google-styleguide.googlecode.com/svn/trunk/angularjs-...

Re:Have the Angular Team lost their marbles? by paulddraper on Wednesday October 29, 2014 @11:09AM (#8527554)
Which ones?
Re:Have the Angular Team lost their marbles? by Bahamut on Wednesday October 29, 2014 @11:17AM (#8527611)
I don't know exactly which groups, but I have been told by an ex-Googler that they are used quite extensively by Google, sometimes in the form of Angular Dart. I have seen some proclaimed stats that they are used by over 120 projects by Google (I believe it was a slide from ng-conf).

I have also seen Angular on some Google pages in the wild, including the older Google Nexus pages.

Re:Have the Angular Team lost their marbles? by danabramov on Wednesday October 29, 2014 @11:16AM (#8527600)
Quite different from Facebook, which claims to use React for all new UI code.