Oct 14, 2011

Google's new web programming language, Dart

Google recently came up with new programming language for web application named as Dart.
Let's look at its technical specification :-

Dart is a new class-based programming language for creating structured web applications. Developed with the goals of simplicity, efficiency, and scalability, the Dart language combines powerful new language features with familiar language constructs into a clear, readable syntax.

In 2009, Google launched Go, a language designed for writing server software and handling other chores often handled today by C or C++. Dart, though, is "a new programming language for structured Web programming," according to the schedule for the Goto conference where Googlers plan to describe it next month.

Some Key feature mentioned by google about Dart.

Key features of the Dart language include:

Classes and interfaces provide a well understood mechanism for efficiently defining APIs. These constructs enable encapsulation and reuse of methods and data.
Optional types
Dart programmers can optionally add static types to their code. Depending on programmer preference and stage of application development, the code can migrate from a simple, untyped experimental prototype to a complex, modular application with typing. Because types state programmer intent, less documentation is required to explain what is happening in the code, and type-checking tools can be used for debugging.
Developers can create and use libraries that are guaranteed not to change during runtime. Independently developed pieces of code can therefore rely on shared libraries.
Dart will include a rich set of execution environments, libraries, and development tools built to support the language. These tools will enable productive and dynamic development, including edit-and-continue debugging and beyond—up to a style where you program an application outline, run it, and fill in the blanks as you run.

More information about Dart can be found at :- http://www.dartlang.org/

Sample "Hello World" program :-
  main() {
  var name = 'World';
  print('Hello, ${name}!');
Tutorial for Dart language :- http://www.dartlang.org/docs/getting-started/

How to use Dart with HTML ?
Like JavaScript, Dart programs can be directly embedded on HTML pages served to the browser.
Here is the example for it :-

simple Hello World in HTML using Dart. The main() method is the entry point.

    <script type='application/dart'>
      void main() {
        HTMLElement element = document.getElementById('message');
        element.innerHTML = 'Hello from Dart';
    <div id='message'></div>

The div element above is guaranteed to exist by the time the Dart code starts running.

Let's see now whether in future DART will hit its target or not.


Hi,I think it is appropriate to write an article about the process of Web Design Cochin . A process that is very important, where decisions should be based on real facts rather than the need for a fresh design.Thanks....

Post a Comment