Joke Collection Website - Joke collection - 20. The wife calls the husband who is a programmer: "Buy a catty of steamed buns and bring them back from work. When you see a watermelon seller, buy one. " That night, the show

20. The wife calls the husband who is a programmer: "Buy a catty of steamed buns and bring them back from work. When you see a watermelon seller, buy one. " That night, the show

It means that programmers think like computers instead of normal people.

After work, the husband does what his wife tells him, in the following order:

After work, I first loaded a business demand for buying steamed buns in my mind, so I had such a concept/variable = steamed buns in my mind.

Then I saw the watermelon seller. In the programmer's mind, this idea is similar to the following pseudo code:

If (you see the watermelon seller) {

Buy one.

}

//That's the problem. I've seen people selling watermelons, so I want to realize the content here. But what should I buy if I buy one? The wife didn't specify what was behind the "one" here. Then the existing content (that is, the steamed stuffed bun above) is called by default.

//So I bought a steamed stuffed bun/

So if the boyfriend is a programmer, the wife in the joke has two ways to avoid the above problems:

In other words, after the sentence "I bought a catty of steamed buns and brought them back", I clearly told my husband that the matter of buying steamed buns had come to an end. The next one has nothing to do with buying steamed buns.

Or, after "buy one", make it clear that you want to buy a "watermelon" instead of a steamed stuffed bun.