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 .

Esto es Dart

This is a blog post for Spanish-speaking developers who may be interested in learning Dart. Please pass it along to any Spanish-speaking developers you know! En su libro El programador pragmático , David Thomas y Andrew Hunt recomiendan "aprender al menos un lenguage nueva cada año." Bueno, es un nuevo año, y creo que ahora es un buen momento para aprender un nuevo lenguage. De hecho, si usted todavía no ha aprendido Dart, no hay mejor momento! El año pasado, empecé a estudiar español para poder compartir con todos los hispanohablantes del mundo mi introducción a Dart traducido al español. Después de pasar dos días delante de un micrófono tratando de no sonar como si tuviera canicas en mi boca, les presento a Esto es Dart ! Espero que les guste. In English: In their book The Pragmatic Programmer , David Thomas and Andrew Hunt recommend that you "learn at least one new language every year." Well, it's a new year, and now's a great time to learn a ...

More Dart HTML5 Goodness

dart-html5-samples is a collection of HTML5 samples written in Dart. Most of them were ported from HTML5 Rocks . I first blogged about dart-html5-samples about three months ago. Since then, a ton of cool, new HTML5 samples have been ported to Dart, and we've updated all the samples for M2 ! Here is the current list of samples: A Beginner's Guide to Using the Application Cache New! High DPI Canvas New! Image Filters with Canvas New! Native HTML5 Drag and Drop Reading Files in JavaScript Using the File APIs Exploring the FileSystem APIs Exploring the FileSystem APIs: Web-based Terminal New! A Simple Trip Meter Using the Geolocation API New! A Simple ToDo List Using HTML5 IndexedDB Local Storage Basics New! Using the Notifications API Pointer Lock And First Person Shooter Controls New! Leaner, Meaner, Faster Animations with requestAnimationFrame HTML5 Video Getting Started with the Web Audio API WebGL New! WebSockets There are a couple samples th...

Dec 17 Language Design Meeting Notes: Configuration-Specific Code, Optional Named Params

Dart engineer  Bob Nystrom  has  posted the notes  from the December 17th language design meeting. He writes: Here's my notes from this week's meeting. It was a short one since we were mostly focused on M2: Configuration-specific code There's been some discussion among the language designers about this, but I haven't seen the details. Gilad says that libraries are parametric definitions. An import can define paramaters. The restriction is that these parameters have to be constants. Optional named params Lars says people are starting to nag him about a problem: sometimes with optional named parameters, you want to forward exactly what was passed. The language doesn't currently give you a way to do that without a combinatorial explosion. He asked Gilad if he can cook up some syntax where you can optionally pass a parameter. Cheers! As always, we invite you to join our  Dart mailing list , ask questions on  Stack Overf...

Breaking Changes in dart:html: Window, LocalWindow & WindowBase, LocalHistory, LocalLocation

There are a number of name changes coming down the road in dart:html. Pete Blois  gives us the details :  FYI- We'll be renaming Window to WindowBase and LocalWindow to Window. Ditto for LocalHistory and LocalLocation. If you're curious, but not familiar it, there is both the global 'window' object, and IFrameElement.contentWindow. The contentWindow only exposes a subset of APIs while dart:html's 'window' exposes the full API. We used LocalWindow and Window to expose these two API sets, but LocalWindow was too undiscoverable. Hence, this change. As always, we invite you to join our  Dart mailing list , ask questions on  Stack Overflow , or file feature requests on  dartbug.com .

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 by Gilad Bracha: Mixins in Dart

Mixins are a much talked about and anticipated feature of Dart and in a new article  Google engineer Gilad Bracha gives us details of plans to incorporate mixins into Dart in M3. Read about basic concepts behind mixins, the syntax and the semantics of mixins in Dart, issues surrounding privacy and statics, the extensibility of current proposals and what changes all of this brings to the language spec  : As always, we invite you to join our  Dart mailing list , ask questions on  Stack Overflow , or file feature requests on  dartbug.com .

New Dart Editor Update for M2

Dart Editor keeps getting improved. A new M2 build is out and  Eric Clayberg  fills us in on the details : A new Dart Editor build is available at  www.dartlang.org/editor . Changes include: General context menu cleanup UI tweaks to the Class Hierarchy view Improved logging for failed update checks More analysis errors and warnings Various analysis, editor and refactoring fixes Breaking Change List: dart:html changes New HTML form field objects and constructors. e.g. RadioButtonInputElement. See more at  http://code.google.com/p/dart/ issues/detail?id=1684 And as always, view the  changelog  for the full list of changes, and to get started with the Editor see our  tutorial .   We invite you to join our  Dart mailing list , ask questions on  Stack Overflow , or file feature requests on  dartbug.com .