News for hackers. Stuff that matters.
Re:J2EE Is Dead - Completely Dead by swah on Tuesday December 14, 2010 @07:53AM (#2003995)
Anyone else noticed this: when you Google for Java related stuff, Google's magic stops working, and you get into a sea of outdated and confusing pages from all kinds of sources.

Also, for most of those results, you'll get some horrible unusable web site, probably with serif fonts to compliment.

Re:J2EE Is Dead - Completely Dead by retube on Tuesday December 14, 2010 @08:44AM (#2004094)
No, I never noticed that. It's weird how everyone in the startup community hates on java, when it's probably the most popular language in use today (source: SO tags) - far outstripping trendier languages like ruby, python, erlang, go, or this seemingly insatiable desire to re-write every framework in javascript.

It seems to me that the number of third-party OS libraries and frameworks available in java, both in terms of breadth and state-of-the art, far outstrips the resources available in other languages. It's virtually the default choice for enterprise systems, and a vast array of academic research is also java-based, resulting in a hugely rich eco-system.

I just don't understand why java is not better embraced or more widely adopted amongst the startup community.

Re:J2EE Is Dead - Completely Dead by rapind on Tuesday December 14, 2010 @09:21AM (#2004201)
Because it's simply more painful to do many things that should be trivial. I have about 8 years of java under my belt and I rarely use it anymore (only a few times in the last 3 years). Instead I use one of those trendier languages... all of which you list are long past the possibility of being only a trend.

There are definitely some great reasons to use java for certain tasks, specifically due to the wide range of library support. If I had to use Java for a greenfield project though I'd probably take a serious look at groovy.

Re:J2EE Is Dead - Completely Dead by steveklabnik on Tuesday December 14, 2010 @09:36AM (#2004247)
I didn't strike out on my own to write in a language that doesn't make me happy, with thousands of over-engineered libraries that don't do anything I want to do, that's owned by a company that's running around suing people.

After a certain point, there's a base of libraries that is Large Enough. I've never really been wanting with Ruby, at least not in the 'oh, but there's this Java library that does exactly what I want' sense.

Even then, JRuby would make it Just Happen, or maybe even SOA.

Re:J2EE Is Dead - Completely Dead by mgkimsal on Tuesday December 14, 2010 @10:16AM (#2004406)
There's a hell of a lot of stuff out there written in C as well, that integrate quite nicely with PHP, Python, Ruby and other 'trendy' languages.

Having GD embedded in PHP makes many image processing tasks far easier and less painful than trying to do stuff using Java image libraries (for example).

"It's virtually the default choice for enterprise systems" then "I just don't understand why java is not better embraced or more widely adopted amongst the startup community"

"Startups" and "enterprise systems" are, in many (most? all?) cases, worlds apart in terms of needs.

I say this as someone who's done PHP for 14 years and Groovy/Grails for 3.

Re:J2EE Is Dead - Completely Dead by retube on Tuesday December 14, 2010 @10:46AM (#2004492)
> "Startups" and "enterprise systems" are, in many (most? all?) cases, worlds apart in terms of needs.

Sorry, I didn't mean to imply that they were; more that the wide adoption by both enterprise and academia has driven the development of a great number of world-class libraries and platforms in java.

Re:J2EE Is Dead - Completely Dead by Roboprog on Tuesday December 14, 2010 @11:12AM (#2004583)
I know I have contributed to the java questions on stackoverflow. I have worked in java on and off for 14 years, but the java frameworks, e.g. Axis (of Evil), are often quite over-complicated. The questions are there because of employment and difficulty, not interest and ease.

That said, when I am prototyping, or doing a quick tool, it's usually in Perl. Quicker to write, and runs quicker as well (when single threaded). At least if "quicker" involves I/O, caching in hashes (maps) or sorting/searching. Java is quicker than Perl if you are twiddling ints, or throwing all your data away just after the network gives it to you, though :-)

Ruby is nice too, but I have done quite a bit less of that.

Re:J2EE Is Dead - Completely Dead by krschultz on Tuesday December 14, 2010 @08:56AM (#2004120)
I didn't get that from his comment. I used Java at a startup (shocking I know!), and most of my Google searches returned stuff for Java 1.4.

(ex. I just googled system.out.println and it pulls up Java 1.4.2)

Re:J2EE Is Dead - Completely Dead by oceanician on Tuesday December 14, 2010 @09:24AM (#2004215)
I know of a startup using Java and SEAM Framework: http://seamframework.org/

They're doing pretty well for themselves too.

Re:J2EE Is Dead - Completely Dead by stcredzero on Tuesday December 14, 2010 @08:56AM (#2004119)
I just don't understand why java is not better embraced or more widely adopted amongst the startup community.

Because other languages are faster for rapid prototyping.

Re:J2EE Is Dead - Completely Dead by retube on Tuesday December 14, 2010 @09:05AM (#2004140)
Prototyping Webapps? Maybe. But with Wicket or Tapestry the dev cycle is pretty quick.
Re:J2EE Is Dead - Completely Dead by cgp on Tuesday December 14, 2010 @10:36AM (#2004467)
Only when comparing to other J2EE frameworks.
Re:J2EE Is Dead - Completely Dead by ollysb on Tuesday December 14, 2010 @10:39AM (#2004474)
After 6 years as a java dev Tapestry 5 was what made me give up on java and move to rails.
Re:J2EE Is Dead - Completely Dead by swah on Tuesday December 14, 2010 @11:27AM (#2004637)
I do use Clojure for my startup.
Re:J2EE Is Dead - Completely Dead by rbanffy on Tuesday December 14, 2010 @08:15AM (#2004029)
This is more a reflection of the whole Java ecosystem. I am currently maintaining an application that runs - and will continue to run until it's EOL'ed - in Java 1.5. Not that 1.6 is that much better.

Also, there are lots and lots of people who learn just enough Java so they can get jobs in programming. Body shops hire them because they are cheap and because none of their clients, who demand their products to be written with enterprisey brands they read about in enterprisey magazines, will ever look into the code they write. Unfortunately, most of them also learn HTML and build websites.

And that creates the problem you see.

Re:J2EE Is Dead - Completely Dead by spuz on Tuesday December 14, 2010 @08:11AM (#2004022)
Yes. You can choose to view only results from the past year which helps but Google really need to fix the problem of previously highly ranked pages becoming obsolete over time.
Re:J2EE Is Dead - Completely Dead by gaustin on Tuesday December 14, 2010 @08:42AM (#2004086)
For a few reasons, I had to take a job maintaining/enhancing some huge government Java applications (largely Oracle based). I thought that there was some interesting things going on in the ecosystem because of what I read about all of the JVM-based hacking. I thought that because all of this hacking there would be a lot of solid, well integrated tools and good documentation.

I had successfully avoided Java for most of my career, so it was also an opportunity to learn something new.

That was a terrible mistake. It's almost impossible to find answers that are relevant. There is very little readable documentation, even directly from Oracle. When you do find a relevant bit of information on a forum or blog, it's either outdated or useless because the author doesn't specify what their environment is.

I asked my colleagues for books, blogs or other resources to help me get up to speed. They pretty much laughed and said I'm out of luck.

I won't complain about the tooling. It's bad, but that may be more a matter of taste than anything else.

Re:J2EE Is Dead - Completely Dead by retube on Tuesday December 14, 2010 @08:50AM (#2004104)
I have to respectfully disagree. The docs of just about every java library or framework I've looked at or used have been extensive, detailed and complete.
Re:J2EE Is Dead - Completely Dead by pjscott on Tuesday December 14, 2010 @10:14AM (#2004399)
But are they readable? Relevant? Useful? They're certainly better than nothing, but there's more to good documentation than completeness and detail.
Re:J2EE Is Dead - Completely Dead by gaustin on Tuesday December 14, 2010 @11:18AM (#2004609)
I wonder how much overlap there is between the packages I've used and the ones you've used. I've only been in the Java world for about 3 months, so my perspective is definitely raw and incomplete. Maybe we just have different criteria for what we consider good documentation.
Re:J2EE Is Dead - Completely Dead by jcromartie on Tuesday December 14, 2010 @11:03AM (#2004544)
It's like that for pretty much every language, and really bad for Microsoft technologies. When you are looking for C# advice, apparently Google can only find outdated advice from terrible sites like CodeProject and ExpertsExchange.
Re:J2EE Is Dead - Completely Dead by artmageddon on Tuesday December 14, 2010 @11:52AM (#2004749)
I've seen some good results from StackOverflow, but this is pretty spot on. If it doesn't link to either of those two sites or SO, then it may link me to some random programming thread where the problem in question was brought up 4 years ago(or more!) and was bumped 3 times by the author with no or near useless answers.
Re:J2EE Is Dead - Completely Dead by DanielRibeiro on Tuesday December 14, 2010 @08:39AM (#2004077)
This happens with ruby and python as well, though not as often. As always, limiting to things from at most two years usually does the trick.
Re:J2EE Is Dead - Completely Dead by brown9-2 on Tuesday December 14, 2010 @08:31AM (#2004055)
I haven't noticed this. Do you have any example search terms?
Re:J2EE Is Dead - Completely Dead by mmilkin on Tuesday December 14, 2010 @09:19AM (#2004192)
Nope I use Duck Duck Go