13 ms·
AngularDart is going all Dart
- pfooti 10y agoMy initial reactions upon hearing this. * wait, is dart still a thing? * this can't be good for angulardart. Basically they're splitting the project into two projects, claiming that both sides will benefit from lots of support. I suppose if the typescript half of angular was held back by any needs to cross-compile into dart, then the typescript half will be losing shackles. I honestly don't see how a low-penetration language is going to benefit much here - are we going to see a resurgence of interest in dartlang just because now there's a more native-feeling angular library for it? I've been wrong in the past, I guess.
- skybrian 10y agoMany Google teams are using it so it will be maintained regardless. The team maintaining it doesn't really depend on outside enthusiasm (though it would certainly be nice).
- wstrange 10y ago> are we going to see a resurgence of interest in dartlang It is hard to predict the future, but I do think this is a very positive move for Dart that will drive adoption. Dart frameworks were always playing second fiddle to the needs of Javascript developers - resulting in compromises. A Dart first framework (with some awesome Material widgets thrown in) will offer a compelling developer experience. Combine that with Dart on Mobile (flutter.io), Dart on IoT (dartino.io) and Dart on the server, and you have a very nice story.
- ramses0 10y agoRectify dart and go for me, please. Why should I learn one or the other? If the ideas and concepts behind dart are so good why isn't golang taking input from it? If golang is so good why does dart even exist?
- skybrian 10y agoWell, for example, you could use Go on the server and Dart in the browser. (I quite like using Go with App Engine.) Of course that means you can't share code between client and server, but not everyone needs that.
- weberc2 10y agoBoth Dart and Go can be run in the browser or on the server, so you can share code between client and server regardless of which language you choose, so long as you don't mix them.
- skybrian 10y agoWell, maybe. I have not kept up with GopherJS; how are they doing on code size? And while you can certainly run Dart on an App Engine Managed VM, there is no free tier like with Go.
- weberc2 10y agoNot sure about GopherJS. I'm confused about how App Engine's pricing model relates to whether or not Dart is well-suited to server tasks?
- skybrian 10y agoWell, it's relevant to those of us who are using App Engine. Where else can I can I set up a service for a hobby project without a monthly charge if it's barely used?
- xigency 10y agoDart and Go each serve different platforms.
- almost 10y agoYour question is kind of nonsensical. The two languages have little, if any, overlap in use cases.
- pfooti 10y agoI'm personally of the opinion that many languages is a good thing. I don't like monocultures much, so on that level, I want dart to succeed. I agree that having a robust dart-first framework (and widget library) is a necessary condition for making dart popular. Here's hoping it is also sufficient. I feel like Dart lost its biggest edge when google moved away from the dart runtime. If everything is just compiled down to js anyway, dart can't do much more than put syntactic sugar over what's already there, instead of providing a real new language experience. Then again, clojure, scala, and java are really different experiences. Maybe google's backing keeps the language running long enough to gain real traction.
- blendo 10y agoFrom http://angularjs.blogspot.com/2016/07/a-dedicated-team-for-angulardart.html http://angularjs.blogspot.com/2016/07/a-dedicated-team-for-a...: "If you're a TypeScript or JavaScript developer, you'll also benefit from cleaner JavaScript APIs and performance gains as we simplify the TypeScript codebase to remove the need for compilation to Dart." Maybe this split was prompted by the imminent release of Typescript 2.0?
- Touche 10y agoWhat a train-wreck. So now AngularDart has it's own dedicated team? Angular is already swimming upstream having lost its position to React and it's respect within Google to Polymer. That they are going to be supported 2 separate language versions of the same giant framework is kind of hilarious.
- juandazapata 10y agoThe Javascript wild wild west.
- themihai 10y agoUnfortunately that also means web www
- ben_jones 10y agoCalling it a train wreck is massive hyperbole. Just because React is so popular on hacker news or in the SF bubble does not mean it is anywhere near a de facto superior choice. Using such hyperbole detracts from the conversation and misleads young developers who may not yet know how to accurately weigh software stack decisions for personal or professional projects. And this is coming from someone who was really excited for 2.x (and TS for that matter) but has resigned to probably staying with 1.x and es5/6 for the foreseeable future.
- seibelj 10y agoTotally my opinion but react is simply the best way to create user interfaces, regardless of language. If someone made react using Python targeting GTK components it would be the best. The one way data flow and flux architecture is superior to other UI frameworks I've used.
- Touche 10y agoI find flux to be a really bad way to organize an application. It removes the good engineering practice of having self-contained components. So if you're writing a tabs widget you can't put all of its code together, you have to maintain a separate "reducer" or whatever for the tab state in a different file usually in a completely different location, and the top level of the application has to know about that reducer. I think this architecture is an awful way to go, and I have no idea how it has become popular.
- msoad 10y agoThe big difference between Dart and TypeScript is that Dart has a standard library for DOM. But I'm not sure how that's different than .d.ts files for DOM that TypeScript has in its core. After all DOM code is translated to JS code 1:1. Maybe Dart does more magic?
- zoechi 10y agoDart has more polyfill stuff built-in. This is IMHO a big advantage when I see all the related StackOverflow Angular2 TS questions. A downside is that it is sometimes a bit more cumbersome to work around if something is not fully polyfilled by Dart and you have to work around "manually".
- isoos 10y agoTypeScript is evolving towards the same language and tooling goals as Dart has already achieved. I have worked with both, and I find TypeScript tooling to be years behind Dart (event with recent improvements of type inference and e.g. VS's intellisense). The main reason TypeScript got more adoption was the fact that it was built on top of JavaScript, and people could easily start mix-and-match with their JS code. While that is great for easier adoption, it may not protect your engineers on the same level as Dart does.
- Bahamut 10y agoThank god - for anyone who has contributed to Angular 2, having to write code a certain way because of dart sucks.
- zoechi 10y agoDart doesn't suck. Dart is different and developing in a way that meets both language needs is a pain in many situations. If you say Dart sucks you also have to admit that TS sucks. They just suck at different things. There are no upsides without downsides. It's just about what upsides and downsides you are more comfortable to live with.
- jhummel 10y agoI don't think OP was saying that dart sucks. He was saying it was a pain to have to write his ts code in a certain way to accomodate the Dart side of things. By splitting the repo he doesn't have to worry about that anymore, just like Dart developers won't have to worry about the ts/js side.
- Bahamut 10y agoI didn't say Dart sucks - I said having to write the code a certain way when contributing due to Dart support, which is near non-existent outside Google, sucks. In addition, it has complicated a lot of stuff for a long time due to build setups, bugs related to toolchains around Dart and Angular 2's repository, lengthier CI runtimes, and more. It was a huge net negative for those looking to contribute, even for simple changes.
- munificent 10y ago> I said having to write the code a certain way when contributing due to Dart support It sucks in both directions. If you're trying to fix things for Dart users, it's also a real hassle to have to figure out how to back-translate that into some kind of TypeScript that will then be compiled back into the Dart code you have in mind. Having a single source of truth that you translate to JS/TS and Dart makes a lot of sense when the value you get from sharing outweighs the cost of dealing with the pipeline. My impression is that that cost/benefit hasn't worked out well for Angular. I think being split will enable both sides to move faster, even if it means manually migrating some fixes between the two languages.
- andrewclunn 10y agoJust what the javaScript framework world needs, more competing standards!
- oceankid 10y agoI find Dart consistent, fun and the documentation very beginner friendly, especially compared to Go. I really want to use it and wish the community/IRC was slightly more active.
- wstrange 10y agoA lot of community members hang out on slack: https://dartlang.slack.com https://dartlang.slack.com
- zoechi 10y agohttps://www.dartlang.org/community https://www.dartlang.org/community most discussions are on Slack. It's a bit unfortunate because one needs to register but it seems to be the platform most Dartisans are comfortable with.
- themihai 10y agoHow is Dart more beginner friendly than Go? You can't do much with Dart without an IDE for example. The language itself is also more complex than Go
- oceankid 10y agoI wrote "Documentation" is beginner friendly. Spend some time reading their docs. Dart has language, Web and Server tutorials specifically for beginners. The style of writing in which they build up to explain simple concepts to things like method chaining just click. Its very natural. Go is minimal and great for people already experienced. I felt Dart docs were centered around human problems and Go around CS problems.
- monyr75 10y agoThe community is quite active, I think. Most chatting is happening on Slack. Lots of articles/tutorials pop up on Dart Academy (https://dart.academy https://dart.academy). For Slack details and other means of hanging with the community, check out the Community Page (https://www.dartlang.org/community https://www.dartlang.org/community).
- zoechi 10y agoDart is awesome. Just because currently the community is still small doesn't mean much. Google is working on so much great stuff that Dart becomes more compelling every month. They are lying low since awhile with public announcements, but if you follow the commits there is so much work being done. In a few months it will become hard to ignore Dart. The combined development (TS+Dart) was slowing Angular development down and contribution was painful because one needed knowledge of both languages. There are notable downsides for the split development but I fully understand the decision. Implementing everything in a way that it can be translated into the other language was a real pain and limited both versions to a common denominator which prevented both versions to benefit from the advantages of their respective language.
- themihai 10y agoA Dart-like language designed with WASM as target will make sense now but I think Dart(as it is now)is already doomed to die. The performance promissed is just not there.
- wstrange 10y agoI have not followed WASM that closely, but I believe they are talking about adding DOM integration and other features to support languages like Dart. It will probably not happen quickly - but in the meantime, dart2js does an admirable job.
- korm 10y agoJavascript compiled from Dart is as fast as normal Js, in some cases faster. And in the server it outperforms Node according to the Techempower benchmarks. https://www.techempower.com/benchmarks/ https://www.techempower.com/benchmarks/
- themihai 10y agoIn some cases is slower. Last time I've checked large apps were freezing on safari. The point is that it's not signifiantly faster than js so I think it's safe to say that it failed its main objective.
- lacker 10y agoSo there is now Angular 1, Angular 2, AngularDart. Next I predict they will launch Angular 3 which is incompatible with all the others.
- themihai 10y agoTo me Angular2 is not really worth it. The magic was on Angular-1. It did good but now Polymer and React have the mojo each for different reasons. Unfortunately the web development is still a big mess even on new projects with supoort for latest browsers only.
- pluma 10y agoAngular1's USP was basically the magic that turned out to be a bad idea and was removed or at least significantly reduced in Angular2: scopes and dependency injection. I can still see the appeal of Angular2 to non-JS developers (e.g. C# or Java developers switching to JS) but it's a very different framework. It's certainly no longer living up to its original claim "designers can write code without being programmers" (though that was only ever really advisable for prototypes to begin with). One of the most frequent criticisms I have heard from JS developers about Angular is that being a good JS developer and being a good Angular developer are separate pairs of shoes (compared to e.g. React+Redux where most of the learning curve is JS rather than React or Redux). I don't see Angular 2 having done anything to change that.
- cname 10y agoHaving written a handful of apps using Angular 1, I would say it's true that you have to learn Angular's way of doing things, but most of the code for the apps I've written is plain JS. Angular 2 no longer has its own module system, so that's one less Angular-specific thing you have to learn about.
- tkubacki 10y agoI tried both TS and Dart and Dart has just way better developer exp. especially when using IntelliJ and doing lot of small apps which have to be mantained.
- carterehsmith 10y agoWould be great if you could provide some details. I only have experience with Typescript, almost none with Dart, and I would love to see a comparison of the two in practical use, especially with Intellij.
- tkubacki 10y ago[edit typos] This should be whole blog post, but I will try to show most important points from top of my head. I do compare my exp using TS with VScode and Dart IntelliJ. Dart analyzer is usually able to show more common mistakes even if you are not heavy type user. Shorter time to find simple typo. It's easier to start debugging and it's more reliable. This could be IntelliJ itself. code in Dart is shorter for small apps since it has build in SDK - no need to external libs. It's easier to back to this code after few weeks - easier to mantain. Also time to start from scratch is shorter Pub (external libs) is way superior to what we have in TS world One library importing mechanism which doesn't confuse me I'm not afraid if lib x confilts with lib y await async works on non ES6 browsers - no wired settings in main config file! There is one thing better in TS which I like very much - how interfaces can be aplied to decoded Map
- rvijapurapu 10y ago"First they ignore you, then they laugh at you, then they fight you, then you win." - Mahatma Gandhi Frankly, all these arguments are by people who never tried Dart in the first place. Dart is perfect for large scale applications - especially enterprise ones.
- carterehsmith 10y ago"... But they also laughed at Bozo the Clown." - Carl Sagan
- insulanian 10y ago> Dart was designed "batteries included" – it’s not just a programming language, but also a set of stable libraries, solid tools, a great framework — and soon, a repository of battle-tested UI widgets. Clicked on solid tools link. Got 404: Page not found. Not a solid start.