On AngularJS considered as one big fat Trojan Horse

A couple of weeks ago I was thinking about the relationship between AngularJS and this company that buys or starts projects and later sink them just because. No, no that company, the other one: Google. While perusing thru job boards AngularJS was appearing as a MUST in the same way (and intent) as .net appears for backend products. And then Google announced their real strategy.

Because, while there other JavaScript libraries out there that do two-way binding, template support and so on, there’s only one with a plan behind. Four years ago Google added AngularJS to its properties portfolio by adding their creators to its engineers portfolio. Just another JavaScript lib in a company where its main JavaScript apps are written in Java. A company that launched (and soon recanted) Dart, another scripting language, as the JavaScript replacement. Thanks to its initial simplicity AngularJS gained some traction. Add behind some marketing muscle and you have a winner.

Then Google announced their plans for AngularJS 2. A total rewrite (they should learn from Netscape) in ATScript. Not in JavaScript. Don’t worry: ATScript compiles to ECMAScript… and Dart. But, of course, there will not be an update path for all the code working in AngularJS right now. They’re just keeping the name. And maybe the logo.

Now I’m gonna dive into prediction territory. Let’s not forget that the business of Google is not in the development tools but in the advertisement. Everything and everyone in the company works for the ads division, directly or not. And one of the hidden but huge costs behind it are the fees payed to Firefox and Apple so they put Google in their respective navigators search box. Chrome on the other hand, been a Google property, adds no cost beyond the engineering resources destined to code it. As well as the Chrome OS, and the Chrome Notebooks.

I say that Google will announce in a months that Chrome will run native ATScript code. And, being a business movement as well as a typed language, quicker than JavaScript. Just another little push to those developers reluctant to embrace the jump from AngularJS to AngularJS 2. The bait: you can code in our language, run it at full speed in our browsers, and still compile it into JavaScript for those other losers still making us pay big bucks to Firefox or Apple.

On the other hand, we have another explanation for the switch to ATScript: the same way Apple has introduced Swift for iOS and MacOS development, maybe Google will introduce Dart (with AngularJS 2 to sweeten the deal) for Android (and Chrome OS) development. But this is just some wild fantasizing.