As if the javascript version was so good that it doesn't require anymore work.
Angular Announces AngularDart
51–60 of 177 posts
Re: Angular Announces AngularDart
#52When I look at Dart vs JS (JavaScript), I see a lot of parallels to Java/C#. The Java language stagnated for a long time under Sun. The language was usable only through the heroic efforts of tool vendors (Eclipse, IntelliJ, etc.) Even with these tools, Java is just barely good enough. C# is technically a superior language to Java. Combined with an excellent IDE (VS), the .NET platform is probably technically superior…
Re: Angular Announces AngularDart
#53Sigh ... I knew this was going to happen. :-/ This is part of Google's strategy to push Dart in the browser. Soon they're going to start developing Angular primarily in Dart, and 'back-porting' features to JavaScript. Sadly, this is the nature of so-called "Open Source" at Google.
Re: Angular Announces AngularDart
#54Earlier quoted context omitted.
Just because it can't be forced down our throat doesn't mean it's not uncomfortable that Google's trying.
Like I said, "You have a right to be revolted by it." But, I think it would probably be a better use of your time to be uncomfortable over things like hunger and disease than a company trying to promote a new programming language to further its self interest - that's what companies do.
I don't have a problem with that, I just think you're loudly complaining about how loud everyone is. ;)
Re: Angular Announces AngularDart
#55I'm using AngularJS. But this Dart news is a dark cloud. I will never use Dart, or anything that locks me into Google's walled garden. I view Dart as a major negative. Hello Ember.
Dart is an open-source project and compiles to JS. Not unlike CoffeeScript or TypeScript. The cool thing that makes me excited about dart2js is that Dart is a much better language than JS itself (not a high bar, but still) and that dart2js as of late is producing more efficient code than hand-coded JS because they leverage Dart's more ubiquitous typing as well as other tricks.
Re: Angular Announces AngularDart
#56Earlier quoted context omitted.
It doesn't matter - Dart can compile to JavaScript. When it might matter is if there are apps (like games) that run faster in a Dart VM than in javascript. Anyway though, even Chrome doesn't include a Dart VM yet by default, so no big deal yet.
To piles of JavaScript, you mean. As well as, forcing developers to infer the way Dart compiler generates JavaScript code, in the absence of source maps. I rather use JavaScript, thank you.
Re: Angular Announces AngularDart
#57Earlier quoted context omitted.
> Secondly, Google is a big company and some teams within it wanted to use Dart, whereas otheres want to use vanila javascript and Angular, so now you have both. Specifically who?
A number of the members of the Chrome team. If you watch the announcement from when Blink hit, they did some developer talks. When asked about the integration of Dart into Chrome, it was fairly obvious that some of the guys didn't want Dart in there [0]. But at the same time, a high-level direction is being set to try and get Dart added. Google employs a LOT of developers. A lot of those developers feel the same way…
j/k. I doubt even Microsoft would want to bring that abomination back.
Or would they??
Re: Angular Announces AngularDart
#58I like both Angular and Dart, so that's good news. One thing I noticed though: transpiling a .dart file with just the import statement for AngularDart (import 'package:angular/angular.dart') generates a non-minified 5MB .js file with almost 150 kloc. Every code change will create a new version of it, invalidating previously cached versions. :/
Re: Angular Announces AngularDart
#59I like both Angular and Dart, so that's good news. One thing I noticed though: transpiling a .dart file with just the import statement for AngularDart (import 'package:angular/angular.dart') generates a non-minified 5MB .js file with almost 150 kloc. Every code change will create a new version of it, invalidating previously cached versions. :/
Are you sure you are using the latest version? Angular was an early user of mirrors (reflection) which (more or less) disabled the tree-shaking of dart2js. This was recently improved. Tracking the size of AngularDart: https://github.com/jbdeboer/angular-dart-js-size
pubspec.yaml:
name: test1 dependencies: browser: any angular: git: https://github.com/angular/angular.dart.git
test1.dart:
import 'package:angular/angular.dart'; main() => ngBootstrap();
dart2js launch => builds test1.dart.js, about 5MB, 142,749 loc.
Re: Angular Announces AngularDart
#60I'm using AngularJS. But this Dart news is a dark cloud. I will never use Dart, or anything that locks me into Google's walled garden. I view Dart as a major negative. Hello Ember.
Coincidentally, this is how I feel about AngularJS. By using it, you're developing apps the way Google wants you (or it's own developers) to. It could be good, it could be bad. it depends on the app, but you still have to do it their way.
You don't want to be locked into Google's walled garden, but, by using Angular, you're already inside...