MTGZone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gollum@feddit.de to Programmer Humor@programming.devEnglish · 2 years ago

Actually not funny

i.imgur.com

message-square
44
fedilink
303

Actually not funny

i.imgur.com

Gollum@feddit.de to Programmer Humor@programming.devEnglish · 2 years ago
message-square
44
fedilink
  • csm10495@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 years ago

    Isn’t NULL a macro in C for 0? So doesn’t that mean these items are free?

    • coloredgrayscale@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      In a way it’s still the same with more modern languages. Especially OOP, setting an object to Null is just setting the address pointer to to 0x00000000.

      Hence NullPointerException / NullReferenceException or similar, depending on the language.

    • Haus@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      I’d guess, in context, it’s a floating point price column that hasn’t been set, and the table designer didn’t specify the column to be NOT NULL.

      • csm10495@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        I guess Rust would have solved the problem as well.

    • kamenLady.@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Null is zero in german - so this must be free, it’s a german shop

    • ImpossibleRubiksCube@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago

      deleted by creator

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.

  • 811 users / day
  • 5.28K users / week
  • 9.28K users / month
  • 18.5K users / 6 months
  • 4 local subscribers
  • 23.6K subscribers
  • 1.45K Posts
  • 53.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org