Let’s reinvent java bytecode but… different

  • magic_lobster_party@kbin.run
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    Java is disliked because it’s designed around flawed OOP principles developed in the 80s and 90s. The code easily turn into a mess if you adhere to these principles, because they’re flawed. If you avoid using these principles, you will still get a mess, because that’s not how Java is supposed to be used.

    • hydroptic@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      edit-2
      6 months ago

      Java was such a fractal of stupid design choices in its early years, and a lot of it is still there. OOP except when it’s not (int vs Integer, [] arrays but also List et al), no unsigned number types, initially no way to do closures or pass methods around so everything had to be wrapped in super verbose bullshit, initially absolutely dogshit multiparadigm support and very noun-oriented, initally no generics either meaning everything’s an Object, when it did get generics they had to do type erasure for backwards compatibility, etc etc etc

      • magic_lobster_party@kbin.run
        link
        fedilink
        arrow-up
        0
        ·
        6 months ago

        Also: everything is nullable. There are no safety guarantees to ensure you’ve done the necessary null checks. And if you miss your program will crash.

        • hydroptic@sopuli.xyz
          link
          fedilink
          arrow-up
          0
          arrow-down
          1
          ·
          6 months ago

          Oh yeah how did I forget the billion dollar mistake, definitely one of the worst misfeatures of Java