Charlotte's web could be made with a bunch of strings
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 :::