this post was submitted on 25 Feb 2026
889 points (99.0% liked)

Programmer Humor

30224 readers
1491 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
 

A photo of a cake with 8 candles in a row. The first and fifth candle from the right are lit. The caption reads "Happy 17th Birthday"

you are viewing a single comment's thread
view the rest of the comments
[โ€“] raman_klogius@ani.social 22 points 1 week ago (2 children)

Maybe this is a signed cake, so one can celebrate negative birthdays of people who aren't born yet. ๐Ÿค”

[โ€“] Iron_Lynx@lemmy.world 7 points 1 week ago (1 children)

Light all the candles as an announcement that you're gonna start having kids and hope she'll get pregnant in exactly three months. Not in 2, not in 4, but in 3 precisely.

[โ€“] CanadaPlus@lemmy.sdf.org 1 points 1 week ago (2 children)

You win Lemmy, I need this one explained.

[โ€“] Aedius@lavraievie.social 3 points 1 week ago (1 children)

@CanadaPlus

Because if you add 1 to 1111111 it will overflow and give 0000000 so you have to have the baby in 1 year exactly

[โ€“] CanadaPlus@lemmy.sdf.org 2 points 1 week ago* (last edited 1 week ago)

Ahh, because of the 9 month gestation. 9+3=12

I thought this was about some kind of obscure subnormal float convention or something.

[โ€“] Iron_Lynx@lemmy.world 2 points 1 week ago

Longer explanation:

Because most computers use two's complement to make negative numbers. To produce -x, you take x, flip all the bits, and then add 1. Conveniently, this process works both ways, so if you have an int with a positive MSB, i.e. 1*******, that's a negative number, and if you invert and add 1, you get the positive number.

So if you take 11111111, and apply this process, you get 00000001, which equals 1. Thus, 11111111 = -1

Secondly, the gestation period of humans is 9 months, and there are 12 months in a year.

So if you have binary candles and all of them lit, that can suggest, which it does in my previous comment, that you're celebrating a child's -1st birthday.

Given that typical gestation time is less than one year, that involves some planning and determination.