this post was submitted on 14 Nov 2023
804 points (94.6% liked)

Programmer Humor

32453 readers
594 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
[–] scorpionix@feddit.de 29 points 1 year ago (3 children)

Am I missing the joke? Tomatoes are fruits.

[–] FishFace@lemmy.world 6 points 1 year ago (1 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@lemmy.world 11 points 1 year 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@lemmy.world 8 points 1 year 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@lemmy.world 2 points 1 year ago

Yeah most likely.

[–] xmunk@sh.itjust.works 6 points 1 year ago (2 children)

As a proud Massachusettsan, tomatoes are definitely vegetables.

(Technically, tomatoes are both fruits and vegetables)

[–] two_wheel2@lemm.ee 8 points 1 year 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.

[–] xmunk@sh.itjust.works 6 points 1 year 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.

[–] MalReynolds@slrpnk.net 2 points 1 year ago

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

[–] fred@lemmy.ml 1 points 1 year ago (1 children)

Does this vary from place to place?

[–] xmunk@sh.itjust.works 2 points 1 year 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.

[–] fred@lemmy.ml 1 points 1 year ago* (last edited 1 year 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?

[–] xmunk@sh.itjust.works 2 points 1 year ago

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

[–] hypertown@lemmy.world -2 points 1 year 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.

[–] lowleveldata@programming.dev 7 points 1 year ago

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

[–] scorpionix@feddit.de 7 points 1 year 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.

To be conformant with PEP-8.

[–] CanadaPlus@lemmy.sdf.org 2 points 1 year ago* (last edited 1 year 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.