Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Java Oracle Programming

The Struggle To Keep Java Relevant 667

snydeq writes "Fatal Exception's Neil McAllister questions Oracle's ability to revive interest in Java in the wake of Oracle VP Jeet Kaul's announcement at EclipseCon that he would 'like to see people with piercings doing Java programming.' 'If Kaul is hoping Java will once again attract youthful, cutting-edge developers, as it did when it debuted in 1995, [Kaul] may be in for a long wait,' McAllister writes. 'Java has evolved from a groundbreaking, revolutionary language platform to something closer to a modern-day version of Cobol.' And, as McAllister sees it, 'Nothing screams "get off my lawn" like a language controlled by Oracle, the world's largest enterprise software vendor. The chances that Java can attract the mohawks-and-tattoos set today seem slimmer than ever.'"
This discussion has been archived. No new comments can be posted.

The Struggle To Keep Java Relevant

Comments Filter:
  • Just let it die (Score:1, Insightful)

    by Rix ( 54095 ) on Friday April 02, 2010 @11:42PM (#31712732)

    There are some good ideas in Java, but they're drowned by the inconsistent implementation, and Oracle will most certainly not make that better.

  • good riddance (Score:1, Insightful)

    by Anonymous Coward on Friday April 02, 2010 @11:43PM (#31712736)

    java can FOAD, as can the lecturers around the world who bought into sun's bullshit.

    for academics there's haskell, for professionals there's C++, and everyone else can suck my dong

  • by Anonymous Coward on Friday April 02, 2010 @11:44PM (#31712750)

    Maybe he's barking up the wrong tree. The best young programmers I know don't have any piercings or tattoos that I can see.

    I have no data to support this, but I have always thought the best of the tech crowd were too busy being into their tech to get into the body modification scene. I don't think this is different now than it was 30 years ago.

    On the other hand, there's a lot I can't see (and in many cases, thank goodness!)

  • by Unoti ( 731964 ) on Friday April 02, 2010 @11:48PM (#31712776) Journal
    I'm gonna go out on a limb here and guess that you don't live or work in the San Francisco area.
  • by Vellmont ( 569020 ) on Friday April 02, 2010 @11:53PM (#31712794) Homepage

    Someone emulating the punk movement of 40 years ago is "cutting edge"? If that's his idea of "cutting edge, hot talent", he needs to stop thinking he's in the movie "hackers" and he's looking for Angelina Jolie. Associating dress or style with talent is stupid no matter if it's "you wear a suit, you're smart" or "you've got 3 piercings and drive a crotch rocket you're the next big thing"

    Demanding innovation never works. Innovation just happens from a need, not a demand from some Oracle guy who desires it and thinks it'll be good for marketing. There are interesting things happening in Java. Scala is certainly interesting. I haven't used it myself, but I'd love to try it if I had a good project to use it in.

  • Re:um (Score:3, Insightful)

    by Jurily ( 900488 ) <jurily&gmail,com> on Saturday April 03, 2010 @12:00AM (#31712830)

    All those "COBOL is going to die" people are silly and not grounded in reality. Plenty of talented developers see its power and use it.

  • by skyler_fox ( 1444329 ) on Saturday April 03, 2010 @12:01AM (#31712836)
    let me get this straight... Java needs tattooed programmers to be relevant? Snarky comments about Cobol aside, Java is the current programming workhorse. It provides the greatest infrastructure and options for scalability. Since when does fashion dictate what technology is best for the job?
  • by spiffmastercow ( 1001386 ) on Saturday April 03, 2010 @12:08AM (#31712900)
    I have tattoos, and I used to have piercings. I'm also a damn good coder. I seriously doubt the two are related.
  • by neiras ( 723124 ) on Saturday April 03, 2010 @12:11AM (#31712922)

    I make a lot of money working with Java. I have piercings. I've been known to have hair in a primary color.

    Seriously though. Android applications. Eclipse. Adsense, GMail, Wave - in fact, just about every big Google web application (yes, even the client side stuff is written in Java and translated to Javascript [google.com]). Openfire XMPP. Tomcat. Geronimo. ActiveMQ. Azureus.

    You can badmouth Java all you want, but performance and tooling are excellent and there seems to be an infinite supply of libraries and sample code. It runs in lots of different places. There are 100% open source implementations. You can compile it to native code. You can run it in the CLR.

    I know it's trendy to play with Ruby and Python, and that's fine. I'm a big fan of Scala, which runs on the JVM. I believe Twitter's backend is at least partially built on Scala [theregister.co.uk]. El Reg, I know, I know.

    Anyone who thinks Java is fossilizing needs to give their head a shake. It's everywhere, and it's being used in very diverse ways.

    If that doesn't excite this mythical "pierced programmer", then said idiot is too busy practicing the Hipster Doctrine - studied disinterest.

  • Re:Groovy (Score:2, Insightful)

    by FlyingGuy ( 989135 ) <.flyingguy. .at. .gmail.com.> on Saturday April 03, 2010 @12:11AM (#31712924)

    With syntax like this:

    amPM = Calendar.getInstance().get(Calendar.AM_PM)

    No thanks.

  • by Daniel Dvorkin ( 106857 ) * on Saturday April 03, 2010 @12:13AM (#31712940) Homepage Journal

    Does.it.allow.you.to.do.useful.things.without.typing.a.classpath.fifteen.layers.deep?

    If.so.it.might.be.exactly.what.is.needed.to.make.Java.an.appealing.language.for.programmers.with.fresh.ideas. Else.it.won't.do.the.trick.

  • by abigor ( 540274 ) on Saturday April 03, 2010 @12:15AM (#31712968)

    Popularity isn't a good measure of relevancy?

  • Re:Just let it die (Score:3, Insightful)

    by Vellmont ( 569020 ) on Saturday April 03, 2010 @12:16AM (#31712974) Homepage


    As for "letting it die", Java is the default language of enterprise everything.

    He's just part of the Java backlash because it's popular. It's like the people 15 years ago saying "Let C die" because there's C++ or Java now. An essentially useless comment and nothing more than a troll.

  • by Anonymous Coward on Saturday April 03, 2010 @12:21AM (#31712996)

    Java is described in TFA as a cutting edge language from the 90's having somewhat lost its edge since them. Java was never cutting edge. It's always been technology from the 70's - mostly a Smalltalk derivative. Java always has been about been about compromise between being more advanced than its mainstream predecessors (C, Delphi/Pascal...) and keeping accessible to the average programmer.

    If anything, in the last 10 years Java has succeeded, turning from a questionable language for client-side applets to a stable and widely used environment for serious server-side apps. Unless Oracle are totally braindead they will keep it moving in the same direction, slowly moving forward and not confusing the average programmer with too much Haskell/Lisp/Perl-like complicated stuff.

  • SmallTalk (Score:2, Insightful)

    by Anonymous Coward on Saturday April 03, 2010 @12:27AM (#31713018)

    Java was brain-dead at birth. SmallTalk is the cleanest of object-oriented programming languages with a simple, clean syntax. A good programmer can develop an interpreter for a language using SmallTalk in a weekend. Try that in Java and your head will explode due to the inherent complexities of the language. Java, at best, is C with bytecode execution rather than native machine code.

  • Re:Just let it die (Score:1, Insightful)

    by Anonymous Coward on Saturday April 03, 2010 @12:28AM (#31713028)

    Swing,

    It's a GUI toolkit. Where's the inconsistency? If you don't like Swing, you can also use the older AWT, SWT, or Qt...

    Java3D,

    It's a 3D API. Where's the inconsistency?

    Vector/ArrayList, StringBuilder/StringBuffer,

    In both cases, one of these is synchronized and one is not. Their naming scheme could have been more consistent, but otherwise that seems fine to me.

    Date handling, etc.

    I'll give you that date handling in Java is a pain the ass, but on the other hand, I've yet to find a programming language that didn't do something related to dates that seriously frustrated me. Every once in a while I think, "How hard can it be to get this right?", so I start working on my own Date implementation, and then I run into timezones, sub-nanosecond precision, string formatting, leap years, leap seconds, all while trying to make it reasonably fast...

  • by AuMatar ( 183847 ) on Saturday April 03, 2010 @12:38AM (#31713076)

    None. Learn algorithms, data structures, and theory. You can and will change languages a half dozen or more times in your career. Theory works for everything. And the good employers know that.

  • by MichaelSmith ( 789609 ) on Saturday April 03, 2010 @12:40AM (#31713088) Homepage Journal

    Would you prefer not to have name spaces? C is pretty crap you know. "import" is pretty easy in Java too.

  • by hedrick ( 701605 ) on Saturday April 03, 2010 @12:42AM (#31713104)

    What they had better NOT do: treat it like Solaris. You're only allowed to use it in production if you have support, and the only support they sell is a site license which costs $25 * the number of people in your company + the number of users for your application.

    I'm not being entirely silly. I have an application for which I would have been willing to pay for Java support. But the only support Sun would sell us (late 2009, when they had already started Oraclizing) was an unreasonably expensive site-wide support contract.

  • by devent ( 1627873 ) on Saturday April 03, 2010 @12:43AM (#31713108) Homepage

    I don't get it, why you want the java language to die? I programming Java now for 4 years and the only thing I'm missing are closures.

    The core of Java is very robust, you have class, enums and interfaces. Generics are do what they are suppose to do (and they are backwards compatible). Threading is integrated in the Java with synchronized and the threading API. In addition, Java have neat features like annotations and anonymous classes.

    Reflection is very easy to use, but the exception model is perhaps debatable.

    The tools and the libraries are top class. Maven is my favorite killer-tool for Java.

    If Java get closures, what are you missing in Java? It's maybe not the future but Java is a very robust and consistent language.

  • by Alex Belits ( 437 ) * on Saturday April 03, 2010 @12:44AM (#31713114) Homepage

    I'm gonna go out on a limb here and guess that you don't live or work in the San Francisco area.

    I do, and STILL the best programmers I know have neither piercings nor tattoos.
    Attention whores with dubious amount of talent, on the other hand...

  • by Trepidity ( 597 ) <[gro.hsikcah] [ta] [todhsals-muiriled]> on Saturday April 03, 2010 @12:45AM (#31713132)

    I do, and don't see much of that from top coders. If you go to cultural events like SuperHappyDevHouse, meetups at the Hacker Dojo, etc., there are a handful of mohawked/pierced types, but not many. Maybe up in SF proper (as opposed to Silicon Valley) there are more, but I haven't seen 'em.

    Now if you're talking web designers, yeah, there's lots of those.

  • Who cares? (Score:3, Insightful)

    by Foredecker ( 161844 ) * on Saturday April 03, 2010 @12:47AM (#31713144) Homepage Journal

    This question is ask as if Java is somehow imporant in and of itself. It isnt. Neither is perl, or PHP, Phython or gasp - C++ or even C. Throw C#, F# and VB into that group as well.

    These are tools. We (as in devleopers) should simply use the right tool for the job. If thats Java - then okey-dokey. If its C#, then groovy, if its C++ then thats ok to. Hey, I still use assembly language for a few things.

    Do real engineering work folks! Pick the right tools for the job based on the business and technical requirements.

    -Foredecker

  • by Daniel Dvorkin ( 106857 ) * on Saturday April 03, 2010 @12:59AM (#31713198) Homepage Journal

    Namespaces are useful, and custom namespaces cut down on a lot of the clutter in Java, but they shouldn't be necessary for basic functionality. The way I see it (YMMV, of course) K&R C provides pretty much the functionality that any language should have as part of the core language spec; if I can do something in n characters in C but it takes me 10n characters to do it in some newer and supposedly better language, I'm hard-pressed to consider that an improvement.

  • by Daniel Dvorkin ( 106857 ) * on Saturday April 03, 2010 @01:05AM (#31713236) Homepage Journal

    See my reply to the previous answer to my comment; the workarounds you describe are effective, but they shouldn't be necessary. One of the main things that distinguishes a good language from a bad one, IMNSGDHO, is that the former doesn't make you feel like you're fighting the language to get things done.

    Ah, pay me no attention, youngdev -- I'm just a grumpy old man, one of the get-off-my-lawn crowd that is supposedly the only group of people using Java these days. ;)

    And no, I don't use Notepad for development. Or for anything. Dear God. I may be old (by /. standards, anyhow) but I'm not senile.

  • Lemmings (Score:5, Insightful)

    by Animats ( 122034 ) on Saturday April 03, 2010 @01:13AM (#31713298) Homepage

    I was just by the Apple Store in Palo Alto, CA. There are people lined up for the iPad launch, some sleeping in tents. Three TV stations are covering the waiting line. Reminds me of Apple's "Lemmings' video. [youtube.com]

    Actually, the state of the art in programming languages still sucks. The mindset that "it has to be unsafe to go fast" is so deeply entrenched in the C/C++ community that fixable problems aren't fixed, and as a result, millions of programs still crash every day. The "virtual machine" thing has resulted in ".NET", a virtual machine for x86 only. The "scripting language" approach is useful, but fanatical late-binding coupled with naive interpreters makes for very slow execution, as with Python. Few mainstream languages do concurrency well; the notion that concurrency is the operating system's problem results in pain for all concerned.

    Looked at that way, Java isn't bad. Memory safety is good. There are efficient compilers. There's some language support for concurrency. It's not too weird, and not too theoretical. Java is mediocre, but better than most of the alternatives when you need to get large amounts of work done.

  • by Abcd1234 ( 188840 ) on Saturday April 03, 2010 @01:25AM (#31713366) Homepage

    Uhuh... so you determine language quality by the terseness of it's text.

    Interesting.

    Well, you have fun writing your terse programs with inexplicably named, but I'm sure very compact, variable and function names, while the rest of us move on to writing code other people can actually, you know, read and understand while putting up with the horrible hardship of having to type a little bit more.

    Oh, and BTW, any language that has namespaces has an import keyword. Maybe you should try it out sometime.

  • Java isn't pure OO (Score:2, Insightful)

    by elgee ( 308600 ) on Saturday April 03, 2010 @01:51AM (#31713490)

    I went from Smalltalk to Java in 1996 and didn't like its implementation. In Smalltalk, EVERYTHING inherited from TOFU (Top OF Universe). Not so in Java. Haven't done it for some years, but I thought it wasn't very elegant.

  • by Rix ( 54095 ) on Saturday April 03, 2010 @01:56AM (#31713506)

    The enterprise sector is spectacular at painting itself into corners. Java isn't the first instance of that, and it certainly won't be the last. So yeah, Java isn't going anywhere as far as enterprise is concerned. But neither is Cobol or Fortran or many other moribund technologies.

    The rest of us can sensibly let all of that die.

    As for inconsistencies, how many mutually incompatible versions of Java are there? How many revamps compared to languages stewarded by standardization bodies or other neutral actors? (C has, what, 3 over it's 40 years of history?)

    I'd say that the best thing Oracle could do for Java would be to give it to ISO, but I think it's 10 years too late. I'd love to be surprised, though.

  • by Vellmont ( 569020 ) on Saturday April 03, 2010 @02:08AM (#31713568) Homepage


    It's no longer language constructs, data structures, or algorithms that are cutting edge. Innovation has moved on to more fertile pastures. Yes, those who build software tools, libraries, IDEs, and compilers will continue to innovate.

    Hmm.. language conststructs, data structures, or even algorithms are simply much harder to innovate in since they're so basic to software.. but I just don't agree there's no innovation happening in these areas. It just happens with less frequency because it's harder. The payoffs are likely of much higher impact though than anything of what you listed.

    The rest of your post I think I agree with. The idea of the article seems to be something to to with trendiness or "cool". That's great and all, but I rather agree with your approach that it's about the interesting problems, not the technology.

  • by WeirdJohn ( 1170585 ) on Saturday April 03, 2010 @02:27AM (#31713674)

    The thing I hated most about Java is that I can't just create a new class and implement a few messages and use it in existing code, unless I somehow shoehorn it into an existing class hierarchy, or implement an interface. If the existing code was done without interfaces in mind, I have to edit a few hundred methods in dozens (if lucky) of files, and not break anything.

    To avoid this I have to over-engineer prototype code, and increase production cost estimates by at least a factor of 4, or else use a generating framework that leaves me with no idea what any of the generated code does, which makes fixing subtle bugs so much fun.

    At least smalltalk works. And the smalltalk debugger is possibly the most elegant and efficient ever.

  • by Prof.Phreak ( 584152 ) on Saturday April 03, 2010 @02:29AM (#31713684) Homepage

    The enterprise sector is spectacular at painting itself into corners.

    What are some of the alternatives? Is .Net not worse of a corner? And at ``enterprise'' level, pretty much everything turns to crap anyway, and as far as crap is concerned, Java is usually easier to deal with than say... poorly written Perl (I'm a big Perl fan, but I've seen the code written at a fortune500 corp, and... well... it's unmaintainable crap written by a cobol programmer).

    Would C/C++ be a better alternative for internal apps? Unlikely!

    Would Python? Perl? PHP? I doubt it. Primarily 'cause nobody who writes such enterprise apps would really know what they're doing (consider folks who've worked at a corp for last 15 years).

    Yeah, everything most enterprises need should be web-based anyways---but the guts behind that would still be... what? VB.NET? Heh!

    Obviously there are different definitions of ``enterprise.'' But if YOU had to pick a language for some internal app with a dozen or so existing developers (all of whom know Java, some of whom know other languages), which language would you pick? [throw in assumption that you need to run it on a unix-like platform]

  • by basiles ( 626992 ) <basile@NOSPam.starynkevitch.net> on Saturday April 03, 2010 @02:31AM (#31713696) Homepage
    I believe what would be significant is to improve the JVM bytecode, to add some additional instructions. Tail-recursive calls is an example. There are some others. If the JVM specification was improved (and implemented by Oracle & other major JVM sources), several new languages (or language feature) could flourish. And the important part is not the Java language; it is the JVM. Better languages (Clojure, Scala) can be implemented for the JVM, and if the JVM was improved, even better languages could be experimented, all able to use the legacy of Java. Regards.
  • by peppepz ( 1311345 ) on Saturday April 03, 2010 @03:08AM (#31713834)

    Namespaces are useful, and custom namespaces cut down on a lot of the clutter in Java, but they shouldn't be necessary for basic functionality.

    In fact they aren't. Java automatically imports the java.lang package, so for "basic functionality" all you might have to import are the java.net or java.io packages. Which is quite reasonable since Java is designed to work (and does work) on systems which might not have access to either the network or the file system. And a string like "java.net" is pretty far from the "fifteen layers deep classpath" you were grieving about.

    The way I see it (YMMV, of course) K&R C provides pretty much the functionality that any language should have as part of the core language spec; if I can do something in n characters in C but it takes me 10n characters to do it in some newer and supposedly better language, I'm hard-pressed to consider that an improvement.

    Leaving aside any considerations about the quality of C's standard library, which is apparent to anyone wo has used it, let's do a comparison.

    In C, in order for your program to do any kind of interaction with the external world, you have to #include <stdio.h>. In Java, you don't import anything.

    In C, in order to allocate some memory, you have to #include <stdlib.h> (otherwise, you won't even get NULL!), and <string.h> if you want to do anything useful with that memory. In Java, you don't import anything.

    In C, if you want to use a socket, you #include <sys/types.h> and <sys/socket.h>. And <unistd.h> if you want to be able to read() from it. In Java, you import java.net, which is not only much shorter than that, but will also provide much nicer names for the imported symbols: and while you might like the terseness of names such as "fcntl", you'll agree that at least for higher level functionality, more informative names are needed, which is why all C-based high level libaries tend to have extremely long, reverse-polish names such as gtk_file_chooser_get_preview_filename_utf8. And unlike Java, where you can get away with importing the "namespace" just once, in C you'll have to repeat that stuff for every single use of your imported symbol.

    Moreover, in Java, if you use a plain IDE, which is provided for free by the same people who develop the language, you can just right click the source code and select "fix imports" to have it automatically add import clauses for every external class you've been using.

  • by basiles ( 626992 ) <basile@NOSPam.starynkevitch.net> on Saturday April 03, 2010 @03:15AM (#31713856) Homepage
    I was serious. Tail recursive call is one of the major feature lacking in the JVM. See http://blogs.sun.com/jrose/entry/tail_calls_in_the_vm [sun.com] http://openjdk.java.net/projects/mlvm/ [java.net] And there is no way to implemnent tail-recursive call in its full generality (including tail-call optimisation to statically unknown code, e.g. thru virtual methods...) without a proper support from the JVM. This has nothing to do with addressing modes (which you don't need in a VM offering garbage collected values). And the Ocaml virtual machine bytecode does indeed show that other kind of bytecodes can be useful. JVM is not the perfect VM; it could and should be improved.
  • Eheh (Score:3, Insightful)

    by SmallFurryCreature ( 593017 ) on Saturday April 03, 2010 @03:20AM (#31713874) Journal

    And you are aware most job offerings tend to take the kitchensink approach? "Lets include every word we ever read and then demand 4 years experience with it. iPAd, senior engineer!".

    Also (java) matches javascript.

    I know you are blowing smoke because PHP is not listed. Oversight or some other reason?

    Oh and wouldn't your query also match "Need highly skilled X developer who knows enough Java to migrate us away from the steaming pile of crap?".

    Or indicate that there are no good Java developers to be found?

    What about companies that offer you a nice cup of java every morning?

    I know that a job count for PHP has to discount those companies with .php in their url.

    In fact, does posting a few queries to Monsterboard not tell you anything more then that you have to much time on your hand?

  • by peppepz ( 1311345 ) on Saturday April 03, 2010 @03:24AM (#31713890)

    As for inconsistencies, how many mutually incompatible versions of Java are there?

    Isn't extreme backward compatibility the reason Java gets most often bashed for? For what I know, any 1.1 source code should compile fine under java 1.7 (unless you used something like "assert" as a symbol name, but even then you should get away by using the -source switch for the compiler).

    How many revamps compared to languages stewarded by standardization bodies or other neutral actors? (C has, what, 3 over it's 40 years of history?)

    I'd say that the best thing Oracle could do for Java would be to give it to ISO, but I think it's 10 years too late. I'd love to be surprised, though.

    To be honest, every single C compiler out there defines its own incompatible implementation of C. That's because the standards move so slowly that every manufacturer tends to put its own custom features in his compiler. I don't recall this happening with Java, only MS tried to do that with J++ IIRC, but Apache Harmony, the Eclipse compiler, OpenJDK, GNU Classpath and Sun's JDK all implement the very same language if I'm not wrong.

    That said, I'm favorable to an independent standardization of Java, but I don't think it will solve any problem of Java.

  • Re:Groovy (Score:5, Insightful)

    by IntlHarvester ( 11985 ) on Saturday April 03, 2010 @03:24AM (#31713894) Journal

    The history of Java is very instructive for any aspiring professional coder.

    Management: Damn these irreplaceable "programmers"! Look at their goddamn salaries. We need to standardize technology, remove the sharp edges, and train people who understand! Sun has got the thing.

    Programmers: Heh. We're going to be spinning out gotta-haveit ETLA frameworks faster than your Indian developers can say 'Yes sir! Right away sir!". Good luck with that. Now bend over and take another load of XML. *cracks-knuckles*

    Live by the marketing hype, die by the marketing hype, Sun Java.

  • by Tablizer ( 95088 ) on Saturday April 03, 2010 @03:36AM (#31713924) Journal

    Congratulations, you reinvented ColdFusion.

  • by _newwave_ ( 265061 ) <slashdot.paulwalker@tv> on Saturday April 03, 2010 @04:09AM (#31714008)
    No, GOOD developers will follow the GOOD jobs. Now try resorting the list by both the average quality of job and the most elegant syntax offered to do just that with the given language.
  • by sgt101 ( 120604 ) on Saturday April 03, 2010 @04:18AM (#31714036)

    It's all about Balls - risk taking, competition, innovation.

    The computer is a new and novel device. It is probably more important than the wheel, perhaps less important than fire (with all the chat about cooking being a primary driver for evolutionary change in humans). Your view of the correct set up and instruction set for computing may be correct, but surely you would be the first to admit that if it is then you have been strikingly prescient. In my view the use cases for computers are far from decided, and while it is true that complete equivalence of all Turing complete instruction sets would enable any language to be used to do what any other language does I think that we want tools that are convenient and efficient for a particular task.

    So, 70, 80, 100 years of diversity and then convergence; at least! The more that the energy of change is put into the system the more diversity in the ecosystem. Eventually it will settle down and a standard set of tools will emerge, but not yet.

  • by ls671 ( 1122017 ) on Saturday April 03, 2010 @04:59AM (#31714170) Homepage

    > ArrayList myList = new ArrayList();.

    Then just use the construct from the "founding fathers" if it bothers you that much, it still works you know :-)

    ArrayList myList = new ArrayList();

    More seriously, how much time does a developer spend typing compared to what he should be spending thinking ?

    The fact that java forces you to type more also forces you to type basic documentation as you code and in my opinion, this is a good thing. In the end, you get easier to maintain code at almost no extra cost ;-)

    I have never understood developers saying that a language was superior because you can write code using less key strokes using it.

  • Modern-day COBOL (Score:3, Insightful)

    by mwvdlee ( 775178 ) on Saturday April 03, 2010 @05:21AM (#31714242) Homepage

    'Java has evolved from a groundbreaking, revolutionary language platform to something closer to a modern-day version of Cobol'

    So Java has gone from immature, constantly changing and buggy to stable, reliable and fast? I can see how that would be a problem for somebody that wants to attract unexperienced scriptkiddies to a programming language.

  • by mwvdlee ( 775178 ) on Saturday April 03, 2010 @05:36AM (#31714282) Homepage

    Personal pet peeves for Java:

    1. int/float are not treated as classes. Okay, only a minor peeve.

    2. Classes wrapping the basic datatypes and string are finalized. This one is a major peeve.

    3. Operator overloading is not allowed and the designers of Java clearly stated it never will because operator overloading is just pure evil and no sane programmer should ever, ever want to do operator overloading, for no reason whatsoever. The standard String class uses operator overloading.

    4. The library is an inconsistant mess. Not quite upto PHP levels of messiness, but a mess nonetheless.

    Any others?

  • The whole point (Score:4, Insightful)

    by shutdown -p now ( 807394 ) on Saturday April 03, 2010 @06:02AM (#31714386) Journal

    Java has evolved from a groundbreaking, revolutionary language platform to something closer to a modern-day version of Cobol.

    The whole reason why Java enjoys the widespread popularity that it has is precisely because of that. Most projects aren't made by "trendy" guys in a basement somewhere - they're made by corporations, most of them not exactly small, who value predictability and the peace of mind that comes with it over new & trendy.

    The advantage of Java there is that it is a well-known quantity, and it has been in that state for a while, with few changes. There are many development tools, all top-notch, with code editing features unmatched by IDEs for any other language. There is a huge amount of useful code in third-party libraries, most of them under liberal (free, non-copyleft) licenses. There is a large workpool, and it's going to remain that way for some time to go.

    There's nothing wrong with that. It's a niche that has to be filled, and Java is doing remarkably well in doing so. Don't fix what's not broken.

    And in the meantime, the trendy guys always have Groovy, Scala etc to play with.

  • by jonwil ( 467024 ) on Saturday April 03, 2010 @06:14AM (#31714434)

    Java (specifically J2EE with an Oracle or similar database back-end) seems to be second only to .NET/ASP.NET/C#/VB.NET with SQL Server in terms of jobs I see when I look on the job sites here in Australia.

    Plus Java is still the #1 mobile language. Not just on Android but on the 1000s of feature phones out there running various incompatible versions of J2ME for applications (I have owned 3 feature phones, all of which have supported Java apps in some form)

    Java on the desktop is dead (if it was ever anything but stillborn in the first place). Java for client side web development died and got replaced with ActiveX, Flash and other technologies.

    But Java in the enterprise and mobile spaces is far from dead.

    If anything, Oracle should be pushing J2EE even harder (Oracle is the dominant choice of database to use alongside J2EE)

  • by u17 ( 1730558 ) on Saturday April 03, 2010 @06:18AM (#31714452)
    For all practical purposes, Java doesn't have namespaces. If it did, you would not see class-name prefixes floating around all the time in java code. Say, javax.swing.[J]Button, org.odftoolkit.odfdom.dom.element.table.[Table]TableRow, etc. If the only way to resolve name clashes is to type out the full package-name of the class whenever you refer to it in a source file, then this is not using a namespace, and the presence of class-name prefixes only confirms that this is how developers view it. Compare to C++, where you can do "namespace thr = boost::thread;". With aliases like these, you don't have to worry about class name clashes at all, since you could easily translate something like "org::odftoolkit::odfdom::dom::element::table::" into "tbl::", making the use of namespaces convenient and practical. While I would love Java to be more popular, it's full of half-assed features like this, and it's no surprise to me at all that it's being pushed back into being a niche language for "enterprise" developers.
  • by ardor ( 673957 ) on Saturday April 03, 2010 @06:23AM (#31714460)

    No. K&R C lacks the following things:
    * first class functions, lambda, closures
    * comprehensions
    * coroutines
    * proper generics/templates (no, macros are _not_ a replacement)
    * painless string handling
    * module system
    * namespaces
    * reflection
    * support for common oop patterns and tools, like class definitions, dynamic dispatch etc. it has to be manually constructed, which is quite time consuming

    Now, of course it is a valid point that these things do not necessarily belong in C. It is a system programming language, after all. But these features are very important for other domains, such as application development. Right tool for the right job, please. C is _not_ the shiny hammer, and not everything is a nail.

  • by Anonymous Coward on Saturday April 03, 2010 @06:28AM (#31714478)
    Except that 'out' isn't a really good name to be polluting your unit namespace with.
  • by mcvos ( 645701 ) on Saturday April 03, 2010 @06:47AM (#31714562)

    Java is readable, it's just not very expressive, which means you need a lot of code to get anything done. Often you need a couple of classes to get the structure of your code right. Perl is indeed the polar opposite: expressive but unreadable.

    Good languages have both. Ruby, Python and Groovy are readable, but also very expressive. You can do stuff in a single very readable line that would take a page of Java, or a very arcane line of Perl.

  • by Anonymous Coward on Saturday April 03, 2010 @06:48AM (#31714568)

    Are you a Perl fan, or an old-school APL guy?

  • by owlstead ( 636356 ) on Saturday April 03, 2010 @07:13AM (#31714684)

    Both are a problem for code maintainability. Java will never have dynamic typing. It's not that it is hard to implement (e.g. look at bsh an interpreter that is still, basically Java), it's that it has way to many drawbacks. If you want to have that, use a scripting language (and don't use it for large programs).

  • by owlstead ( 636356 ) on Saturday April 03, 2010 @07:57AM (#31714844)

    "It was never groundbreaking and revolutionary."

    Of course not, it was not because it was explicitly designed not to be all that. It was supposed to be a small well defined language that brought good OO practices and GC to the mass market of C/C++ programmers - hence it syntax. For this to happen, it needed also to be relatively fast during execution.

    As for all the politics, I am highly surprised by the way you think the market moves. The development market moves because it sees something useful. After that it looks at the license yes, and Java never had much to scare away developers except hard core purists (read: the linux crowd - and they certainly had good reasons for shunning it).

    "But betting on Sun was the wrong move: Sun screwed up the language, screwed up the toolkits, screwed up the implementations, and made Java one of the most proprietary languages in existence.
    In the end, all Sun managed to produce was the only thing they have ever been able to produce: bloated server side software.
    Good riddance, Sun, you won't be missed."

    Now that's just trolling. I'm very surprised that you get modded up when that kind of junk is in your post.

  • by u17 ( 1730558 ) on Saturday April 03, 2010 @08:33AM (#31714970)
    A couple of reasons why Java sucks:
    1. No proper support for namespaces (see my other comment [slashdot.org])
    2. No support for storing members in-place. If you want a Vector3d class, (i.e. an array of 3 doubles with an associated set of functions), and you want it to be fast, without referring to the members by pointers, you have to enumerate the members: {double x; double y; double z;}. If you wanted to have an array of doubles, you could only store a pointer to the array, and with an extra allocation: {double[] data = new double[3];}. For a Vector3d this is not so bad. But imagine the code for Matrix4x4d. This is a real shortcoming, if you look at Java3D, it actually uses a matrix with members defined like this: {double m00; double m01; double m02;... etc, 16 times}, instead of a double[][] array. If you do it this way then in functions you have to manually unroll loops, you can't just iterate over the values.
    3. No support for proper templates. The "generics" are only syntactic sugar. You can't have something like template <int N, int M> Matrix<N, M> for faster code. ArrayList<int> doesn't work. When you write "arraylist of integers", you expect an object with a tightly packed array if ints. But the only way to do this in Jave is to box them, and if you do, think of the waste: the array actually holds pointers and each Integer is separately, individually allocated. Additionally, each Integer not only holds an int, but also a mutex, which leads to the next problem.
    4. Every object has a mutex. WTF? Why endure such a huge waste, why increase the size of every object, when only very few of their mutexes are actually used?
    5. No operator overloading. OK, this can be abused like everthing else, but when you're working with a custom number class or with BigInteger, you don't want to clutter your code with method names that represent operators.
    6. No unsigned types. Of course there are conversion issues when mixing signed/unsigned in expressions. Normally you're fine with just signed, but what about, say, file formats that have uint64_t in them? Should you store them in BigIntegers?
    7. The standard library is a mess. They keep putting more and more stuff into it, never deprecating anything, and the result is pretty bad in many places. The library is over-engineered and in many places the implementation shines through the interface. They keep shooting themselves in the foot by having to maintain crap code like Swing for eternity. Coding in Swing is horrible when compared to, say, Gtk.
    8. Missing lambda functions/closures, 'nuff said
    9. No function pointers. This leads to one-function interfaces which only clutter your code whenever you use them.
    10. No typedefs. Especially when using generics, you don't want to type Map<String, List<Integer>> all the time, you want to type MyFancyMap instead.

    There are more things, these are just those that irk me most. I love the idea of applets, webstart, and portable bytecode, and I'd love to see Java succeed, but the language is so badly done I can't see this happening.

  • Who cares? (Score:3, Insightful)

    by kaffiene ( 38781 ) on Saturday April 03, 2010 @09:27AM (#31715226)

    Who cares if Java is cool or not? It's getting a lot of actual work done. In fact, there's a crap load more stuff getting done in Java than Ruby or 'The Cloud' or whatever is supposed to be cool these days. In the end, 'coolness' has absolutely no engineering benefits whatsoever.

    The fact that Java has lasted as long as it has and is as prevalent as it is now is testament to its ability to GetShitDone(tm). ...along with a lot of other useful languages which are useful regardless of whether some hack or slashdot group-think thinks it's trendy or not.

  • by MemoryDragon ( 544441 ) on Saturday April 03, 2010 @09:32AM (#31715262)

    Actually I personally think the bytecode level is in need for a serious overhaul, while it is not bad, it has served us well with gradual improvements it has some weak points.
    One is being addressed with J7, invokedynamic.
    But its weakest point still is a missing real class hotplugging system, they wanted to tackle it for J7 but could not because of hotspot.
    In the meanwhile we have to live with workarounds, like dynamic class recompilation in the runtime which introduces unwanted proxies, workarounds on classloader level by introducing throw away classloaders, various framework hooks etc...
    Just to get something out of the box which is needed by every developer!

  • by RAMMS+EIN ( 578166 ) on Saturday April 03, 2010 @10:04AM (#31715456) Homepage Journal

    Java is not and never has been groundbreaking and revolutionary. All the features people used to tout about Java back in the day were things that existed before it. A lot of smart people have poured a lot of effort in research related to Java, and the platform has grown stronger as a result, but even most of that seems to be just re-implementing existing ideas for Java.

    However, that by no means implies that Java isn't relevant. It has certainly taken the software world by storm, and, as far as I can see, Java is still going strong. People are taking Java courses left and right, either to learn it for the first time or to deepen their understanding. There are so many Java projects that it's hard to find something for those in our company who would prefer to use something else. Even with .NET being backed by a company whose products usually get adopted as a matter of course, I don't see nearly as much demand for .NET knowledge as for Java. Java irrelevant? It sure doesn't seem that way to me.

  • by SanityInAnarchy ( 655584 ) <ninja@slaphack.com> on Saturday April 03, 2010 @11:15AM (#31715890) Journal

    If Java get closures, what are you missing in Java?

    Others have listed other reasons, but let's see...

    It's statically typed. Understand, I don't mind strict typing (Ruby is strictly typed), I just get annoyed at having to declare variable types all the time.

    The generics is a mess -- as u17 says, it's a hack, and it's also incredibly difficult to understand, and requires a lot of heavy thinking and planning about types and interfaces. Compare to what you get for free from a language like Ruby.

    And most of that mess is in the name of backwards compatibility. Excuse me, but do we care that much about backwards compatibility? I suppose it made sense at the time, and I suppose I can't blame them, but it cripples the language today.

    Java's threading API sucks. Aside from the overhead u17 pointed out, it's still the same old threading API. Compare to something like Erlang.

    Reflection? Easy to use? You've obviously never used a language where it's actually easy to use, like, say, Ruby.

    Aside from closures, it's missing Lisp's macros, which take that idea to a whole other level.

    And the syntax is brittle -- no operator overloading, for one -- it'd be very difficult to correct any of what I've just said with a library. For example: In most sane languages, a == b has well-defined semantics of comparing the values of a and b. In Java, it compares the values for numerical primitives, and the references for everything else. Because of this, you end up with Object.equals(), which is much more verbose and cumbersome to use, and incurs boxing/unboxing overhead when used with primitives.

    Yet despite all that, Java does do some overloading of its own with Strings -- it overloads +, but not ==.

    So you can imagine, just about anything interesting I'd want to add to the language, which would be an internal DSL in smarter languages like Ruby and Lisp, would be a mess of verbose library calls in Java.

    Similar problems: You can use enumerations and integers for a switch statement, but you can't use strings. Because Java lacks any meaningful way to modify the primitive types, and isn't flexible enough to override case itself, you can't fix this to do what you'd expect, which is for it to use Object.equals(), or even a more verbose version that allows you to pass a Comparator.

    What else...

    No keyword arguments, and no sane way to add syntax for them. No built-in hash type, and thus no hash literals. Ruby doesn't have keyword arguments either, but its syntax is loose enough that you can use the builtin hashes to replace them.

    No symbols/atoms, either.

    No good interactive shells. Then again, do you really want an interactive shell in a language that's that friggin verbose?

    Hell, verbosity deserves a category of its own. Just look at Hello World in Java. Compare to Hello World in pretty much any other language.

    The built-in array type, aside from having an unnecessarily verbose literal, is also a fixed size. I suppose it's useful to have a fixed-size array, but 99% of the time, that's not what you want. Make ArrayList the default array type, have things accept Lists (or better yet, Collections) rather than arrays, and provide syntactic sugar for creating ArrayLists instead of Arrays, then tuck the actual Array type deep in some system library so programmers don't have to bother with it again... but like so many of these problems, you can't actually solve it that way without breaking the language.

    Then again, u17 points out a potential problem with that -- ArrayLists, like all Collections, must store objects (and thus references) rather than the actual values. That means ArrayList<Integer> is necessarily slower and bloatier than int[] (by much more than it should be), and there's again nothing you can do about it. Contrast to Ruby -- you'd expect a construct like [1, 2, "three", 4] to be even worse, but it's actually better than an ArrayList of [1,2,3,4] in Java -- I believe it uses a

  • by TheTurtlesMoves ( 1442727 ) on Saturday April 03, 2010 @01:30PM (#31716912)
    Despite what a lot of people think. The games market on PC/servers etc is pretty small. Sun was wise not to push it really. For games you would need Xbox..etc to support a jvm for it to really make sense. And that will not happen for a number of reasons.

    However there is lwjgl (opengl/openal binding for java), and most common higher level languages can run on top of a JVM these days. (Jython, JScheme, Kawa, lua, ....)
  • by arjan_t ( 1655161 ) on Saturday April 03, 2010 @02:41PM (#31717604)

    Agreed. If you have the second most popular [alexa.com] website [facebook.com] in the world serving over 400 billion dynamically generated page views per month from a backend of over 30,000 servers [datacenterknowledge.com], you absolutely do not want to rely on PHP [facebook.com] to serve those pages for you.

    This is the same old argument over and over again. Facebook and a couple of other large sites building on PHP don't work the way they do because of PHP, but despite being build on PHP. There's a lot of engineering effort put into those sites, with a not unimportant share of that devoted to things having nothing to do with what PHP handles. With such engineering effort being poured in, Facebook could have been developed in assembly or COBOL, neither of which would have been prove that they are inherently suited for such environments.

    Also, don't forget that Facebook is migrating to their C++ based hiphop toolchain and have build their own internal framework, a framework that resembles the Java EE stack in a couple of ways and is NOT available to the general public. The kind of PHP that Facebook does is NOT your typical 'phpfreakz' kind of PHP that is most commonly practiced.

    I've also personally talked to the lead developer of Hyves -- the Dutch version of Facebook with some 12 million users -- and he said 'PHP is a little shit language' (PHP is een kut taaltje). I understand that out of context this may not mean much, but he did said that. Additionally, Hyves, Tweakers (a Dutch news site) and a couple of other companies I know that use PHP professionally, some of which I know people working there, almost all seem to agree on that it's very difficult to find really skilled PHP programmers. There is an abundance of programmers that are of the Joe's Burgers variety and have hacked on some PHP script, but that's a completely different category really and not at all what a professional organization is looking for.

    So, even though a select few companies are using PHP very professionally, the norm in the PHP market is that it's used by people who barely know the difference between a while loop and an if statement, let alone that they know anything at all about data structures, algorithms, or efficiently structuring their code.

    Does PHP offers anything like that? Does the standard PHP library already comes with an MVC framework? Is unicode already natively supported? Is there any name spacing support? Is there ..

    Those aren't real problems unless they are actively preventing you from developing your website, which is probably only the case about 2% of the time. The other 98% of the time you never need consider them.

    And that's precisely where it all goes wrong. We don't need no education anymore, we don't need no knowledge about CS theory, we don't need no transactions, we don't need no unicode, we don't need no MVC... PHP is so easy... a baby can now program any web site. .... Until it all comes falling down.

    It's the typical Visual Basic kind of mindset. A mindset about which you can read everyday on thedailywtf. Sure, idiots can produce crap in any language, but for some reason both PHP and VB seem to produce a disproportionate amount of that.

    You sound like you did very well in school, and maybe even graduated at the top of you CS class. You also sound like you may have little real world experience.

    I did okay in school and CS went well too, thank you. I'm currently the lead developer of a 12 person strong development team I've worked with for about 7 years. We're building an enterprise application consisting of several 100k LOC and every day have to deal with an infuriating amo

  • by arjan_t ( 1655161 ) on Saturday April 03, 2010 @07:19PM (#31719560)

    Right, the "Java is needed for advanced stuff" argument. Fact: If your web application is "too advanced for PHP" you are doing it wrong and should simplify your design.

    For the love of god, wake up man. Not every web application is Joe's Burgers. Not every web application is essentially a web site with some dynamics. Some web applications are simply enterprise applications where the front-end happens to be rendered via HTML accessible via a web browser. They do heavy computations, processing, reporting, run simulations and yes, they DO NEED concurrency, and yes they DO NEED transactions.

    If a web application is "too advanced for PHP" then mark my words "it's too advanced for PHP". The model of fetching parameters from the request at the top of the page, feed them into an SQL query, and iterate over the result set while spitting out some HTML is fine for those 4 page web sites, and maybe even the 20 page ones, but it does not fit every possible application out there.

    Are you the same kind of person who walks up to a civil engineer designing that bridge over a large river telling him al his or her schooling and techniques are wrong, and the design needs to be simplified, and that it all can be done in an afternoon instead of 3 years, since that 16 year old kid just threw an old shelf over a ditch and he had a bridge?

    And I'm not sure how many times I have to explain this, but there is nothing complicated about USING some of this 'advanced' stuff. Yes, it's quite complicated to implement this under the hood, but guess what, the guys who bring us Java EE implementations have already figured out the hard stuff. I can simply use it, and with 'simply' I really mean 'simply.

    But okay, Mr Einstein, let me play along a little. Tell me how 'simplifying' my design magically gives me transactional semantics for non trivial operations.

    Any web app will be IO bound anyway.

    Good one. Take an app, ANY app. Slap a web interface on top of it, and any part of the app that was CPU bound suddenly becomes IO bound. Really?

    Dependency injection is a kludge you only need because Java is static and not dynamic.

    Dependency injection is about separation of concerns mister, and has very little to nothing to do with typing.

    Transactions should be handled by the framework

    Which is precisely how it is done in Java, via the very stable and mature Java Transaction API, that one can either use programmatically or declaratively via enterprise bean. Your point again?

    the transaction decorators always been misused by overzealous developers creating huge transactions slowing the application down to a crawl.

    Maybe you're referring to some home grown 'transaction decorator' as may typically attempted to be made in PHP by programmers who have a basic understanding of stuff, yet overestimate their abilities and think they can just build transparent transactions themselves. I mean, what could possible go wrong, right? If you're referring to the default declarative transaction support in Java EE, then really this is rarely a problem. If you don't know your stuff and simply do too much work in a transactional method, then you're simply doing too much work. That would have been a problem regardless of using a transactional method or not. Like so many other things, it's a professional tool that's utterly simple to use, but you do have to know what you're doing. Just as you should not blindly make each and every method asynchronous or each and every method synchronized etc.

    It proves that you are one of those Java only developers too stupid to learn new languages.

    I think it actually proves you are someone who jumps a little too fast to a conclusion. For the record, I started programming when I was 6 in C64 BASIC, quickly moved on to assembly, then C on an Amiga and later Apple, C++ on an SGI

An authority is a person who can tell you more about something than you really care to know.

Working...