News for hackers. Stuff that matters.
Re:Please stop saying Java sucks by nobleach on Wednesday June 24, 2015 @12:47PM (#9772837)
As a language, Java is just that, a very capable language. The JVM is full of great engineering, and when properly tuned, is a very powerful compile target.

Where things start to suck is what seems to surround Java. Years and years of XML configs, Maven and Ant processes. Devs whom haven't been allowed to read about new advances.... I was at a Java user group about a year ago when Venkat Subramaniam came to speak about functional programming. This was right around the time when DHH made his assertion about unit testing. Venkat made a joke like, "and as we learned this week, we no longer need to test our code". No one got the joke. A room full of at least 200 developers and no one got it... because they probably spend most of their time in a cubicle thinking that these new-fangled technologies will die someday, and we can all go back to writing crap like we did in 1999. (Other fun assertions from that user group had to do with JSON being horrible and XML being a far better format for web communication)

It highlighted the problem for me. While Twitter engineers are doing really cool things with Java, many are mired in these huge monolithic apps that take hours to build and even longer to deploy. And much of this stuff is stored in SVN... with no unit tests. It's the culture. They look at front-end developers with disdain... with their GitHub accounts and Vim/Tmux setups. Java doesn't suck. The culture that has grown around it does.

Re:Please stop saying Java sucks by rst on Wednesday June 24, 2015 @02:09PM (#9773372)
I can believe that a lot of Java devs are not keeping up, but the kerfuffle around that particular Railsconf keynote is a poor example -- I'm pretty sure lots of cutting-edge machine learning researchers, Haskell developers, and so forth also weren't following the gossip in the technical community around a particular tool set that they don't happen to use.

I've seen communities which start to think they're smarter than everyone else because those other people don't get the insiders' inside jokes. It's usually not a good sign for the community...

Re:Please stop saying Java sucks by davelnewton on Wednesday June 24, 2015 @01:53PM (#9773258)
Java isn't capable, however, of high levels of abstraction without various surrounding crufts, however. That is why it sucks. It's not simply a matter of "more lines", it's the additional cognitive overhead reading those lines demands, and the tooling required to make it suck less.
Re:Please stop saying Java sucks by bcg1 on Wednesday June 24, 2015 @02:14PM (#9773407)
Did you just call jython, jruby, groovy, and all of the other dynamic JVM languages cruft?

Or maybe you don't consider them high levels of abstraction... if that's the case might as well not consider inheritance, interfaces, dynamic proxies, classloaders, and annotations while we're at it.

Re:Please stop saying Java sucks by serge2k on Wednesday June 24, 2015 @02:24PM (#9773486)
I read it as you have to add in a bunch of useless boilerplate to do things like pass in an anonymous class to Collections.sort because of a lack of Lambda's (for a stupidly long time at least).
Re:Please stop saying Java sucks by davelnewton on Thursday June 25, 2015 @09:35AM (#9777741)
No, I didn't: none of those are Java. They're Jython, JRuby, Groovy, and the other JVM languages.

We're discussing Java-the-language. Not the JVM. And without various surrounding crufts you don't have an expressive, dynamic, malleable language with high levels of abstraction.

Lambdas help, but do not solve, Java's impoverished model of abstraction.

Re:Please stop saying Java sucks by bcg1 on Friday June 26, 2015 @06:42PM (#9788184)
Re:Please stop saying Java sucks by davelnewton on Sunday June 28, 2015 @03:15PM (#9794660)
I never said it didn't have those things; I'm not sure why you're still talking about them.

I said Java has an impoverished model of abstraction, and without external tools (byte-code manipulation, libraries, etc) it still doesn't.

Then you brought up not-Java, which I also didn't talk about. You brought those up because those do have better models of abstraction than Java does, which effectively concedes my point.

Re:Please stop saying Java sucks by coldtea on Wednesday June 24, 2015 @06:39PM (#9774970)
>Java isn't capable, however, of high levels of abstraction without various surrounding crufts, however.

Well, Go is even worse in this regard, and yet people jump all over it.

Re:Please stop saying Java sucks by primehound on Wednesday June 24, 2015 @10:04PM (#9775580)
Go at least has the ability to be fast. And compact enough to fit in your head. And approach a specific set of problems. For what it originally set out to do, it actually works pretty well.

What's Java's supposed purpose THIS week, again? First it was making web pages interactive, but it turned out that nothing ever worked in Java web applets except security flaws. Then we were told that Java had always been meant for making desktop apps, but it turns out that nobody in the late 1990s and early 2000s wanted to work with shitty purple quasi-windows designed to cater to the lowest-common-denominator X systems from 1982. Then we were told that Java had always been intended to take over the low-power, low-resource embedded space, but Scott McNealy's speech about that was hard to hear over the sounds of millions of embedded developers laughing so hard that they all shit their pants. I suppose you can argue that it works okay as a quasi-embedded platform today due to Android, but that's only because the idea of "embedded" has expanded, and because the Android boys swapped out the JVM horror show for something that didn't suck dick for a nickel and give four pennies in change.

Shit, what IS Java's one true purpose supposed to be these days? It's hard to keep track. Oh, that's right-- it's for WEB development. Or at least, that was Java's always-all-along-never-did-we-deviate-from-this-concept purpose according to SUN, right up until they found a buyer for the bloated corpse of their once-mediocre company. The original intent of Java to be used as REST-aware web dev platform totally shows in its design. That's what they were thinking of ALL ALONG. Yep. Yes, sir. No doubt about it.

Go, on the other hand, has no defined market, application, or purpose where it can solve any specific problems, and will therefore have to only be quasi-popular because Google is pushing it harder than Plus-- not because its developers actually LIKE it.

Re:Please stop saying Java sucks by coldtea on Thursday June 25, 2015 @05:59AM (#9776864)
>Go at least has the ability to be fast.

Err, Java is typically faster than Go. And with much better GC to top.

>And compact enough to fit in your head.

It's not like Java is Haskell either. Any enterprise slob can handle it. C# has 4 times Java's features.

>What's Java's supposed purpose THIS week, again?

To be a general purpose programming language?

>First it was making web pages interactive

That hasn't been the case for 15 or so years. Ever since 2000 it was server side enterprise and web apps, and some device stuff thrown in for good measure (which was one of Java target's even before applets).

Re:Please stop saying Java sucks by davelnewton on Thursday June 25, 2015 @10:51AM (#9778268)
Java is pretty fast. Not sure how saying "Y is worse" is particularly meaningful.
Re:Please stop saying Java sucks by forgottenpass on Wednesday June 24, 2015 @02:48PM (#9773648)
because they probably spend most of their time in a cubicle thinking that these new-fangled technologies will die someday, and we can all go back to writing crap like we did in 1999.

That is exactly the singular reason I don't pay attention to DHH's brain farts. I guess you got me.