Two strings walk into a bar and sit down

Two strings walk into a bar and sit down. The bartender says, “So what’ll it be?”
The first string says, “I think I’ll have a beer quag fulk boorg jdk^CjfdLk jk3s d#f67howe%^U r89nvy~~owmc63^Dz x.xvcu”
“Please excuse my friend,” the second string says, “He isn’t null-terminated.”


This is another programming joke. I couldn't imagine the jokester actually saying the thing that the first string is reported to have said, so this joke probably only exists in written form.

The humor here relies on the listener to understand that some programming languages put nulls as the end of strings to denote where the string ends. It also requires that the listener remembers that some programming languages do not automatically terminate strings with nulls, and leave that job to the programmer.

If the programmer writes a bug, strings can lose their null terminators, and then when you try to print them to the screen they will print all sorts of gibberish until they come across a null that happened to exist in memory.

Really, I don't find this joke funny at all except when I try to imagine a person saying the thing that the first string is supposed to have said.

Comments

Labels

colloquial knock knock unexpected Christmas misunderstanding programming definitional bad dad anti-humor talking animals failed expectation political irony language black deconstruction elephant literal math onomatopoeia Biden disability grammar ambiguous garden path lie occupation self denigrating canadian dark internet explorer mass culture physics rude slapstick knowledge put-down surprise animal bathroom humor contradiction english funny racist toilet humor aptronym board game body humor depression dog false assumption famous person illogical impulse control insinuation juxtaposition meta misfortune nationalist punchlineless setupless shaggy dog speech problems stupid surprised pikachu Halloween Karen Lord of the Rings archetype breaking behavior dissonance black humor blonde cat cheese chicken circular coronavirus death deliberate dissonance fake punchline fish hyperbole hypocrite implied punchline lazy light-bulb mispronounce obama obscure old pessimism photoshopped pirate plumber pop culture portmanteau repetitive sad but true sarcastic self referential spelling stereotype suspended disbelief talking food troll untellable violence work your mother Disney Pavlov Perl accent accident adage advertisement alcoholic allusion anakin skywalker anti-pun audience participation bald bash biology booger chemistry clown context covid-19 date dated difference doge drug duck electrician emo evil cat face bomb faces false dichotomy fantasy fat fear fickle forgetful fourth wall breaking generational gesture gif gorillas greedy harry potter hippie historical history idiom immature inappropriate insultnsult jargon lettuce library macabre made up words media mexico mondegreen name-calling nazi numbers one-liner pedantic pokemon prank call pretentious prison protests punctuation purple prose rap reverse roll safe science spiderman star wars straight man subversion suicide surreal swear talking objects technology thinker true typo unstated vegan visual weird whiplash winter work humor zoo
Show more

More jokes