After saw what’s happend during the Google I/O, I decide to make some experiments with Dart.
If you don’t know what is Dart I explain in a while: Dart is a new language that allow to structure your code in OOP manner with strong typing but with a lot of flexibility.
Starting to work with Dart is very very simple, you have only to download Dart from the website and you will find inside the zip the DartEditor, an editor based on Eclipse that will become your new IDE to write Dart application.
I will not explain how to install Dart and getting started with it because in the official website the “get started” section is well documented, so I prefer to start with an example of a video player, if it’s your first approach to Dart I suggest to take a look, before go ahead with this post, to that section on the official website.
For the UI part of my example I’ve used Topcoat and Dart for the business logic of my video player.
Topcoat is a new Adobe UI library dedicated to style in a good and fast way the main components in a web or mobile application, if you have worked with Flex is more or less the same concept of a theme, so when you don’t want to waste your time creating a custom UI you can easily use Topcoat for your prototypes or example.
After that I created my class in the DartEditor, all Dart classes have the extension .dart.
Finally this is the link to download the entire project.
Great article my friend. the best known is Jquery, so, why a person should use Dart and not Jquery?
When you have to create big web applications the power of OOP and a structured code allow you to maintain your code better so you save a lot of time in the maintenance and you work better with other devs in the same time.