Skip to main content

Posts

Showing posts with the label article

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

New Article on Futures and Error Handling in Dart

Read the latest article at  dartlang.org  and learn about  handing errors and exceptions when working with Futures . Have you wondered how to implement the asynchronous equivalent of a try-catch? Or how errors actually get propagated when working with Futures? Or how you can prevent synchronous errors from leaking out of asynchronous code?  Then this article is for you.   The article focuses entirely on error handling when working with Futures, explains how to handle errors that are emitted asynchronously, and points out a few gotchas that you should watch out for.   Your feedback really counts. Please join the conversation at the  Dart mailing list , and ask questions at  Stack Overflow . Photo credit:  http://www.flickr.com/photos/nickwebb/3016498475/

A Game of Darts, Target 7: Defining a Custom DOM Tag Using Dart's Web UI Package and Web Components

The  Game of Dart tutorials  provide a gentle introduction to building web applications using the Dart language, tools, and APIs.   In the latest tutorial , l earn how to make custom DOM elements using the <element> tag, use data binding to connect Dart variables to content, and attach event handlers in HTML using the Web UI package.  As always, we invite you to join our  Dart mailing list , ask questions on  Stack Overflow , or file feature requests on  dartbug.com .

New Article: Writing Unit Tests for Pub Packages

Don't know how to get started with testing your Dart code? This  new article  by Shailen Tuli provides a gentle introduction to creating a Dart package and writing unit tests for it.  Read this article to get started and then find out more about  Pub packages  and  Unit Testing with Dart . As always, we invite you to join our  Dart mailing list , ask questions on  Stack Overflow , or file feature requests on  dartbug.com .

New Article: Guidelines for Dart Doc Comments

In a new article  Kathy Walrath describes the conventions for writing comments in Dart code. Please read to know about the document comment style used by the Dart team and to suggest changes and improvements. As always, we invite you to join our  Dart mailing list , ask questions on  Stack Overflow , or file feature requests on  dartbug.com .