Gollum@feddit.de to Programmer Humor@programming.devEnglish · 3年前Actually not funnyi.imgur.comimagemessage-square40fedilinkarrow-up1321cross-posted to: programmerhumor@lemmy.ml
arrow-up1321imageActually not funnyi.imgur.comGollum@feddit.de to Programmer Humor@programming.devEnglish · 3年前message-square40fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarecsm10495@sh.itjust.workslinkfedilinkEnglisharrow-up3·edit-23年前Isn’t NULL a macro in C for 0? So doesn’t that mean these items are free?
minus-squarecoloredgrayscale@programming.devlinkfedilinkarrow-up2·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.
minus-squareHaus@kbin.sociallinkfedilinkarrow-up2·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.
minus-squarecsm10495@sh.itjust.workslinkfedilinkarrow-up2·3年前I guess Rust would have solved the problem as well.
minus-squarekamenlady@lemmy.worldlinkfedilinkarrow-up2·3年前Null is zero in german - so this must be free, it’s a german shop
Isn’t NULL a macro in C for 0? So doesn’t that mean these items are free?
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.
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.
I guess Rust would have solved the problem as well.
Null is zero in german - so this must be free, it’s a german shop
deleted by creator