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.
Related Whitepaper:

Software Architecture

This guide will introduce you to the world of Software Architecture!

This 162 page guide will cover topics within the field of software architecture including: software architecture as a solution balancing the concerns of different stakeholders, quality assurance, methods to describe and evaluate architectures, the influence of architecture on reuse, and the life cycle of a system and its architecture. This guide concludes with a comparison between the professions of software architect and software engineer.

Get it Now!  

Leave a Reply


× eight = 56



Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy
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.

Sign up for our Newsletter

20,709 insiders are already enjoying weekly updates and complimentary whitepapers! Join them now to gain exclusive access to the latest news in the Java world, as well as insights about Android, Scala, Groovy and other related technologies.

As an extra bonus, by joining you will get our brand new e-books, published by Java Code Geeks and their JCG partners for your reading pleasure! Enter your info and stay on top of things,

  • Fresh trends
  • Cases and examples
  • Research and insights
  • Two complimentary e-books