Category Archive: First Steps

Jan
31
2012

Translations from Javascript to Dart

One of the steps which should give Google to get massively introduce dart on our websites is to embed the existing code to facilitate the migration of existing projects.

Here are a first step publishing a list of correspondences between Javascript and Dart:  http://synonym.dartlang.org/.

As starting point is fine, obviously the list will be changing and expanding, but work will not end until there is an automatic (or semi-automatic) translation tool to make this migration of projects easy.

But one might think that this is a contradiction in terms, because if there is this facility was to be hoped that anyone who finds more comfortable programming in Javascript to do so as well and subsequently translate the code. I think that it would not if Dart offers more than what gives Javascript.

Still have to wait because Dart is a newborn.

Permanent link to this article: http://www.dartexperience.com/en/2012/01/31/traduccion-de-javascript-a-dart/

Dec
26
2011

Dart API Reference

Since this list on Dart in API that are specified in the form of interface routines, data structures, classes, variables …

With respect to what we had, this new API brings new library inclusion of dart: Html docs; http://api.dartlang.org/html.html

The API has been built with Dartdocs Tools, which we use to do what Java would call, “Javadocs”.

Link: http://api.dartlang.org/

Permanent link to this article: http://www.dartexperience.com/en/2011/12/26/dart-api-reference/

Dec
19
2011

New Dart Editor build (2380) Run code in the VM!


  • Initial VM launch support… toolbar button and .options file
  • Generate JS only for browser applications
  • Font scaling for code editor, libraries view, problems view
  • Search box improvements and cleanup
  • Fixed memory leak when closing libraries
  • DartC, parser, and code completion improvements
  • Improved syntax coloring
  • Lots of bug fixes as a result of internal testing

Permanent link to this article: http://www.dartexperience.com/en/2011/12/19/nueva-version-dart-editor-2380-%c2%a1ejecuta-tu-codigo-en-la-maquina-virtual/

Nov
26
2011

Useful libraries Dart Part 1 – SlideMenu

Some research in the libraries that come with our Dart Editor can be found very useful libraries try to go slowly showing in this series of tutorials called “Libraries Dart useful” to the first article of reference use the example “Slide sample ”which is also included when you get off Dart Editor. This example uses a library called “SlideMenu” to create a simple navigation menu, I find very interesting, because it encapsulates the HTML code inside the library and can edit at will, even overwrite it so you can give a lot of play.

Let’s start talking about the class SliderMenu.dart itself:

The first thing that strikes me is that it extends a class called “View”, so I think it is a view controller methods “windowResized ()” or “addToDocument (Element parentNode).”

We have several methods to “SlideMenu.dart” the most important is: Read the rest of this entry »

Permanent link to this article: http://www.dartexperience.com/en/2011/11/26/useful-libraries-dart-part-1-slidemenu/

Nov
10
2011

Getting started with Dart – Dart used in HTML

Dart is a new structured programming language for the browser. Like JavaScript, Dartapplications can be directly integrated into HTML pages.

Then show the correct syntax to be entered into our HTML in addition to some examples:

Dart MIME type

To <script> HTML tags (used to define the language to be used on the label), in our case we use’application / dart’.

As in javascript are two ways to insert our code:

Read the rest of this entry »

Permanent link to this article: http://www.dartexperience.com/en/2011/11/10/primeros-pasos-con-dart-%e2%80%93-incluyendo-dart-en-html/

Pag. 1 of 212