r/ProgrammerHumor • • Nov 01 '26

Meme isObjectCiming

Post image
2.2k Upvotes

53 comments sorted by

View all comments

122

u/himanbam Nov 01 '26

A classic that happened to me was:

int pillowNumber = -1;

int pilhighNumber = -1;

30

u/Anaxamander57 Nov 02 '26

Why are you counting negative pillows?

15

u/TeraFlint Nov 02 '26

How else would you express that you want to have your head lower than the rest of your body when you're sleeping? It's an issue that is clearly solved by putting -1 pillows on your bed.

2

u/himanbam Nov 03 '26

There are reasons, but they do not bring joy. Essentially it's a placeholder.

1

u/StaticCoder 28d ago

No optionals or variants in your language?

1

u/himanbam 28d ago

The reasons are worse than you think. It needed to be an integer in the Excel file being created, otherwise some other application reading that file would crash. Yet there was no meaningful value I could put there. So I made it -1.

1

u/NomaTyx Nov 02 '26

error code maybe?

2

u/Chronomechanist Nov 02 '26

Surely pilhighNumber should be 1?

1

u/himanbam Nov 03 '26

Exactly, what is the ai thinking?