Hacker News new | past | comments | ask | show | jobs | submit login

I think you captured the essence very nicely there: Java is the not-really-that-bad language.

It's not very powerful and it lacks many useful features.

On the other hand, you can do almost anything with it eventually and it's simple enough that stupid syntax mistakes are relatively rare in Java code.

It's a solid tool for a journeyman, and a crude instrument for a master. But most people are never going to be masters, and most of those who will be one day aren't masters yet.




It's hard to love, I agree, but if you were designing something like Android from scratch now what language would you choose? I'm having a hard time thinking of reasonable alternatives. In the long run I'd like to see something like Go or Kotlin become options but really they're too left field right now.


Javascript would be an obvious choice for anything centered around creating UIs. Palm-now-HP's nice WebOS platform is essentially a recent direct competitor to Android and did that.


I really don't think a dynamically typed language is desirable as the primary development language for a mobile platform. Static typing is just too useful and makes it a lot easier to optimize too. Java is still quite a bit faster than JS.

Something like Kotlin seems like a good choice to me, if it takes off.


By powerful do you mean that Java is not very expressive? Java can do pretty much anything that any other language can do.


Java can do pretty much anything that any other language can do.

Sure. That's part of my point. But just because languages are computationally equivalent (cf. Turing), that doesn't mean one is as powerful/expressive as another. I can get things done a lot faster in Python than in Whitespace.

The boilerplate in Java is a huge drag on everyday coding, and Java has weak support for (among many other things) working with functions, text manipulation, and in some cases even basic arithemetic. You can make things work eventually, but sometimes the effort required and volume of resulting junk code is prohibitive for otherwise useful programming techniques. That's an asset if and only if the people on your team aren't up to using those techniques anyway (and can't easily become so).


When people talk about how powerful a programming language is, they're talking about how expressive it is, not that it's Turing complete.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: