this post was submitted on 14 Nov 2023
813 points (94.7% liked)

Programmer Humor

32192 readers
489 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 29 points 10 months ago (4 children)

Am I missing the joke? Tomatoes are fruits.

[–] [email protected] 40 points 10 months ago (2 children)

Intelligence is knowing Tomatoes are fruits.

Wisdom is knowing not to put them in a fruit salad.

[–] [email protected] 10 points 10 months ago (1 children)

Greek salad would like a word... the only things that aren't a fruit in Greek salad are the onions and feta.

[–] [email protected] 22 points 10 months ago (2 children)

Wisdom is knowing not to put them in a fruit salad.

A Greek salad is not a fruit salad, it is a...Greek salad.

[–] [email protected] 23 points 10 months ago* (last edited 10 months ago) (1 children)
[–] [email protected] 3 points 10 months ago

{ fruit* Tomato }

[–] [email protected] 3 points 10 months ago

I think that one might be intelligence too, sorry @[email protected].

[–] [email protected] 7 points 10 months ago (1 children)

Pragmatism is putting tomatoes with the vegetables because of taste, which is one of the most important parts of food.

[–] [email protected] 2 points 10 months ago* (last edited 10 months ago)

Legalism is declaring in 1893 that it is a vegetable for tax purposes, because fuck you, pay taxes.

[–] [email protected] 6 points 10 months ago (2 children)

As a proud Massachusettsan, tomatoes are definitely vegetables.

(Technically, tomatoes are both fruits and vegetables)

[–] [email protected] 8 points 10 months ago (1 children)

Aren’t fruits subsets of vegetables? Without looking it up I thought that vegetables were the edible part of the plant and fruits are edible reproductive parts of the plant. I could be totally off on that though.

[–] [email protected] 6 points 10 months ago (1 children)

Yea, you're totally correct. This whole confusion comes from a Supreme Court case that involved tariffs though... Basically, tomatoes are a staple good and should be taxed like a regular vegetable and not receive the elevated fruit tax.

[–] [email protected] 2 points 10 months ago

i.e. Americans ruining english for the rest of the world (see also 7th day nutjobs), thanks guys...

[–] [email protected] 1 points 10 months ago (1 children)

Does this vary from place to place?

[–] [email protected] 2 points 10 months ago (1 children)

It varies by language since the meaning of fruit and vegetable are language specific but that's universal for English. A fruit is an edible portion of a plant that contains seeds and a vegetable is an edible portion of a plant, so... all fruits are vegetables.

[–] [email protected] 1 points 10 months ago* (last edited 10 months ago) (1 children)

Ok but like, why draw the line at Massachusetts? Lol. If I make a wrong turn and end up in New Hampshire am I going to have to reevaluate my fruits and vegetables?

[–] [email protected] 2 points 10 months ago

Oh, Massachusetts was behind them being classified as a vegetable but not a fruit for tax reasons.

[–] FishFace 6 points 10 months ago (2 children)

The joke is that almost everyone calls them vegetables because the botanic categorisation of parts of plants is niche jargon that is not useful in everyday life, whereas the culinary categorisation is useful, and so your shopping list correcting you is worse than unnecessary.

[–] mpa92643 11 points 10 months ago (2 children)

But that's not what TypeScript does. The joke in the meme doesn't really even make sense.

A better analogy would be you have a basket that's explicitly labeled "Fruit" and TypeScript complains if you try to put laundry detergent in it because you said it's supposed to be a basket of fruit.

This meme was clearly made by someone who doesn't use or understand TypeScript.

[–] Windex007 8 points 10 months ago

This meme was clearly made by someone who doesn't use or understand TypeScript.

It was made by someone who doesn't understand types, period.

Curious if it's the same wizard who was explaining that Linus doesn't understand programming because he has opinions on arm vs Intel architecture. EVERYONE programs in JavaScript anyways and my JavaScript always works on arm. Has Linus lost the plot?

[–] FishFace 2 points 10 months ago

Yeah most likely.

[–] [email protected] 1 points 10 months ago

@FishFace @scorpionix

I mean, calling them fruits or vegetables doesn't matter when cooking imo.

The reason why I say this is that vegetables are not interchangeable in a recipe and neither are fruits.

[–] hypertown -1 points 10 months ago (5 children)

Well, that depends on definition. But the joke is why on earth would you want to write types on your shopping list? Like this:

  • tomatos (vegetable)
  • apples (fruit)

Etc.

[–] [email protected] 7 points 10 months ago

Well, I can't think of an English example from the top of my head, but in German the words for Pear and (light) bulb are the same. So there are some exotic use cases.

[–] [email protected] 7 points 10 months ago

Why not? If a shop is having a sale on fruits only then I would like to sort out all the fruits quickly.

[–] [email protected] 7 points 10 months ago

To be conformant with PEP-8.

[–] [email protected] 2 points 10 months ago* (last edited 10 months ago)

So that the mindless automaton delivering your groceries doesn't unexpectedly give you tomatoes for your sundae, in a future expansion to dish-based orders.

I've yet to create a type error that didn't correspond to me thinking about something wrong.