Posts

Showing posts from November, 2011

Things I love about Dart (so far)

I've only been using Dart  for a few hours in total, but already there are things to love about it. Forget the obvious "It's not JavaScript", because I don't hate JS, and if I did hate JS it would be because of the lack of decent structure (who decided prototypes were nice to use?). Certainly, I don't hate dynamically typed languages, and in fact, I quite like them, and have built my career on them. This article is about small things, I'll leave that huge stuff for the clever people. 1. I already know Dart without having learned a single thing: Ever used Java or C#? Dart is essentially  the same as those familiar languages that we learned at school. A class is defined like: class Banana {   String getColor() {       return "yellow";   } } See, this could be any language you already know, and to illustrate that nicely the syntax highlighter treats it as Java, and no one really cares. 2. Class members are public by default: If you define a