Charlotte's web could be made with a bunch of strings

https://sopuli.xyz/post/40943119

Charlotte's web could be made with a bunch of strings - Sopuli

Here are some bad puns that are to do with data types. I’m sorry. Comment down some of your own concoctions! 2. What does a programmer say when he is accused of lying? I promise I’m not boolean you! ::: spoiler explanation of the puns “Fooling” sounds very similar to “boolean”, the latter being a data type commonly used when programming. Yes I will be explaining each and every pun. Yes, these puns are not very good at all, I’m not a professional comedian. The one in the title is a play on words, as “Charlotte’s Web” is a book that can be represented using a series of strings, a data type commonly used for storing words and letters, while a literal web is made of strings of silk. ::: 3. You try to pay with $100 of Monopoly money. in a supermarket. The cashier tells you that it’s unfortunately not real. ::: spoiler explanation of the pun Monopoly money does not have cents and are made of whole numbers, so it is an integer value, not of the “real” data type! ::: 4. What would you call fuel made of alphabet soup? CHARcoal! ::: spoiler explanation of pun The data type char stores characters, like the letters of the alphabet. This is a play on words with the word “charcoal”, a common fuel used in barbeques and such. ::: 5. How do Japanese programmers read arrays? By decrementing from -1! ::: spoiler explanation of pun Many Japanese texts read from right to left rather than left to right. Reading an array in reverse other would start at -1, getting the last item in the array, and the index would decrease from there. This is in contrast to the non-reverse order of increasing the index 0/1. (Of course, Japanese programmers don’t actually read arrays like this usually) ::: not related to data types, but just came up with it as I was typing this: f. What did the Python user say to the C++ user when they spilled coffee on their laptop? OOPs! ::: spoiler explanation of the pun Python uses object oriented programming, or OOP :::

I like the one about eggs and milk.

My wife says “Bring liters of milk, if they have eggs, bring 12” and gets upset when I bring her the 12 liters.

I got another bad one I just made.

A programmer of a fishing app had a rough break-up but all is well because there are plenty of fish in the C.

Java is for kids and C# is for adults because you don’t want the kids to C# edges.

print("I got a funny joke for you, just give me a couple of tries.") chars = string.ascii_lowercase + " " while true: l = random.randint(20, 50) print("".join(random.choice(chars) for _ in range(l))) print("Ok, the last one maybe wasn't funny but give me one more try")