• john89@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    4 hours ago

    Java isn’t Javascript, but that ham analogy is dumb as fuck and I feel bad for anyone who internalizes it after hearing it from someone else.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      2 hours ago

      How is it dumb? Ham and hamsters are two totally different things but sound similar. Java and JavaScript are two totally different things but sound similar. It’s a way to immediately explain to a non technical person in a way they can grok.

      • john89@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 hours ago

        It’s dumb because it can’t be reliably extrapolated to other instances.

        It’s perfectly reasonable for someone to think Java and JavaScript are related. It’s not reasonable for people to think ham and hamsters are related.

        This is a result of badly naming something because the ECMAscript creator wanted to ride the coattails of the ‘hot new thing’ at the time, which was Java.

        For example, people shouldn’t immediately doubt whether Godot and GodotScipt are related because Java and Javascript are not. Your hamster analogy falls apart here because it only describes an exception, not a rule.