Issues » 9

This week's Dart programming language news.

View this newsletter on the Web or see the issue archive.

Dart Weekly

Issue #9 - January 18, 2013

Welcome to issue 9 of Dart Weekly, a newsletter dedicated to the Google Dart programming language, again curated by Chris Buckett, the editor of Dartwatch.com (a popular Dart news site) and author of Dart in Action.

Headlines

If you've deployed a Dart app anywhere, it will likely have a link to dart.js (the dart app bootstrap file) on the googlecode.com website. This is now being removed in favour of a pub deployment of dart.js. The google hosted version will be removed in a couple of weeks, which will cause your deployed app to break. Read Seth Ladd's blog post to discover the background behind the change, and what you need to do.

In addition to dart.js moving, there are two additional breaking changes announced this week. First, the explicit Hashable class is being removed, as now all objects are implicitly hashable. Second, the dart:io library's Path class is having its fromNative() constructor removed. Its default constructor is now performing the same function.
Seth Ladd, Dart Developer Advocate at Google, is speaking about Dart at the O'Reilly's Fluent conference this May, in San Francisco. The Fluent conference is all about modern web development - it's good to see Dart represented there. Registration opens late January - tell your friends!

Articles

Google Developer Expert Kevin Moore, blogged about implementing animations in his Dart BOT (Bag of Tricks). His new Dart Widgets library provides you with a way to add simple animations to your UI elements, including Fade, Scale and spin. Try out the demo here.
Blogger Chris Strom discovers how to test browser based Dart apps on the command line by using the DumpRenderTree utility. DumpRenderTree is a "headless" instance of Chromium
A code review for a package called java2dart was spotted by some Dartisans, which started some speculation as to its purpose. Google engineer Brian Wilkerson explains that the Java to Dart translator is being developed by the Dart Editor team, which might be used to port the Java based Dart Analyzer (used by the editor) into Dart.
Dart's core set of libraries, which contain collections, maps, iterators, async operations amongst others has undergone a major series of refactorings. Grab the candidate build of the SDK and Editor to start experimenting with the changes, and take a look at the API docs.
One of the other big changes with the new Dart libraries is the way to listen to browser DOM events, built around best practices, but using event streams. Google engineer Peter Bois provides details in this blog post.
Mirrors, Dart's reflection API, has until now only been available within the Dart VM, and not the JavaScript version of your Dart app. A couple of months ago, Google engineer Peter von der Ahé explained that the dart2js team has started implementing this in dart2js, with a requirement that any code using dart2js mirrors is implemented by printing "disclaimer". This has changed this week - your code now needs to "reflect" the disclaimer to enable this feature.
A common use case is to use Dart for the client side of an app, and Java as the server side. In this Dartwatch blog post, learn how to install the Dart Editor Plugin into Eclipse, and convert a Dart project to also build Java, and be hosted by Tomcat.
Google Engineer John McCutchan, who runs DartGameDevs.org has blogged about the GameLoop package. This powerful package is responsible for inputs, full screen, pointer lock, and executing game code once per frame.
Google Developer Expert Adam Singer blogs about creating a "full stack" Dart application, using Dart WebUI to build the client, connecting to a server running Dart, and using a mongodb ORM to persist data.

Miscellaneous

Join Adam Singer on Google Developers Live as he shows how to use Dart with the Google Drive SDK.
The PureMVC library for Dart gets an update to make it compatible with the last set of breaking changes. Now you can confidently use this MVC library in your client-side apps.
Google Developer Expert Gerwin Sturm has created a Dart API Client Generator, which uses Google's Discovery API to build a Dart RESTful interface to Google's APIs
Dart Weekly is published by Cooper Press. Our other newsletters include JavaScript Weekly and Ruby Weekly. Reading this as a non-subscriber? Click here to subscribe to Dart Weekly.

You opted in to Dart Weekly at dartweekly.com to get weekly e-mails about Google Dart and related browser technologies.

Unsubscribe | Change your e-mail address.

Street address: Office 30, Lincoln Way, Fairfield Enterprise Centre, Louth, Lincs, UK, LN11 9EJ
ONE e-mail each Friday. Easy to unsubscribe. No spam — your e-mail address is safe
Published by Cooper Press and curated by Chris Buckett