Loading...

Dart: A New Structured Programming Language | How To Run Dart Program

Recently Google released (early Preview) the new structured programming language for web programming, it’s name is Dart (Dash). It was unv...

Recently Google released (early Preview) the new structured programming language for web programming, it’s name is Dart (Dash). It was unveiled at the GOTO conference in Aarhus, 2011 October 10-12. Dart is the best alternative for JavaScript. This new language is developed by Gilad Bracha and Lars Bak, both are Software engineer at Google Inc.
Dart-logo
Dart is a class-based, single-inheritance, pure object-oriented programming language. Dart targets a wide range of development scenarios: from a one-person project without much structure to a large-scale project needing formal types in the code to state programmer intent. To support this wide range of projects, Dart has optional types; this means you can start coding without types and add them later as needed. We believe Dart will be great for writing large web applications.
Dart’s design goals are:
  • 1. Create a structured yet flexible language for web programming.
  • 2. Make Dart feel familiar and natural to programmers and thus easy to learn.
  • 3. Ensure that Dart delivers high performance on all modern web browsers and environments ranging from small handheld devices to server-side execution.
                                                                                                                                                                                                            Example Of Dart Code:
Hello Word Program:-
main()
{
print(‘Hello, Dart!’);
}
You can see the above program is very similar to C language Program.
Fibonacci Program:-
int fib(int n)
{
if (n <= 1) return n;
return fib(n – 1) + fib(n – 2);
}
main()
{
print(‘fib(20) = ${fib(20)}’);
}
This is also very simple Fibonacci program using the feature of recursion, the only difference in the ordinary program and Dart Program is syntax.
How to Run Dart Program:-
This is the main question arises when a new language arrives, Ok we solve your question like javascript language this language also run on browser but using the Dartboard app. You can view the Dartboard app here http://try-dart-lang.appspot.com/s/LaA .
Tell Us what you think about this new language. Smile

Post a Comment

emo-but-icon

Home item

Zebronics

Recommend on Google

Advertisements

Advertisements

Popular Posts

Random Posts

Recent Posts

ADS

eXTReMe Tracker