fedii.me
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Lena@gregtech.eu to Programmer Humor@programming.dev · 6 days ago

What the fuck javascript

gregtech.eu

message-square
36
link
fedilink
1

What the fuck javascript

gregtech.eu

Lena@gregtech.eu to Programmer Humor@programming.dev · 6 days ago
message-square
36
link
fedilink
  • LillyPip@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 days ago

    Same reason NULL != NULL. It makes sense if you understand how these values work.

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      6 days ago

      That doesn’t smell right.

      • LillyPip@lemmy.ca
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 days ago

        https://richiban.uk/2016/12/21/does-null-equal-null/

        ISNULL may be true, whilst NULL != NULL. NULL is not a value.

        • SpaceNoodle@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          6 days ago

          Ah, my brain was in C mode, where NULL is functionally 0. This is about the concept, which doesn’t apply equally to all languages.

          • LillyPip@lemmy.ca
            link
            fedilink
            English
            arrow-up
            0
            ·
            edit-2
            6 days ago

            Yep. There are some languages where this applies, because it’s a mathematical concept. The point is it’s the same ‘no value’ concept, which isn’t shared by implemented the same way by all languages.

            C is strongly typed, and uses pointers, so NULL sort of intrinsically has a value in C.

            edit: my wording was a bit off

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: [email protected]

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
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 115 users / day
  • 334 users / week
  • 364 users / month
  • 378 users / 6 months
  • 0 local subscribers
  • 34.2K subscribers
  • 95 Posts
  • 701 Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.21
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org