About Christian Grobmeier

Christian is a passionated software developer, architect and trainer. He is a member and VP of the Apache Software Foundation, working on projects like Struts, log4j and others. He founded Time & Bill and constantly tries out new ideas.

It’s time: Bring Dart to Android

As one of the first users of Google’s Dart language, I always felt like it could do more than “just some webtricks”. It’s performance is great and the language itself is elegant and modern. I like it. Even more than Java’ which I used for a long, long time. Even more than PHP’ which I used since I started with web programming. Even more than JavaScript, with which I am happy to work with.

Dart is great, but the browser vendors didn’t ask for it. Nor did the hardcore JavaScript users. It is and will continue to be hard for Google to convince other people to switch from JavaScript.

 
 
Sure, you can do a lot of great stuff with Dart; like server side programming. But JavaScript has that all too. So why bother?

I always thought there was only one chance for Google to convince programmers of Dart: bring it to Android, and replace the old fashioned Java.

Don’t get me wrong: I still think Java is a great language. But it’s not a great language for all requirements.

When I started with working on my own products, I used Java. It’s something which I regret today, because as a single-man show, it was simply too time consuming. For newer products I use dynamic languages. I am quicker, and that’s what I need right now.

In Android-land, people started to bypass Java and work with Apache Cordova (repackaged as Phonegap).

And just recently, Apple announced Swift. A language which looks pretty similar to Dart actually, as you can see here:

class Shape {
    var numberOfSides = 0
    func simpleDescription() -> String {
        return "A shape with \(numberOfSides) sides."
    }
}

You see the “var” declaration?

You can also code more in the functional way:

func lessThanTen(number: Int) -> Bool {
    return number < 10
}

Also interesting: Generics:

enum OptionalValue<T> {
    case None
    case Some(T)
}

As with Dart, Swift seems to take modern concepts and paradigmas and still looks like a dynamic and lightweight language.

Swift will run on iOS and it’s said to be perfect for game programming. Something which can also be done with Dart.

Now with Apple having a great, nice-looking and easy-to-use language like Swift ready for programmers, I think it’s now the perfect time to bring Dart to Android. I am honest: being a long time Java developer, I will not miss Java that much.

Time to move on, Google! Give us Android-Dart!

Reference: It’s time: Bring Dart to Android from our JCG partner Christian Grobmeier at the PHP und Java Entwickler blog.

Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

JPA Mini Book

Learn how to leverage the power of JPA in order to create robust and flexible Java applications. With this Mini Book, you will get introduced to JPA and smoothly transition to more advanced concepts.

JVM Troubleshooting Guide

The Java virtual machine is really the foundation of any Java EE platform. Learn how to master it with this advanced guide!

Given email address is already subscribed, thank you!
Oops. Something went wrong. Please try again later.
Please provide a valid email address.
Thank you, your sign-up request was successful! Please check your e-mail inbox.
Please complete the CAPTCHA.
Please fill in the required fields.

Leave a Reply


− two = 4



Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy | Contact
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

Get ready to Rock!
You can download the complementary eBooks using the links below:
Close