Latest Blog Posts

Writing A Writing Tool - Part Two

Davy Mitchell, on 24 Oct 2014
Wow - Part One got a few visitors! Thanks for popping by - now on with Part Two. Seth Ladd from the Dart team dropped a comment on the code - you'll notice all fields are lower case now :-) This was an easy change thanks to Dart Editor's built in refactoring. I have added more fields to the Chapter class and we can now create a chapter based on just the title. Named constructors coming in handy here. Two methods on Novel allow adding of Chapters and they return a reference for adding more details. class Novel { String... read more

Writing A Writing Tool - Part One

Davy Mitchell, on 23 Oct 2014
This is first in a series of blog posts where I will blog the creation of a simple writing tool as a Dart command line application. The background to this is NaNoWriMo which challenges anyone in the world to write a 50,000 word novel during November. Luckily you are allowed to plan in advance (there is not last minute revealed theme or requirement). I started with pen and paper which has its benefits but is too static for my liking! In the past I have written presentation materials in Python to escape Powerpoint and don't want to live in a... read more

WebStorm 9 released with improved Dart support

Seth Ladd, on 22 Oct 2014
Today, JetBrains announced WebStorm 9, an update to their powerful web development editor. Highlights for the Dart developer include: pub serve support, improved isolates debugging, Observatory support, new syntax support, and more.WebStorm 9 now launches pub serve, Dart's development server, when the developer runs a Dart web app. Pub serve takes care of generating assets, compiling to JavaScript, and more.Developing and debugging apps that run multiple computations in parallel is now easier, thanks to the new ability to set breakpoints inside of isolates.For deep insight into your app running on the Dart VM, you can now open the Observatory directly... read more

Dart 1.7: easily share and use command-line applications built with Dart

Kevin Moore, on 15 Oct 2014
The Dart language, libraries, and runtime make it easy to create command-line applications. In fact, all of the core tools in the Dart SDK – dart2js, pub, and dartanalyzer – are written in Dart. We wanted to allow developers to easily get their own Dart scripts and command-line apps into users' hands. With Dart 1.7, users now have an easy way to install and run scripts built with Dart, making first-class command-line Dart apps a reality.Developers can specify executables (Dart scripts) in their pub package, which are made available to a user when the package is installed.Before:$> git clone$>... read more

How to deploy your Redstone.dart app to Heroku

Luiz Mineo, on 14 Oct 2014
Today I've got some time to play with the new cedar-14 stack and the Dart buildpack, and I'm impressed on how easy it is now to deploy Dart apps on Heroku. Basically, to run on Heroku, your app must be configurable through environment variables. The minimal configuration that every heroku application must handle is the port number, where the server is allowed to bind to. Let's see an example: import "dart:io"; import "package:redstone/server.dart" as app; //Import services here main(List<String> args) { app.setupConsoleLog(); //check environment variables var port = _getConfig("PORT", "8080"); //start the server app.start(port: int.parse(port)); } _getConfig(String name, [defaultValue]) {... read more