DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Jake Varness
Jake Varness

Posted on

Why was 0110 afraid of 0111?

Because 0111 1000 1001!!! πŸ˜‚

Top comments (6)

Collapse
 
ben profile image
Ben Halpern

Bender would make this joke

Collapse
 
voidjuneau profile image
Juneau Lim

I really don't want to ruin the fun by TMI, but at the same time, really want to laugh together. Would you kindly explain it to this poor code newbie? (At least I have knowledge about binary and its operations.)

Collapse
 
jvarness profile image
Jake Varness • Edited on

Hey Juneau, sure I can!

The numbers are binary. From the rightmost bit to the leftmost, you add the numbers up in powers of 2 given the position of the number (starting with 0) as the exponent.

0110 = (0 * 2^3 ) + (1 * 2^2 ) + (1 * 2^1 ) + (0 * 2^0 ) = 0 + 4 + 2 + 0 = 6

So 0110 = 6, 0111 = 7, 1000 = 8, and 1001 = 9.

Does the joke make sense now?

Collapse
 
voidjuneau profile image
Juneau Lim • Edited on

Oh...... I actually got that far, but didn't know the 789 jokes.
After I saw your comment, I got more lost (since I thought it might be something with the operator, not the value itself) and googled, and gotch.
Poor myself... I should go to bed and cry a bit.

Thread Thread
 
jvarness profile image
Jake Varness

Lol I'm sorry, I misinterpreted what part of the joke you didn't understand.

It's a corny joke anyhow πŸ˜‚

Thread Thread
 
voidjuneau profile image
Juneau Lim

Thanks for putting such effort explaining it. It’s so kind of you.πŸ˜‰

We are hiring! Do you want to be our Senior Platform Engineer? Are you capable of chipping in across sysadmin, ops, and site reliability work, while supporting the open source stack that runs DEV and other communities?

This role might just be for you!

Apply now