Slashdot Mirror


Ask Slashdot: How Dead Is Java? (jaxenter.com)

This week HackerRank reported Java is now only the second most popular programming language, finally dropping behind JavaScript in the year 2018.

Now long-time Slashdot reader shanen asks about the rumors that Java is dead -- or is it?

Can you convince me that Java isn't as dead as it seems? It's just playing dead and will spring to life?
This week one Java news site argued that Java-based Minecraft has in fact "spawned a new generation of Java developers," citing an interview with Red Hat's JBoss Middleware CTO. (And he adds that "It's still the dominant programming language in the enterprise, so whether you're building enterprise clients, services or something in between, Java likely features in there somewhere.") Yet the original submission drew some interesting comments:
  • "The licensing scheme for Java kills it..."
  • "Java programs still are 'the alien on your desktop'. They suck in many ways. Users have learned to avoid them and install 'real programs' instead..."

But what do Slashdot's readers think? Leave your own answers in the comments.

How dead is Java?


28 of 519 comments (clear)

  1. Not as dead as ... by Hognoxious · · Score: 4, Funny

    Not as dead as this laaaaarge portion of popcorn I'm making.

    [sits back]

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  2. Part of me hopes it is dead by DaMattster · · Score: 4, Insightful

    So that Oracle can get butt fucked by their decision to be so consumer unfriendly when it comes to their policies on Java.

    1. Re:Part of me hopes it is dead by Bert64 · · Score: 4, Insightful

      Oracle are consumer-unfriendly across the board, not just with java... They are very good at killing off any goodwill and community support they bought from sun.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    2. Re:Part of me hopes it is dead by TheRaven64 · · Score: 4, Interesting

      It is the PL/1 of the web era.

      I disagree, it's the COBOL of the web era. It's hugely popular, very verbose, not particularly fast (it can be, but easiest ways to write code in Java don't tend to perform well) and the go-to choice for business logic. And, no matter how much you may dislike Java, be thankful for every organisation it got to move off COBOL...

      --
      I am TheRaven on Soylent News
  3. Has Netcraft Confirmed It? by alvinrod · · Score: 4, Funny

    Has Netcraft confirmed it?

  4. Not dead by Rosco+P.+Coltrane · · Score: 5, Insightful

    It's alive and well server-side. It's dead on the desktop because it's dreadful, slow, memory-hungry and extremely annoying each time Oracle forcibly imposes things that break legacy applications.

    --
    "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
  5. Re: C# Killed Java by Anonymous Coward · · Score: 5, Informative

    No. Oracle killed Java.

  6. What? by CaptainJeff · · Score: 5, Insightful

    It's dead .. in that it's now the NUMBER TWO MOST POPULAR LANGUAGE IN THE WORLD? Wow. Perhaps my understanding of the meaning of "dead" is misinformed. The commentary here seems to center around Java as a language for desktop applications or similar. It's not. It hasn't been for decades. Java is used mostly to make enterprise-class server-side software. It's used extensively in the financial services sector. Most of the code for any FI's web applications you interact with is Java. And so is all of the backend code. And it's not going anywhere in that space.

    1. Re: What? by astrofurter · · Score: 5, Interesting

      Python isn't dead, but it was gravely wounded by the Python 2/3 debacle. (Python 3 is backward incompatible with Python 2, without actually fixing any of the big problems with Python 2.).

      A lot of people still use Python because of the huge library ecosystem. However not many new projects are being started in Python today. The quality of the community has also dropped precipitously as good developers jumped ship and the code monkeys piled in.

      Golang, otoh, is alive and doing very well. Docker, Kubernetes, Terraform, Etcd, and Prometheus are a few of the high profile FOSS projects written in Go. Many talented folks who jumped ship from Python are now Gophers.

    2. Re: What? by weilawei · · Score: 4, Insightful

      Definitely not dead or gravely wounded. Python may not be the new hotness, but it's absolutely a go-to language for new code for me. I have been, in point of fact, writing new Python code for my employer recently. It's still the tool I reach for when I need something working Now. I don't spend time writing code for small reasons either--if it isn't making us significantly more money than it costs to build, I don't build it.

      Python makes us money, and that's the bottom line.

      Now, I'm no picky eater. I've been coding 26 years, and I'll use the correct tool for the job any time I can, rather than "work like an asshole" [favorite saying of an old boss]. For me, that's often Python, but I won't hesistate to drop down to C/C++ or assembler if that's the appropriate tool--or work with Java or C# or Objective-C or Clojure or Ruby or Javascript or Erlang or Haskell or HTML or CSS (and once upon a time, BASIC, Pascal, et al...).

      Why are people so stuck on one language or one way of thinking? I was listening to a software engineering podcast recently, and this guy with 8 years of experience is saying he thinks he knows it all now. Well, sorry to break it to you, 8 Year Master, but after 26+ years of this, I've realized that I will never learn it all (even though I keep trying).

      Pay your bills first, keep your deadlines and promises, go home to your loved ones, and do things that expand your horizons.

      Java, Python, C, Go, Rust: these things aren't important in the same way.

    3. Re: What? by jma05 · · Score: 4, Insightful

      > Python isn't dead, but it was gravely wounded by the Python 2/3 debacle.

      That is absurd. Python is more popular than ever. Take a look at historical ranks.
      Python transition was planned for a long time (Python 3K) and was extensively discussed. The transition was expected to take a long time when introduced and was managed as such. Its community managed breaking changes better than most languages.

      You might have had that case with Perl 5/6. It lost all its clout in the transition.

      Both Java and Python have grown tremendously. It was just that no one saw Javascript to have the resurgence it did in the meantime.

  7. That's a little bit like asking "is Linux dead?" by andy16666 · · Score: 5, Insightful

    That's a little bit like asking "is Linux dead?", simply because it's not a popular desktop OS. Just because the majority of users don't realize they're interacting with something, doesn't mean it's not widely used. In the case of Java, the Android platform is a major client-facing deployment. However, the majority of enterprise and webservices are still Java/Java EE and that application is growing, driven by the move to the cloud and the popularity of microservice architecture in new enterprise installations.

    JavaScript obviously is a bit deal too, given the increasing importance of heavy client-side web-apps. But most of those webapps have Java on the back end.

  8. Re:Oracle's Whims by Arkham · · Score: 4, Interesting

    That seems to be the only "dead" part of Java, the idea that you can actually use it without Oracle screwing you over.

    We've moved to OpenJDK for all production systems, and that sidesteps Oracle entirely.

    --
    - Vincit qui patitur.
  9. Re:Security is a lot of why it's dying by phantomfive · · Score: 5, Interesting

    Between it's different versions, the security problems this brings, etc., it's dying fast in the professional environment

    What security problems come with Java?

    I don't see a lot of JSP servers, either

    JSP is legacy now, but a lot of companies are using Java on the backend in a web services model. The frontend can be in Angular, or React, or whatever. It's a good choice when you want stable, cheap developers.

    As my own professional opinion, I would say that Java is better for writing backend APIs than Node/Express.

    --
    "First they came for the slanderers and i said nothing."
  10. Not until that next big eruption by macraig · · Score: 4, Funny

    How dead is Java?

    It's still populated by 141 million people and it's been a while since the last gigantic eruption, so it ain't dead at all.

    1. Re: Not until that next big eruption by cormandy · · Score: 4, Funny

      Why the greatest fear of the inhabitants of Java is the next eruption of Mount Ellison, a volcano once thought to be extinct but known to occasionally to roar back to life. The Javanese being a superstious folk believe that the only way to placate this unpredictable volcano is to give the god Oracle - known to possess Mount Ellison, or is it the other way around? - cash offerings through the purchase of annual software maintenance contracts. These excessive and unreasonably priced contracts are believed keep the god Oracle and its volcano Ellison at bay sparing the Javanese from being burned and destroyed by another spillage of hot lava from what was once a nice mountain with a solid database product somewhere back in in the 1980s or early 1990s.

  11. Re:Oracle's Whims by phantomfive · · Score: 4, Insightful

    The thing I've recently heard about Java is that you are subject to Oracle's random whims. Right now, you can get and use the runtime environment and development environment for free, but you don't know if they will randomly decide to charge you a ton of money to use it and send an army of lawyers after you.

    Use OpenJDK. Problem solved.

    --
    "First they came for the slanderers and i said nothing."
  12. Quote is always the same... by GhostBond · · Score: 5, Funny

    [quote]“There are only two kinds of languages: the ones people complain about and the ones nobody uses.” - Bjarne Stroustrup[/quote]

  13. Re:How many times do we need to have this conversa by p4nther2004 · · Score: 4, Insightful

    I have to second this option. Java isn't "dying"...it's 2020's Cobol.

    It'll be around for at least the next 10-20 years. (There's that much code based of Java out there)

    But Java has been dying for years. Applets died a long time ago. JSP and Servlets are pretty much dead in favor of using a JavaScript front-end and a proper application back-end. JDBC will continue to hold java for a number of years...but watch as other languages start taking it's place. Hell, Docker killed Java's last remaining strength - write once, run anywhere. With Docker, everywhere became X86-64bit.

    I don't expect C# to do well either.

  14. Re:Seems fine to me by slack_justyb · · Score: 5, Informative

    Not sure why there's comments of licensing issues... it's a free download from Oracle's website

    Well the issue is complex if you stick to Oracle provided binaries, the TL;DR simple answer is to move on to OpenJDK and be done with it.

    Java SE 8 which was the last version you could "freely" use in a commercial product, if you go to Oracle's website at the moment, you'll get this message.

    Oracle will not post further updates of Java SE 8 to its public download sites for commercial use after January 2019. Customers who need continued access to critical bug fixes and security fixes as well as general maintenance for Java SE 8 or previous versions can get long term support through Oracle Java SE Subscription or Oracle Java SE Desktop Subscription. For more information, and details on how to receive longer term support for Oracle JDK 8, please see the Oracle Java SE Support Roadmap.

    Going forward you now have two options. Oracle OpenJDK which is an open source JDK that you may use as you see fit, the end. Oracle JDK, which starting at version 11 is Oracle OpenJDK plus some Oracle enhancements. You may freely download Oracle JDK and use it for development and testing, however, Oracle JDK cannot be used for production or commercial use without being anally raped by Oracle, so yeah you cannot download Oracle JDK and just use it without being in some degree of violation of Larry Ellison's 37th yacht fund somewhere in the fine print of that download. Additionally, Oracle has gotten a little blood thirsty lately so use Oracle JDK without a license at your own damn risk.

    So you might ask, so if we have OpenJDK, who would want Oracle JDK? The important thing to remember that OpenJDK provided by Oracle is Oracle's build of OpenJDK, which may or may not have all the most recent patches. Basically, Oracle's OpenJDK is on par patch wise the day a new version hits with Oracle JDK. So when Java 11 hit, that day Oracle JDK and Oracle OpenJDK were functionally the same. However any patches that Oracle JDK has received since that day, Oracle OpenJDK hasn't or might have, it's basically "meh we patch it when we patch it." However, Oracle isn't the only game in the OpenJDK build world.

    Here's a post about all the different folks building OpenJDK. I suggest OpenJDK from AdpotOpenJDK or if you are using Linux, BSD, Unix, etc Just use the OpenJDK that your vendor provides, they usually keep it reasonably up to date. What the change does do, is make everyone change their old habit of just going to Oracle's site, download their JDK, and go from there. Instead, just go grab a non-Oracle build, beside we shouldn't be frequenting Oracle anyway.

    Outside of that, Java is still Java and unsurprisingly Oracle is still shooting themselves in the foot. The most recent move with Java 9, 10, and 11 only further cements folks' decisions to leave Oracle as their provider of a Java implementation.

  15. On the desktop maybe, but everywhere else... by cloud.pt · · Score: 4, Insightful

    Java has an image problem, not due to the fact its desktop frameworks look ugly but also that it looks ancient as object-oriented programming, licensing and performance trends go. It has a public relations problem, but for those that are in the industry, its pretty obvious its life-support system is alive and well.

    If you look outside the desktop, Java is fine. As previously stated, Java is core to business players - it serves a central purpose in many middleware, server and database-related solutions. Then there's the fact that Oracle is its owner and major sponsor, and RedHat closely behind it both maintain its momentum, while its essential role in the world's largest mobile platform accelerates it. Some will say even in Android Java is faltering, but Kotlin avid programmers know full well that, like Kobol and other tech in critical applications, Java will take decades to be detached from Android. The same can be side about the businesses solutions where it is central.

    So while Java's core language development might stall in favor of supporting cooler, "du jour" paradigms that act as stepping stones for new players to have something fresh to stand upon, the JVM and its many clone runtimes are here to stay. And while languages that code for them keep basing themselves off of Java for bytecode endgame, so is Java.

  16. C# has unsigned bytes by Miamicanes · · Score: 5, Interesting

    Emotionally, Java died for me the day I discovered that C# has real, honest to god unsigned bytes. You have to be masochistic beyond words and the world's ULTIMATE glutton for punishment to attempt programming OpenGL ES using Java, because GLES does EVERYTHING by juggling around byte arrays, and dealing with raw unsigned bytes in Java is pure misery.

    It's no secret that 'unsigned bytes' are one of (if not THE) most-requested features in the history of Java. And the one that evokes the angriest ideological debates, often getting it called 'syntactic sugar' (as if providing a language construct to avoid having to do things known to create STAGGERING numbers of insidious code errors due to typos is a morally-decadent thing).

    Personally, I love how some people get all righteous about calling unsigned bytes 'syntactic sugar', then proceed to defend dumping six pounds of 'syntactic salt' into Java in the form of the way Java now handles lambda expressions.

    Lambda expressions per se aren't necessarily a bad thing. Pretty much every major language now has them. But the specific WAY they were implemented in Java is an abomination. Put bluntly, they're basically "human-compiled" object code PRETENDING TO BE actual source code.

    For anyone who doesn't understand what I just said, here's an alternate explanation. Basically, when the Java compiler sees a Lambda expression, it recursively searches through the list of interfaces known to it until it finds an interface that defines a single method whose arguments match the types of those used by the lambda. It takes the compiler (or IDE) a fraction of a second to do a brute-force search through the API to find a match. Humans, unfortunately, aren't quite so agile at things like that, which is why we invented source code in the first place 50 years ago.

    Behind the scenes, the compiler is just automatically assembling an anonymous class that implements the interface. And if you had the sourcecode TO that anonymous class in front of you, making sense of it would be easy. The problem is, Java's lambda syntax strips away most of the contextual information that the anonymous class would provide you with, so you're left trying to make sense of a cryptic glob of punctuation characters that makes obfuscated Perl look like Ada or Visual Basic by comparison.

    The end result is that if I write a nontrivial program using Java lambda expressions, print out a method, and hand it to you, there's a VERY high likelihood that you'll scratch your head and be completely unable to make sense out of it without at least looking back at the includes near the top, and probably a few minutes with Google. In contrast, if those lambdas had been printed in the source AS anonymous classes implementing the same interface, you'd probably be able to effortlessly make sense of them without a second thought. And that's what's fundamentally wrong with Java Lambda Expressions, in a nutshell. They optimize the wrong problem, and result in sourcecode that's human-unreadable.

  17. Re: C# Killed Java by Richard_at_work · · Score: 4, Interesting

    I'm sorry, are you unaware of .Net Core?

    Available on Windows, Linux and Mac.

    Available on x86 and ARM.

    Free to use.

    Free to change.

    Get and fork it top to bottom on GitHub with a open source standard permissive license.

    Or are you still stuck in the days of "hate MS at any cost"?

    I work for a company that uses .Net Core for all its software development. We dev on Macs, deploy on Linux in Docker containers, and pay Microsoft *nothing*. We are the largest travel company in the Southern Hemisphere, and we have partnerships with the largest RV manufacturers in the world.

    But don't mind us, we are just proof that your beliefs are out of date.

  18. Sadly, Lucene will prevent the death of Java ... by joe_n_bloe · · Score: 4, Interesting

    Somehow, Java became screaming fast and/or Lucene manages to avoid all the parts of Java that are screaming slow. Therefore Elasticsearch. Therefore that's one very good reason that Java won't go anywhere right away.

    Also, despite the existence of obviously saner alternatives like REST, many enterprises use Java as a standard for service bindings. Long ago lost to the sands of time is the original intent that XML was intended to be human-readable (in the sense of not needing binary decoding) but not human-written.

    I wrote a lot of semi-interesting Java in the past, and I suppose there was a time when I liked it, but I can't see that time coming again. Java is annoying. It's that grumpy, square, didactic, great uncle whose clothes haven't been updated since the 70s and whose house smells musty and who tells you about how he took no shortcuts in his life and you can't either.

    Python is annoyingly gimpy (what sort of interpreted language deliberately doesn't have closures and first class functions?) but at least you can write a command-line tool in it, and maybe some day it'll be fast too. I guess dumbed down is better than a smelly old uncle.

    Maybe I'll get to write some Rust soon.

  19. Re:how dead? by Required+Snark · · Score: 4, Funny

    If you poke something, it must be BASIC.

    --
    Why is Snark Required?
  20. Re: C# Killed Java by murdocj · · Score: 4, Insightful

    Every platform is eventually a dead end platform.

  21. Re:Microsoft could help by drinkypoo · · Score: 4, Informative

    The .NET Framework is kept constantly up to date by Windows Update. It might be nice if Java was a Windows "Feature"

    Perhaps you have forgotten history. Microsoft had a JVM. Then they did weird stuff to it which was not quite compatible with other JVMs, and they still wanted to call it "Java". They got sued and lost, and they could no longer play their Embrace-Extend-Extinguish game with Java, so they invented .NET to compete with Java instead. Sun went down the toilet bowl, and Oracle hasn't really even tried to keep Java current, so now .NET beats Java like a piece of meat.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  22. Re: C# Killed Java by TheRaven64 · · Score: 4, Informative

    Literally everything that you said in that post is wrong. In terms of being very similar to Java, here are a few differences:

    • C# has signed and unsigned primitive types (Java has only signed)
    • C# has pass-by-value struct types.
    • C# has asynchronous dispatch / rendezvous in the language.
    • C# has type-preserving generics (Java's are type erasing).
    • C# has type-safe callback functions ('delegates'), Java requires you to use anonymous classes for the same functionality (both now use lambdas where possible).
    • Java methods are always virtual, C# methods are non-virtual unless otherwise specified.

    As to the var thing, this is simple type inference. It is roughly analogous to C++11's auto. It's nothing to do with Visual Basic, it's more important for things like LINQ, where you end up with complex types that depend on the value of an expression and you don't want to force the programmer to write them explicitly. In these cases, var lets you bind variables to values of anonymous types. The code is still strongly statically typed.

    --
    I am TheRaven on Soylent News