• amio@kbin.social
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      This, but unironically. That is basically exactly how it started (after “J#” IIRC), minus a few wrinkles ironed out because if you’re reinventing the wheel, might as well try not to make the same flaws the old one had. Of course things branched out from there and C# has been a very different beast from Java since the 2000s.

      • dan@upvote.au
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I the beginning, C# was basically “Java, the good parts”, developed from scratch as a new language though. J# was developed in parallel as a replacement for Visual J++, and could run essentially unmodified Java code.

        At a previous workplace, we had projects that were combined C# and J# projects. It was a bit strange.

    • darcy@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      um more like Rust: Sir this is a very good memory-safe Essay you get 100% Grades!!! 😎😎😎😎😎

  • PeriodicallyPedantic@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    Language snobs be like

    Java is too verbose, Assembly is best 🥴

    Ok nobody actually wants to write Assembly, but that’s still what they sound like. Optimizing for number of characters you’d have to type if you used a text editor instead of an IDE, and dumb shit like that.

    • grue@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      The Java hate is not about wanting to type fewer characters; it’s about FactoryFactory-type boilerplate nonsense adding conceptual bloat that obscures what the unit of code is actually trying to accomplish.

      • Valmond@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        How so, templates make for less code usually? Or like template meta prog?

        I’m a C++ dev and I’m lost on this one :-p plz send help

        • JakenVeina@lemm.ee
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          /shrug

          That’s my best guess, in the sense that that’s what the compiler ends up producing, for templated code: the same code copy-pasted for however many different use cases you have.