0 vs Null

Apr 8, 2019 7:44 PM

And here is a picture of undefined:

7 years ago | Likes 4 Dislikes 1

Sorry, I don't have a square to spare.

7 years ago | Likes 1 Dislikes 0

Some vs any

7 years ago | Likes 5 Dislikes 0

If you forgot to check first, either one means you're fucked.

7 years ago | Likes 2 Dislikes 0

Except in certain programming languages where NULL is represented by 0.

7 years ago | Likes 1 Dislikes 0

Which languages? I'm still learning.

7 years ago | Likes 1 Dislikes 0

nullptr is preferred.

7 years ago | Likes 2 Dislikes 1

At least you can use zero once or twice

7 years ago | Likes 1 Dislikes 0

7 years ago | Likes 317 Dislikes 9

Hey look its logan paul

7 years ago | Likes 7 Dislikes 1

Unless you're German, in which case the number and the word are the same thing. I wonder if German programmers have trouble describing code.

7 years ago | Likes 5 Dislikes 1

In dutch "nul" is zero, but we pronounce Null and nul slightly differently so it's not much of an issue.

7 years ago | Likes 1 Dislikes 0

I see three wipes worth. do it...

7 years ago | Likes 2 Dislikes 0

Holy shit, I finally understand it! Thanks, OP

7 years ago | Likes 3 Dislikes 0

It helped me too.

7 years ago | Likes 2 Dislikes 0

The last tag omg...

7 years ago | Likes 1 Dislikes 0

Toilet paper feeding underneath would be irrational, right?

7 years ago | Likes 2 Dislikes 0

7 years ago | Likes 2 Dislikes 1

Null wing?

7 years ago | Likes 1 Dislikes 0

in Faroese 0 is spellef null

7 years ago | Likes 2 Dislikes 0

Thank you.

7 years ago | Likes 2 Dislikes 0

I LOVE THIS! Can we have more!?

7 years ago | Likes 3 Dislikes 0

And it's a null reference exception when the dispenser is gone

7 years ago | Likes 3 Dislikes 0

More like [ ] vs null

7 years ago | Likes 6 Dislikes 0

Except there is still a type defined.

7 years ago | Likes 1 Dislikes 0

Difference being 0 has saved my ass on many occasions, literally!

7 years ago | Likes 3 Dislikes 0

I've literally never done that and I fear when the time comes I won't be prepared.

7 years ago | Likes 1 Dislikes 0

Undefined

7 years ago | Likes 4 Dislikes 0

that's not undefined. that's the first steps in the natural evolution to achieve a higher form of cleaning.

7 years ago | Likes 3 Dislikes 0

Is null the same as NAN? If not, how?

7 years ago | Likes 1 Dislikes 0

NAN: This used to be number, but then you did bad stuff to it (e.g. divide by zero). null: There is nothing here

6 years ago | Likes 2 Dislikes 0

Time to drip dry.

7 years ago | Likes 4 Dislikes 0

Shake dat boody

7 years ago | Likes 2 Dislikes 0

Use the core, wipe like a man.

7 years ago | Likes 2 Dislikes 0

Do you unfold or flatten it first, or…?

7 years ago | Likes 2 Dislikes 0

Peel it.

7 years ago | Likes 2 Dislikes 0

Oh, thank God.

7 years ago | Likes 2 Dislikes 0

Nah, it is still 100% the worst.

7 years ago | Likes 2 Dislikes 0

But #define NULL 0

7 years ago | Likes 17 Dislikes 2

[deleted]

[deleted]

7 years ago (deleted Apr 10, 2019 2:51 AM) | Likes 0 Dislikes 0

Downvoted by those who can't handle the truth.

7 years ago | Likes 8 Dislikes 2

There are (uncommon and obscure) architectures where NULL != 0. http://c-faq.com/null/machexamp.html

7 years ago | Likes 1 Dislikes 1

That... is a pretty good way of portraying it.

7 years ago | Likes 757 Dislikes 3

the problem is when you try to teach programming in german, because 0 and null are pronounced, and written the exact same way

7 years ago | Likes 5 Dislikes 0

Couldnt you use a similar term like nullsumme and null? I mean its german, cant you just modify the shit out of null lol?

7 years ago | Likes 3 Dislikes 0

As if German wasn't confusing enough.

7 years ago | Likes 5 Dislikes 0

I thought it was a pretty crappy way of portraying it, myself.

7 years ago | Likes 15 Dislikes 2

Perspective, my friend.

7 years ago | Likes 3 Dislikes 0

Not perspective. Pun.

7 years ago | Likes 3 Dislikes 0

Yeah man, I was thinking the same

7 years ago | Likes 28 Dislikes 0

Thing.

7 years ago | Likes 11 Dislikes 0

A misplaced null terminator, I see.

7 years ago | Likes 6 Dislikes 0

I can remember my gram gram telling me stories of her being so poor as a child, she used to wipe her nipsy with the cardboard tube.

7 years ago | Likes 3 Dislikes 2

Ahhh ok now his name makes sense

7 years ago | Likes 3 Dislikes 0

If you can catch that pointy layer end, you can peel it into a thinner paperish thing that is still 100% the worst thing to wipe with.

7 years ago | Likes 3 Dislikes 0

So having nothing of something, which you could potentially have is 0? And having nothing at all is null?

7 years ago | Likes 6 Dislikes 0

In stats the null hypothesis is the hypothesis of having *no* statistical difference. In some datasets you could be looking to see if 1/2

7 years ago | Likes 1 Dislikes 0

x causes y to be 0. That conclusion that x causes y to be ____ would be different then x doesn't seem to cause a damn thing in y

7 years ago | Likes 1 Dislikes 0

Yeah, zero is a value, null is a lack of any data at all.

7 years ago | Likes 9 Dislikes 1

Thanks that was actually very helpful :)

7 years ago | Likes 3 Dislikes 0

I understand the difference between 0 and NULL, but I don't recognize the picture

7 years ago | Likes 11 Dislikes 0

I'm in the same boat.

7 years ago | Likes 1 Dislikes 0

Left is 0 (value exists, but no tp remaining) right is null (what tp roll?)

7 years ago | Likes 3 Dislikes 0

Looks like it something to hold the toilet paper roll

7 years ago | Likes 8 Dislikes 0

7 years ago | Likes 2 Dislikes 0

Optional over in the cabinet... You won't know if it's in there until you look.

7 years ago | Likes 56 Dislikes 2

Schrodinger's roll

7 years ago | Likes 20 Dislikes 2

There's also a third undefined roll to the right

7 years ago | Likes 4 Dislikes 0

Could be a roll... Could be a sock... One way to find out.

7 years ago | Likes 8 Dislikes 0

Both would work!

7 years ago | Likes 4 Dislikes 0

Programmers will understand

7 years ago | Likes 188 Dislikes 40

Germans will be confused

7 years ago | Likes 8 Dislikes 2

And mathematicians

7 years ago | Likes 7 Dislikes 4

Not all of us understand. There's this guy who confuses both. When I'm helping him debug he refers to zeros and empty strings as nulls.

7 years ago | Likes 2 Dislikes 0

"" vs null was a bug I introduced in my own code a few times before I truly grasped the concept.

7 years ago | Likes 1 Dislikes 0

Or mapmakers. Or statisticians. Or grade school students. Let's face it, most people will understand.

7 years ago | Likes 8 Dislikes 0

Undergrads in stats 101

7 years ago | Likes 1 Dislikes 0

I’m not a programmer but I understand general logic and context clue. So I get it.

7 years ago | Likes 2 Dislikes 0

You're only a real programmer if you can shove 32GB of RAM up your ass.

7 years ago | Likes 29 Dislikes 4

We talking laptop or full sized DIMMs?

7 years ago | Likes 5 Dislikes 0

( ͡° ͜ʖ ͡°)

7 years ago | Likes 2 Dislikes 0

You passed the test

7 years ago | Likes 3 Dislikes 0

It's more 0 vs undefined. NULL would be a sign saying it's out of paper.

7 years ago | Likes 5 Dislikes 2

if it's a signed integer it can go below 0 and fill up the roll with used toilet paper when you continue.

7 years ago | Likes 6 Dislikes 0

And when it overflows it suddenly is a roll of clean paper filled to maxint?

7 years ago | Likes 2 Dislikes 0

yup, that's how it works. It just flips over to the clean side.

7 years ago | Likes 2 Dislikes 0

*recoils in disgust at the thought*

7 years ago | Likes 3 Dislikes 0

And just people

7 years ago | Likes 91 Dislikes 0

Yeah I picked up on that instantly

7 years ago | Likes 24 Dislikes 1

I’m cool with using jargon relative to your industry but I hate when people say “x people will understand!” when it’s an entry level concept

7 years ago | Likes 24 Dislikes 0

Only people who can read will understand

7 years ago | Likes 3 Dislikes 0

Your moms an entry level concept

7 years ago | Likes 14 Dislikes 2

0 is a number value, null is a lack of existance

7 years ago | Likes 59 Dislikes 2

In c++ NULL = 0, nullptr is a pointer to NULL

7 years ago | Likes 1 Dislikes 1

What about negative zero?

7 years ago | Likes 1 Dislikes 0

Defaults to 0

7 years ago | Likes 1 Dislikes 0

I bet that exceeded your understanding, non-programmers. Haha am I right fellow programmers!?

7 years ago | Likes 49 Dislikes 3

true

7 years ago | Likes 1 Dislikes 0

Haha, you are right my fellow programmer, one might say it causes an overflow in their understanding. No way them plebs would get it.

7 years ago | Likes 5 Dislikes 1

I love me some good ol' gatekeeping

7 years ago | Likes 3 Dislikes 1

YourPost.Equals(true) No way they understand this!

7 years ago | Likes 9 Dislikes 1

Do{laugh();}while(understand != true);

7 years ago | Likes 2 Dislikes 0

1

7 years ago | Likes 27 Dislikes 0

;)

7 years ago | Likes 4 Dislikes 1

error: incomparable types: int and boolean

7 years ago | Likes 8 Dislikes 0

Hi, I'm python!

7 years ago | Likes 1 Dislikes 0