This book will help you learn the Dart language, understand the Dart ecosystem, and write Dart code targeted to run in modern web browsers and on the server. You’ll use the latest HTML5 technologies to build apps capable of running disconnected in the browser and create Dart servers capable of two-way communication with browsers.
As a structured language, Dart is ideal for building large-scale apps in distributed teams. And with tools to enable automatic checking and validation of your and your fellow developers’ code, Dart helps make your life as a developer easier.
This book is aimed at developers who have been frustrated by the lack of structure and tooling available to them when building browser-based apps. If you have a working knowledge of Java, C#, or JavaScript, then you’ll be able to dive right in and get working with Dart.
Whether you prefer to build interactive user interfaces or are happier creating efficient back-end code, you’ll find that Dart, combined with modern browser technology, brings the structure of the server to the front end, and the flexibility, dynamism, and speed of browser development to the back end.
Whether you’re a novice web developer or are experienced with writing structured code, this book will help you get up to speed with Dart language concepts. The book uses an example-based format, with examples throughout each chapter to introduce new concepts. The text indicates Dart’s similarities to other languages such as Java and JavaScript, as well as shows its differences.
Like Java, Dart has great tools; and like JavaScript, Dart doesn’t require a compile step, which means that with this book you can quickly get ready to start building client and server Dart applications.
This book is structured to get you working with Dart as quickly as possible. It’s split into four parts. Part 1 includes overview chapters designed to get you up and running with Dart:
Part 2 covers the core language features:
Part 3 discusses building client-side browser apps:
When you reach part 4, you’ll be ready to hook up your app with the server side:
The appendixes provide a concise reference to and examples of the core Dart language, giving you a quick guide to Dart’s specific syntax idiosyncrasies and quirks.
All the source code in the text uses a fixed width font like this. The text contains many code snippets and diagrams, and there are complete, annotated code listings to show key concepts. These code listings, snippets, and diagrams usually relate to the surrounding body text and are a key part of learning Dart.
In some cases, code has been reformatted to fit the page, but in general, the code has been written to take page width into account. Although the examples are often simple in order to to show a key concept or example, the body text and code annotations provide additional depth.
Source code for the examples in this book is avaiable for download from the publisher’s website at www.manning.com/DartinAction.
Working with Dart requires at the very least the Dart SDK, which is available from www.dartlang.org. The Dart SDK is included in the Dart Editor download, which also includes the custom Dart browser, Dartium (essential for rapid Dart development), and the Dart to JavaScript converter. This download is available for Windows, Mac, and Linux.
Your purchase of Dart in Action includes free access to a private web forum run by Manning Publications, where you can make comments about the book, ask technical questions, and receive help from the author and from other users. To access the forum and subscribe to it, point your web browser at www.manning.com/DartinAction. This page explains how to get on the forum once you are registered, what kind of help is available, and the rules of conduct on the forum.
Manning’s commitment to its readers is to provide a venue where a meaningful dialogue among individual readers, and between readers and the author, can take place. It’s not a commitment to any specific amount of participation on the part of the author, whose contribution to the forum remains voluntary (and unpaid). We suggest you try asking the author some challenging questions, lest his interest stray!
The Author Online forum and archives of previous discussions will be accessible from the publisher’s website as long as the book is in print.
Chris Buckett is a technical consultant responsible for delivering enterprise-scale, web-based business applications. Chris runs the popular Dartwatch.com blog and is an active contributor to the dartlang mailing list.
At a time when it is hard to tell one computer book from another, Manning celebrates the inventiveness and initiative of the computer business with book covers based on the rich diversity of regional life of two centuries ago, brought back to life by Carrara’s pictures.