Funny story, friend and I were just talking last night about how Java 8 is still used everywhere.

  • cool@lemmings.world
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    34
    ·
    2 days ago

    After using Rust, I struggle to find a use-case for Java.

    We have Python for the bad programmers.

    • Baldur Nil@programming.dev
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      10 hours ago

      This is a troll’s or a teenager’s line of thinking.

      Funnily enough, back in college I had a friend who I’d describe as a genius in computer science and programming. I was always so jealous how he was so knowledgeable about everything teachers talked about to the point of correcting them sometimes (and hurting the ego of some of them, which isn’t very smart).

      He was like a C++ nuts to the point of having some of his code on the Boost library (which was impressive for a 20yo), but when Rust started getting popular back then, he really got into it and quickly became an “evangelist”. For some years, everything was about Rust, if you stopped to talk to him.

      I met him year later and asked if he was still working with Rust, and he said after using it for enough different use-cases, he actually started to dislike it and pointed out a lot of problems and flaws that I wouldn’t possibly remember. I think he also said the community was very toxic and was taking the language to a direction he didn’t like. I suspect nowadays he is just another fella using Lua and C++ for his personal projects.

    • jecxjo@midwest.social
      link
      fedilink
      English
      arrow-up
      11
      ·
      1 day ago

      As a programming language polyglot, currently using Java for backend services, one of the biggest reasons to use Java is due to the ecosystem. Hardened libraries for web frameworks and everything else under the sun means you have confidence in the language. You have millions of instances running in the wild so detection of issues are found and resolved quickly, corporations backing security audits and a lot of funding to make really good libraries.

      I hate the language itself and would never choose it as a language for a hobby project, but i completely understand why Java exists and thrives.

        • jecxjo@midwest.social
          link
          fedilink
          English
          arrow-up
          2
          ·
          20 hours ago

          I tend to find languages that are best of feature. If i need a fault tolerant, quick to continue service I’d probably pick Erlang or Elixir. If i need meta programming I’m going with Racket or Haskell. If i need a quick and dirty graphical tool for internal use only I’m writing it in tcl/tk or python/tk. If it’s system code I’m using C and Assembly.

          The problem i have with Java is outside of Android development I never have the use case i have at my corporate job. There we need a widely know language (so we can hire) that is used in a lot of web services (highly tested and bugs caught early and very visible) that has a diverse ecosystem (less custom built code). None of those attributes are needed in my hobby work.

      • cool@lemmings.world
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        5
        ·
        1 day ago

        Hardened libraries

        Like log4j?

        Ecosystems matter for sure, but any java “killer library” should be usable by other programming languages.

        • jecxjo@midwest.social
          link
          fedilink
          English
          arrow-up
          4
          ·
          20 hours ago

          What language doesn’t have its worts? My point is that Java is the defacto corporate service language so if that’s what you’re doing chances are the libraries you’re using are also being used at FAANG or Fortune 500 companies who will spend the money to vet libraries, bug bounties and pay developers to escalate issues. If you pick a language that has no substantial use in your given field you won’t get the same visibility.