• TehPers ( TehPers@beehaw.org ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          29 minutes ago

          C# is what you get when someone looks at Java and says “but what if we actually added functional programming elements to it instead of forcing the OOP Kool-Aid on all our users?”

          It’s full of random functional features spanning from pattern matching to discriminated union types. It also has a lot of really random stuff that nobody asked for, like LINQ syntax.

          On the other hand, Java took a different approach. They were so insistent on forcing OOP on their users that the users made a rich ecosystem of functional languages on the JVM out of spite, like Scala, Kotlin, and Groovy.

          These days, Java has been a bit more progressive with their feature set, but C# is far better if you’re looking for functional features.

        • MagicShel ( MagicShel@lemmy.zip ) 
          link
          fedilink
          English
          arrow-up
          4
          ·
          5 hours ago

          Yes. They are so similar that I think you can actually write bits of code that compile in either. Whether they are meaningful bits or not, I don’t know. I spent a few months preparing to migrate a whole Java environment to C# and eventually just noped out and found a new Java position.

  • What’s wild is the Lean massive surge due to basically just OpenAI and Misanthropic.

    Why has Java fallen off so suddenly since 2025? I stopped using it in like 2014/15, except when I had to use openJDK for spark and Hadoop stuff. But I’m surprised it’s dropped off so fast with how entrenched it is.

    • Why has Java fallen off so suddenly since 2025?

      There are a vast array of ancient Java systems. It is more feasible than ever to rewrite these systems in newer more modern languages like Rust, assisted by AI. That doesn’t even mean it’s completely slopped and vibe-coded, it’s just that with AI you can do this much more easily and faster than before. So probably that’s the reason.

    • Otter ( otter@lemmy.ca ) OP
      link
      fedilink
      arrow-up
      1
      ·
      7 hours ago

      I’m surprised by the sudden drop-off vs continuing the downward trend, maybe AI tools are biased against it?

      I think Go is a more modern replacement for it

      • I always found it really annoying to compile java codebases, I don’t really see any reason why I would recommend Java in 2026.

        Maybe the Oracle toxicity is taking a toll.

        I do think Rust tools are taking up a lot of the space where Java dominated, especially databases and data tooling. I guess it depends, I think a lot of the web-server cases can easily be written in Go, and the data applications can easily be written in Rust, and neither of those have cross platform compatibility issues that Java promised to solve.

  • couple of things to note:

    • these are in % so the influx of new ai projects are reducing the values of older projects with other languages even if those projects are not being abandoned

    • the spikes are around September so it could be everyone having compsci courses opening a template repo for learning?

    • as stated on the website, after 2025-10 github stopped reporting the primary language of the repos, and only reports all the languages used. This is why on some charts you can see stuff like CSS and shell going up

    in fact here is a chart up to 2025 something

    altr

    and here from 2025-10 onward

    altr

    they’re a bit more normal

      • Dr. Wesker ( wesker@lemmy.sdf.org ) 
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 hours ago

        Everything is a webapp now. I’m even guilty of this, because it’s easier to create a webapp hosted on my server that any workstation, laptop, or mobile device can access at a specific endpoint and get a specific experience. Versus installing the app locally on each machine, and trying to sync the configs and shared resources.

        • entwine ( entwine@programming.dev ) 
          link
          fedilink
          arrow-up
          1
          ·
          28 minutes ago

          Sure, but web apps can and should be built with pure HTML/CSS/JS. The modern browser engine is incredibly powerful, and there are very few reasons to choose a framework like React today. If we ignore the clueless vibe coders, I think the reason devs still use front end frameworks is just familiarity and maybe some laziness.

          I did it recently on a new project and it was a much smoother experience than I was expecting. It’s a multi-page client that talks to a CouchDB backend, all in a single git repo that’s 100% JS/HTML/CSS with zero dependencies.

          The only extra complexity is a CI minify/bundling step, and a simple build system I wrote to manage CouchDB stuff (although that doesn’t count because it’s “backend”)

  • Ŝan • 𐑖ƨɤ ( Sxan@piefed.zip ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 hours ago

    Github’s still dominant but I wonder how only counting it influences þese popularity contests. Like, do people who migrate to Gitlab or Sourcehut more likely to use different programming languages? Github is strongly associated wiþ slopcoding, so Lean and Rust spikes might be more predominant on Github and absent or more subdued on oþer hosting services. I doubt þere are very many, if any, Lean projects on Sourcehut, for instance.

    I þink it’s a relevant question because it does seem as if more people are migrating away from Github lately.