small medium large xlarge

Dart for Hipsters

June 27, 2012

Dart is an exciting new language from Google that compiles down to JavaScript, for servers and modern web browsers. Will Dart be your next Language of the Year? Caution: after reading Dart for Hipsters you may develop an intense attachment to structured code and skinny jeans.

This Pragmatic exPress title, in the style of Brian Hogan’s popular tmux book, is now available from

Dart for Hipsters

In Dart for Hipsters, you follow project-based chapters demonstrating real-world problems solved with Dart. Each project serves as the foundation for deeper discussion of defining features of Dart, such as its support for functional programming. As you reinforce your understanding of Dart, you’ll move on to more complex projects which, in turn, spur more complex discussions, such as how to maintain Dart and JavaScript side-by-side. By the end of this book, not only will you have a thorough introduction to the language, but you’ll also have built an entire MVC library from scratch.

Since Dart aims to be familiar, you won’t see the usual “Hello, World.” Instead, you jump right in by writing an Ajax-powered application, followed by a more detailed discussion of Dart’s basic types. Along the way, Dart for Hipsters shows you how to compile Dart into JavaScript, how to use Dart’s simple object-oriented programming approach, and how to build well-factored, easily used and maintained libraries. You’ll see dynamic features of the language in action, such as injecting different data syncing behaviors for an entire framework with one line of code. Best of all, you’ll learn how Dart makes working with HTML5 and similar technologies a breeze.

What You Need:

You will need Dartium, a preview release of Chrome with the Dart VM built-in. For some of the examples, you need either the dart2js tool or the Dart Editor to compile Dart down into JavaScript.

Now available from

Don’t Get Left Out

Are your friends jealous that you get these spiffy email newsletters and they don’t? Clue them in that all they need to do is create an account on (email address and password is all it takes) and select the checkbox to receive newsletters.

Are you following us on Twitter and/or Facebook? Here’s where you can find us and keep up with the latest news and commentary:

Coming Soon:

  • Deploying with JRuby: Deliver Scalable Web Apps using the JVM in print
  • Deploying Rails: Automate, Deploy, Scale, Maintain, and Sleep at Night in print
  • Thoughtworks Anthology Second Edition in print
  • The Definitive ANTLR 4 Reference in beta

Recently Released:

  • Working with Unix Processes [now available]
  • Seven Databases in Seven Weeks [in print]
  • Ruby Programming Course from Pragmatic Studio [online]
  • Practical Vim [in beta]
  • Thanks for your continued support,

    Andy & Dave

    Books • eBooks • Screencasts • PragPub Magazine