• nasi_goreng@lemmy.zip
    link
    fedilink
    English
    arrow-up
    51
    ·
    6 days ago

    Lol, as Javanese, It’s funny that Javanese ethnic name -> Javanese coffee -> Javanese programming language.

    People still keep thinking that I was a programmer or making a typo of Japanese everytime I mention I speak Javanese.

  • wolf@lemmy.zip
    link
    fedilink
    English
    arrow-up
    44
    arrow-down
    3
    ·
    7 days ago

    Java is IMHO one of the most underrated platforms outside of enterprise environments.

    Most people also forget, that Java is not only a language, but also a platform, an ecosystem and active research is applied to many parts of Java.

    Concerning Oracle: OpenJDK is actively supported by very different but big and capable companies (IBM, Amazon, Eclipse Foundation…). The quality of the language, libraries and documentation needs people which are payed to work on this, full time.

    Bring to this the free IDEs one can get for Java - Eclipse and Netbeans are a little bit old school, but offer everything to build/debug and develop complex software.

    Java is not my favorite programming language, but when I want to write interesting software and ensure it will be running for the next decade w/o significant changes, Java is really hard to beat.

    Of course, in hindsight we know how to do a lot of things better as they were done in Java. Still, what other open source Language/Platform/documentation with the backing of capable companies and really independent and interoperable builds are out there?

    One last note to all people which were damaged by Java in university or school: Usually the teachers/professors/lecturers have no real world experience of software development besides the usually university projects, and for the usual university projects which basically means getting small to midsize projects to run Java is total overkill.

    Don’t confuse this with real world software projects in the industry, which are mission critical and need to work a decade from now on. Java was always a bread and butter language, but one which learned from other languages and even the verbosity makes sense, once one dives into code written a few years back by another person.

    • magic_lobster_party@fedia.io
      link
      fedilink
      arrow-up
      9
      ·
      6 days ago

      Usually the teachers/professors/lecturers have no real world experience of software development besides the usually university projects

      Adding to this: university projects are built on a relatively short timeframe compared to many industry projects. The growing pains that typically occur after a few years of continuous development is unlikely with the small scale of university projects.

      I wouldn’t go to a university professor for advice on how to build a system that will last a decade of development.

    • KeenFlame@feddit.nu
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 days ago

      My 2 cents is that it would have flourished a lot longer if eclipse wasn’t stretched so thin like using a very thick amorphous log that is somehow still brittle? And ugly? As a bookmark.

  • neidu3@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    21
    ·
    edit-2
    7 days ago

    I liked Java a lot more before Oracle acquired Sun. I’ve used Oracle databases enough to hate Oracle with the passion of a supernova.

    • deathmetal27@lemmy.world
      link
      fedilink
      English
      arrow-up
      17
      ·
      6 days ago

      I think I need to clear a common misconception people seem to have here: Oracle has very little to do with Java.

      At most, Oracle has the following connection to Java:

      • Own the trademark
      • Have a build of the JDK/JRE with commercial support.

      However, Java as a language’s baseline comes from OpenJDK, an open source (GPL 2.0) community project which is upstream to several builds including Oracle’s JVM. It follows a “bazaar” like development model similar to the Linux kernel where you can see their mailing lists and track what’s being worked on. Anyone can contribute and the code is on Github: https://github.com/openjdk/jdk.

      That being said, you don’t even need to use Oracle’s JDK (it sucks IMO) and use one of the community provided builds of OpenJDK. OpenJDK builds are provided by Eclipse, Amazon, Azul, Bellsoft and even Microsoft provides JDK/JRE builds. These are free of cost and have longer term support than Oracle’s offering.

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        6 days ago

        Yep, thanks to the AdoptOpenJDK project which really helped make OpenJDK builds available for all platforms. (It is now called Eclipse Temurin and Adoptium.)

    • sik0fewl@lemmy.ca
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      4
      ·
      7 days ago

      Java was stagnating under Sun, unfortunately. I hate to say it, but Oracle probably saved Java.

  • who@feddit.org
    link
    fedilink
    English
    arrow-up
    21
    ·
    edit-2
    7 days ago

    I attribute Java’s uptake to a large amount of marketing and support, which led to a massive ecosystem. Even a mediocre language like this one can find success when propped up like that.

    • magic_lobster_party@fedia.io
      link
      fedilink
      arrow-up
      20
      arrow-down
      1
      ·
      7 days ago

      OOP was hype during the 90s. Schools adapted their curriculum to this trend. So they needed a programming language for this, and Java became the choice. C++ is too tricky as a first language.

      The result is that a lot of people knew Java, which means it’s a good choice of language if you want to recruit programmers.

      I believe most of Java’s success was luck. It released at the perfect time.

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 days ago

        You don’t think the $500 million marketing budget Sun put towards Java has anything to do with its success? It was more than just luck.

        • magic_lobster_party@fedia.io
          link
          fedilink
          arrow-up
          2
          ·
          6 days ago

          I don’t think the $500 million marketing budget would’ve worked if Java was introduced at a time other than the 90s.

          The 80s would’ve been too early. It would just turn into a parenthesis in programming language history (next to smalltalk). The 00s would’ve been too late. It would’ve missed the dotcom bubble boat. Java came in the right time to become a dominant programming language.

          I’m not saying the marketing didn’t have any influence. It probably had an big influence in which OOP language was selected for computer science education.

    • hex123456@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      15
      ·
      7 days ago

      Java was the new hotness when I was in the middle of my comp sci degree. The biggest benefit I found was javadocs. Other languages had shit documentation that usually didn’t match reality in comparison.

      • pinball_wizard@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        6 days ago

        Yes. JavaDoc was/is good.

        There, I said something nice about Java. I’m giving myself a gold star, and going to stop typing.

    • rottingleaf@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      6 days ago

      JVM isn’t mediocre. Really-really.

      I don’t like something aesthetically about Java, can’t quite nail what, and don’t like long-long namespace strings, but these are my personal limitations.

      Ah. I also don’t like OOP.

    • PushButton@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      3
      ·
      6 days ago

      I am going to be decapitated for this, but you’re totally right.

      You only have to look at Rust. An horrible language with a massive hype machine and an army of zealots pushing it everywhere.

      I can’t understand how people are complaining about the java boiler plate and its verbosity, while promoting Rust every time they can.

  • _NetNomad@fedia.io
    link
    fedilink
    arrow-up
    23
    arrow-down
    1
    ·
    7 days ago

    Unlike other older languages, such as Cobol and Fortran – which are still used, but almost always in legacy projects – Java has constantly evolved to meet new demands while maintaining backward compatibility.

    can’t speak on the FORTRAN claim but with COBOL this couldn’t be less true. last i checked the newest Enterprise COBOL LTS is newer than Java’s

    • 1rre@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      11
      ·
      7 days ago

      The difference is people still write Java, regardless of whether it’s a dated pos or not, so the use cases have evolved

      Then there’s the use of the JVM/JRE which have evolved even more due to Scala, Clojure & Kotlin

      • _NetNomad@fedia.io
        link
        fedilink
        arrow-up
        7
        ·
        7 days ago

        COBOL is still being updated because, believe it or not, people are still writing COBOL

        • magic_lobster_party@fedia.io
          link
          fedilink
          arrow-up
          12
          arrow-down
          1
          ·
          7 days ago

          People aren’t writing new projects in COBOL. It’s mostly to maintain 40+ year old systems. Unless you’re working in the bank sector, it’s unlikely you will write a program in COBOL.

          • SirQuack@feddit.nl
            link
            fedilink
            English
            arrow-up
            6
            arrow-down
            1
            ·
            7 days ago

            Don’t forget this small sector called government. Loads of Cobol there.

      • Enkimaru@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        6 days ago

        Then it would not be constantly evolving with more than a new release per year. Do you know anything about gigantic Java ecosystem? Guessed so …

        • taladar@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 days ago

          Yeah, I know that the vast majority of Java applications out there are stuck on ancient versions of the JVM and spew back traces in their logs as if they bought them in bulk.

  • YurkshireLad@lemmy.ca
    link
    fedilink
    English
    arrow-up
    13
    ·
    6 days ago

    I think Java was first released just after I graduated. I do program Java at my day job though, and I don’t mind it. It has its quirks but I find I can express myself using Java, but I probably try to think towards much in OO paradigms when I design and code.

  • chronicledmonocle@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    arrow-down
    7
    ·
    7 days ago

    A language I wish would die already, but there are still vendors that program in it, along with freaking Tomcat hosted applications. EduTech is still stuffed to the gills with it.

    • toastmeister@lemmy.ca
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      4
      ·
      7 days ago

      There’s always Kotlin. Of course I never understood the desirability of a VM language in the first place, why not just compile for different architecture?

      • chunes@lemmy.world
        link
        fedilink
        English
        arrow-up
        14
        ·
        7 days ago

        “Write once, run anywhere” is a pipe dream but Java came closer than anyone else by far.

      • padge@lemmy.zip
        link
        fedilink
        English
        arrow-up
        12
        ·
        7 days ago

        It can help with standardization and some security benefits to run things in the JVM, part of the reason it’s so popular in enterprise

      • Enkimaru@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 days ago

        JIT compiling and byte code morphing and instrumentation. For instance data base persistence is usually done by instrumentation tools, that add instructions to keep track about transactions and modified objects, or new objects that need persisting. And endless more things.

      • Albbi@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 days ago

        There’s also Groovy. A data execution pipeline program I use called NextFlow uses Groovy based scripts.

        And compiling for different architectures can be very difficult. I’ve done a lot of work Power9 computers and it’s not as simple as having the right compiler flags. Often the dependencies aren’t built for your platform either so you have to go and compile those too. It can be quite a hassle.

  • Zenith@lemm.ee
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    6 days ago

    This dude came to my spouses work to do some sort of work/help (I don’t know the exact details) and someone wrote a doc he needed to review. It was a lot of work not just like a few notes but a proper doc and all he wrote back upon “reviewing” it was a thumbs up emoji!! 👍🏻 everyone was shocked lol, no feed back, no notes nothing just 👍🏻

  • gamer@lemm.ee
    link
    fedilink
    English
    arrow-up
    9
    ·
    7 days ago

    I used Java years ago for Android dev, but stopped when I stopped doing that. Every once in a while I’ll get the itch to work on a new project, and always wonder if Java would be a good idea.

    My hesitance is that I don’t trust Oracle (and don’t know to what extent they’re involved nowadays), I’m not familiar enough with the ecosystem to know what is legacy crap to avoid, and I think it’s generally seen as an uncool language, and I’m way too cool to be taking such risks.

  • ferrule@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    6
    ·
    6 days ago

    java was my 5th language, having just missed it as the AP CS language in highschool by a year. oddly i could not get behind such a massive standard library having come from BASIC, Pascal C++, ASM, VHDL. now after 30 years of programing i write Java web services for a living. feels strange.

    • kirk781@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 days ago

      Oddly, I did know some BASIC and I have vague memories of the numeric line starters like 10 with white text on a black background giving it a retro feel.

  • whotookkarl@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    7 days ago

    It’s been interesting seeing the changes as they happened over time working with java pretty often for a good chunk of that time. The jvm and jit performance improvements, syntax changes and additional jep features added vs what was left out, tools for running and managing jvms, Sun & Oracle shooting themselves in the foot repeatedly, new jvm languages with scala, groovy, clojure, etc and their impact on java. I prefer other languages and tool chains for some cases, but java has been pretty good for building reliable, upgradable, extendable systems that get the job done & have a good large stable library.

      • BoycottPro@lemm.ee
        link
        fedilink
        English
        arrow-up
        16
        arrow-down
        1
        ·
        edit-2
        6 days ago

        His political contributions are really on brand. He funded election deniers in 2022.

        Also I’ve heard Oracle has a bad reputation when it comes to government contracts, very expensive poor quality software ripping off our taxpayers. I think they ought to be blacklisted or at-least require extra review due to their reputation. CUNY paid Oracle over $600 million and look at what that got them: https://pscbc.blogspot.com/2013/03/cuny-first-computer-system-to-aid.html. To be fair the article does claim that “The project required an expenditure of up to a billion dollars to do it right. CUNY Central offered far less. All but one of the bidders dropped out as a result”. I’m confused why it needs to be so expensive, even $600 million seems like way too much.

      • kirk781@discuss.tchncs.deOP
        link
        fedilink
        English
        arrow-up
        6
        ·
        7 days ago

        Lary Ellison is one of the richest men in the world right and owns some kind of private island or something that he bought basically after showing his shares of Oracle stock?