Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gollum@feddit.de to Programmer Humor@programming.devEnglish · 3年前

Actually not funny

i.imgur.com

message-square
40
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
321

Actually not funny

i.imgur.com

Gollum@feddit.de to Programmer Humor@programming.devEnglish · 3年前
message-square
40
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • csm10495@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    3年前

    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
      ·
      3年前

      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
      ·
      3年前

      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
        ·
        3年前

        I guess Rust would have solved the problem as well.

    • kamenlady@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      3年前

      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年前

      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.

  • 770 users / day
  • 4.11K users / week
  • 8.24K users / month
  • 17.6K users / 6 months
  • 198 local subscribers
  • 29.3K subscribers
  • 2.11K Posts
  • 81.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org