Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
 gnuswann   ( @gnuswann@programming.dev )  to Programmer Humor@programming.dev · 3 years ago

has JavaScript lied to us ?

programming.dev

message-square
21
link
fedilink
166

has JavaScript lied to us ?

programming.dev

 gnuswann   ( @gnuswann@programming.dev )  to Programmer Humor@programming.dev · 3 years ago
message-square
21
link
fedilink
alert-triangle
You must log in or # to comment.
  •  CookieJarObserver   ( @CookieJarObserver@feddit.de ) 
    link
    fedilink
    arrow-up
    11
    ·
    3 years ago

    I hate JavaScript.

    •  Khalic   ( @Khalic@kbin.social ) 
      link
      fedilink
      arrow-up
      13
      ·
      3 years ago

      But javascript loves you undefined

      •  mycus   ( @mycus@kbin.social ) 
        link
        fedilink
        arrow-up
        6
        ·
        3 years ago

        That’s so void 0

        •  abclop99   ( @abclop99@beehaw.org ) 
          link
          fedilink
          arrow-up
          2
          ·
          3 years ago
          [object Object]
          
  •  sotuvieres   ( @sotuvieres@lemmy.pt ) 
    link
    fedilink
    arrow-up
    5
    ·
    3 years ago

    Why does it have this name though? Was it a java framework or something at some point?

    •  asyncrosaurus   ( @asyncrosaurus@programming.dev ) 
      link
      fedilink
      arrow-up
      15
      ·
      3 years ago

      It was partly marketing, part to appease Sun Microsystems at the time, whose Java Applet product were supposed to be the true unifying web platform. Having a built-in scripting language in the browser annoyed a great many important people, who felt it undercut the importance of Java. Calling it Javascript gave the illusion that it was a smaller subset of Java, (even though it clearly isn’t), while also benefiting from the more recognizable/marketable name ‘Java’, which was the new hottness.

      •  drcobaltjedi   ( @drcobaltjedi@programming.dev ) 
        link
        fedilink
        arrow-up
        6
        ·
        3 years ago

        I actually had a boss who thought they could let me do java at work (can’t in house executables were a “security risk” according to corprate) but he ended up making me do javascript, which I don’t know. I got very frustrated trying to get him to understand JS isn’t java and now because of JS’s weird behaviors I can’t actually do the thing he wants so easily.

    •  unwieldycat   ( @unwieldycat@kbin.social ) 
      link
      fedilink
      arrow-up
      9
      ·
      3 years ago

      It was initially called “LiveScript”, but since Java applets were really popular at the time of its creation, they went with “JavaScript” instead to get attention.

      •  AtomicPurple   ( @AtomicPurple@kbin.social ) 
        link
        fedilink
        arrow-up
        2
        ·
        3 years ago

        I didn’t know this, Livescript is a waaaayyyyy better name for it. One more reason to hate Java applets I guess

    •  mycus   ( @mycus@kbin.social ) 
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      I think it’s because of the coffee beans from Java island, looks like they are popular around those dev cycles

    •  gnuswann   ( @gnuswann@programming.dev ) OP
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      As far as I know, that’s because Java was the world’s first programming language at the time when Netscape and Brendan Eich developed JavaScript. The story of JavaScript is certainly one of the most chaotic. Very interesting story tho

      •  fabian   ( @fabian@programming.dev ) 
        link
        fedilink
        arrow-up
        3
        ·
        3 years ago

        Java is not very much older than Javascript and at the time it was far from the world’s first programming language. It probably was measured by hype in developer circles the Rust of the mid-nineties.

      •  Khalic   ( @Khalic@kbin.social ) 
        link
        fedilink
        arrow-up
        2
        ·
        3 years ago

        I did javascript back in 2008 already. It was WILD

    •  JackbyDev   ( @JackbyDev@programming.dev ) 
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      A detail a lot of people are missing is the absolutely massive marketing campaign Sun did for Java in the 1990s.

  •  gloriousspearfish   ( @gloriousspearfish@feddit.dk ) 
    link
    fedilink
    arrow-up
    4
    ·
    3 years ago

    EcmaScript

    •  Snowflakes42   ( @Snowflakes42@lemmy.one ) 
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      LigmaScript

      •  I Cast Fist   ( @ICastFist@programming.dev ) 
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        ShakedatScript

  •  JoShmoe   ( @JoShmoe@programming.dev ) 
    link
    fedilink
    arrow-up
    3
    ·
    3 years ago

    Wow, so true. Hair and all

  •  Ebuall   ( @Ebuall@programming.dev ) 
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    In the awkward OOP DOM interface, that is the only place in JavaScript, where you can get null, and in the outdated Date interface, that Java itself abandoned many years ago.

  •  abclop99   ( @abclop99@beehaw.org ) 
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    Of course

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 188 users / day
  • 1.81K users / week
  • 3.91K users / month
  • 8.37K users / 6 months
  • 449 local subscribers
  • 28.3K subscribers
  • 1.18K Posts
  • 19.2K Comments
  • Modlog
  • mods:
  •  Feyter   ( @Feyter@programming.dev ) 
  •  adr1an   ( @anzo@programming.dev ) 
  •  BurningTurtle   ( @BurningTurtle@programming.dev ) 
  •  Pierre-Yves Lapersonne   ( @pylapp@programming.dev ) 
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code