Skip to main content

Posts

New site for Dart news and articles

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

Dart Developer Summit videos now available

Dart developers met in San Francisco for two days in April 2015 to share stories, meet engineers, and learn about how to deploy Dart for the web, server, and mobile. If you missed the event, don't worry. You can now watch all the Dart Developer Summit presentations on YouTube . Check out the playlist to see a wide range of content: case studies, insight into new features and libraries (such as async/await ), a game engine built with Dart , deploying Dart to Internet of Things , deploying Dart on the server , using Dart in Google , and much more. We also saw two new interesting experiments to bring Dart to mobile: the Dart for Mobile Services project and the Sky project . A big thank you to everyone that joined us in person and on the live stream. We hope you enjoy the videos , and we'll see you in the Dartiverse!

Announcing DartPad: A friction-free way to explore Dart code

We believe developers deserve a fast iteration cycle, immediate feedback, and zero-install tools as they explore languages and APIs. To help both new and experienced Dart developers, today we are announcing DartPad 1.0, a friction-free way to try Dart code and APIs in your browser. Developers new to Dart can use DartPad to experience the language and libraries. Experienced Dart developers will find DartPad the easiest way to experiment with the core APIs and learn new patterns and idioms. Everyone can use DartPad to share snippets of Dart code. DartPad supports the full Dart language, the core libraries, and even HTML/CSS. Easily discover APIs with DartPad's support for code completion. Quickly find issues in your code with real-time errors and warnings. Learn more about APIs with real-time docs. Easily share your Dart code with DartPad's integration with Github's Gists. We hope developers will find DartPad a useful tool. We're just getting started, and we ap...

The present and future of editors and IDEs for Dart

When we started the Dart project in 2011, we challenged ourselves to deliver a structured and lightweight language that can be supported with productive editors and tools. To bootstrap the tooling ecosystem for Dart, we built Dart Editor to explore how to make Dart developers productive with code completion, source navigation, and static analysis. Today, there are more editing and IDE options for a Dart developer than ever before. Developers are using a range of command-line tools, text editors, and full IDEs that support Dart. In what comes as no surprise, we've found that developers have very strong affinities to their particular editors, and that one size does not fit all. We've also learned that many developers are outgrowing Dart Editor, as they require source control support, plugins, extended customizability, and more. To that end, we've shifted our strategy from focusing on a single Java-based editor, to focusing on low-level tools, the Dart Analysis Server, and plu...

Live analysis results with WebStorm 10 and Dart

Today, JetBrains announced the new WebStorm 10 release , which includes significant enhancements for the Dart developer. The new version adds live analysis feedback , and fixes many reported issues. We highly recommend that all WebStorm users upgrade, and that new Dart developers who want a full-featured IDE try the new WebStorm 10 release. WebStorm now provides on-the-fly code analysis results for Dart code, powered by the Dart Analysis server. You can quickly look through the list of warnings and errors in your project in a tool window or see them highlighted right in the editor. WebStorm can now auto-import new libraries into your Dart code. Simply press Control-Space twice, and you will see a list of all libraries that are available. Select the library you want to use, and WebStorm automatically adds the necessary import statement to the top of the file. You can use Dart's new async/await and generator features in WebStorm 10. Asynchronous code is now easier to writ...

Dart 1.9: The release you’ve been await-ing for

Asynchronous programming is everywhere – user interaction, network access, file I/O. Dart simplifies and enhances these scenarios with the 1.9 release . Today’s release introduces async methods and await expressions built on top of our existing Future API. You can now use familiar control flow features – for/while loops, if blocks, and try/catch – to manage complex asynchronous interactions. These new features are explained thoroughly the Dart Language Asynchrony Support: Phase 1 article . Before Dart’s Future API makes it easier to compose asynchronous operations, but handling conditional cases and errors can still be difficult. After async and await make implementing the same functionality straightforward. We are also introducing generator methods – sync* and async* – that make it easy to lazily generate sequences, eliminating almost all cases where developers need to create custom iterators or manually manage stream creation. For more information, read t...

Dart for the Entire Web

We work with many teams, inside and outside of Google, that use Dart every day to build business-critical apps. Their feedback is consistent: they love working with the Dart language, libraries, and tools, and they compile Dart to JavaScript when they deploy to the web.  However, they also tell us they need better integration with JavaScript, and they need an easier way to debug and optimize their apps across all modern browsers. We listened, and today we are announcing a more focused strategy for Dart for the web. In order to do what's best for our users and the web, and not just Google Chrome, we will focus our web efforts on compiling Dart to JavaScript. We have decided not to integrate the Dart VM into Chrome. Our new web strategy puts us on a path to deliver the features our users need to be more productive building web apps with Dart. It also simplifies the testing and deployment scenarios for our developers, because they can focus on a single way to build, test, and deploy...

Create your own REST API with Dart

We created Dart to help make developers as productive as possible. While we were building Dart Pad (a browser-based app to help developers learn Dart), we didn't want to spend a lot of time writing boilerplate code for serialization or routing in the REST API. We built the RPC package to help make building REST APIs easier, and today we're happy to announce that it is open source and ready for you to use. You can use the RPC package to automate the data serialization and request routing for your REST API. Exposing a REST API is simple. Annotate your classes and methods with the HTTP methods, URL paths, etc. Here is an example of a simple echo service. After you configure your HTTP server (see README ), your API can now be reached at: GET http://<server url>:<port>/api/echo/v1/identity/<name> POST http://<server url>:<port>/api/echo/v1/inverse Calling your new server API from client code (written in Dart, Java, Go, iOS, Android, C#) i...