37 karma · joined September 21, 2010
BUT, I can't see Joe Public programmer adopting a functional language, even one as nice as F#
As for global state - using singletons is a design decision. If you don't like them, don't use them!
So many people on HN hate on Java just because they've made the switch to functional programming. All power to you, but none of what's good about FP makes Java bad - it's just different.
I'd agree that there are some inherent design issues with Java - I've never liked primitives and I don't like how generics were implemented but other that that, it's a really excellent tool for a number of tasks. Just because it doesn't look like what you like, doesn't make it bad (this reminds me of when Java came out in the first place and all the C++ programmers were saying that it was useless because it didn't have operator overloading. not bad, just different!)
Of more concern will be Apache's attitude to new development in Java. Will they continue to use it and to make cool new stuff in Java, or is this a breaking point for them in terms of using the tech?
Also, HotSpot is really important. Java is an acceptable systems language at 80-110% the efficiency of C. It's not at 50% or less.
But whatever, FUD away.
Well, now over a decade later and a tonne of real work has been done by real companies with Java. By people who don't give a shit about whether it's buzzword compliant or 'free as in speech'.
Nerds getting their knickers in a twist about freedom or whether you can write 'hello world' in 20 less characters, or whether you can implement currying in Java are just not the target market for Java and quite frankly, outside a very small cloistered world, they're not really an important market, either.
One day, Java will be superceeded, and I expect that it will be something akin to Gosu - kinda like Java, Java compatable but 'better' enough in some way to make people want to move - much like the C to C++ transition happened: people can keep their existing investments and codebases, but start doing new stuff in a way which adds some value. I don't think such a language exists yet - Gosu doesn't offer enough I think. But one day,
"Yay Mercurial!" there we are, hg wins!! Whoo!!
Who the hell thought this counted as news? Even as opinion, it's wishy washy.
Also, tests don't have 100% coverage whereas the compiler will enforce type correctness everywhere.
I've spent days hunting down bugs in Javascript which would have been automatically caught by a type checking compiler. That's just a waste of my time, as is reproducing all the type checking that the compiler would have done in the first place.
Besides, applets are way way better now than they used to be.