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?


39 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
    1. Re:Not dead by Spamalope · · Score: 3, Informative

      You forgot the security problems. What a steaming pile. My experience is you can half the frequency of business desktop virus problems by uninstalling JVM or at least blocking the ability of anything web or email based touching it. It's a disaster anywhere a regular user can click on something that runs it. Sad since the design model could have been secure.

    2. Re:Not dead by phantomfive · · Score: 3, Insightful

      It's dead on the desktop

      In fairness, almost everything is dead on the desktop at this point.

      --
      "First they came for the slanderers and i said nothing."
    3. Re:Not dead by ctilsie242 · · Score: 3, Insightful

      The ironic thing is that the Java runtime was one of the few major Mac attack vectors until Apple killed it.

      Java is definitely useful, but the problem is that it has been ignored, and its structure not fundamentally updated for decades to handle modern day attacks.

      Had Java kept up with the times, there would have been no need for Flash or HTML5. However, because of the neglect, it just got surpassed by newer technologies.

  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.

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

      > Many talented folks who jumped ship from Python are now Gophers.

      You might get that impression if you read some enthusiastic bloggers. But the stats don't seem to reflect that at all.

      http://www.modulecounts.com/

      Go is adding an average of 5 modules per day. That is quite low. Compare that to 118 for Python and 128 for Java. Even Rust is growing faster.

      Much of Python's recent resurgence has been in "data science". Go community barely even attempts to solve anything here.
      It's appeal to Python programmers is in a rather narrow class of problems.
      Static binary? Against Java 11 with the upcoming GraalVM, I don't see much in favor of Go.

  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:There are quite a few Java games on Steam by The+MAZZTer · · Score: 3

    .NET Core allows you to bundle the runtime with your application so that limitation no longer exists. With .NET Core 3, .NET Core will be ready to replace .NET Framework so anyone should be able to take advantage of that capability if they want to.

    Oh, and .NET Framework is built into the OS... so you usually do not need to install a runtime anyway except for 2.x/3.x which are disabled by default in modern Windows.

  22. 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.'"
  23. Re:Security is a lot of why it's dying by Anonymous Coward · · Score: 3

    Node may be okay for small services, but if you are working on anything more than "small" then you want something like Java or C#.

    Java is great these days for that kind of thing. Lots of documentation, tons of useful libraries, the old saying of "write once debug everywhere" doesn't seem to hold anymore. It just works, it works well, and it's fast. Not like the old days.

    Node fanboys baffle me. We spent decades explaining the value of strict types, for example, and now they want to throw it all out the window... Yes, you CAN write complex software with JavaScript but dear god why the hell would you want to?

  24. COBOL is well designed by aberglas · · Score: 3

    In 1962 it was revolutionary. It could process a bank's load of transactions on a machine with less than 64K of memory. And fast. No garbage collections. No unnecessary data transforms, just suck the data in, map it to a record, process it, and spit it out.

    Data section that properly described structures. And separate from the procedure section so that a compiler could run in two separate overlays, important on small machines.

    The code was pretty easy to read. No nasty pointer arithmetic.

    Then came Object Cobol...

  25. What seems to be dead is C/C++ by moronikos · · Score: 3, Interesting

    If I look at job openings in my market, Tulsa, there are as many Java jobs as C# and Python put together. Only a handful of C/C++ jobs--I say this as a 25+ year C++ developer. I would say that if demand means anything, Java is far from dead.

  26. Re:Seems fine to me by Sesostris+III · · Score: 3

    My understanding is that version 11 Oracle OpenJDK will have exactly the same patches applied as Oracle JDK (LTS), until version 12 comes out. Then the patches Oracle applies to Oracle JDK version 11 will not be applied to Oracle OpenJDK version 11. Oracle OpenJDK users will be expected to move to version 12. (This in turn will receive official Oracle patches until version 13 comes out, and so on. New versions are expected to come out every six months from now on.)

    However, I believe some other JDK suppliers, like AdoptOpenJDK, will provide provide a patched version of version 11 even after version 12 is out.

    --
    You never know what is enough unless you know what is more than enough. - Blake
  27. Re: C# Killed Java by rl117 · · Score: 3, Interesting

    At a job interview a few weeks back (embedded), they showed me another team's product--cross platform app development for ios/android/pc/mac and it was all C# with Xamarin. If it's sufficiently cross-platform for companies to use for their products, it's probably not that limited.

  28. 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
  29. A troll post by cjonslashdot · · Score: 3

    - and a really idiotic one.

    I am a DevOps consultant and visit lots of places, and Java is the number one language for back end services. It is almost universal. Other languages are used for specialized things, such as Python for machine learning, because the ML community has embraced Python. For front end, Javascript is the most popular, but that will likely change as alternatives grow in popularity (e.g., Kotlin).

    Also, Amazon has announced support for Java, as has IBM/Red Hat, so we are not dependent on Oracle.

    The JVM ecosystem is enormously successful and robust. Languages like Scala and many others rely on it - not just Java.

    I am not advocating for Java - just stating the reality that I see in my work. I don't much like any of the languages that are in use today.