302
Actually not funny (i.imgur.com)
submitted 2 years ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 2 points 2 years ago* (last edited 2 years ago)

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

[-] [email protected] 2 points 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.

[-] [email protected] 2 points 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.

[-] [email protected] 2 points 2 years ago

I guess Rust would have solved the problem as well.

[-] [email protected] 2 points 2 years ago

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

this post was submitted on 01 Aug 2023
302 points (94.4% liked)

Programmer Humor

25311 readers
122 users here now

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

founded 2 years ago
MODERATORS