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

Programmer Humor

32558 readers
671 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 (4 children)

Am I missing the joke? Tomatoes are fruits.

[–] Pons_Aelius@kbin.social 40 points 1 year ago (2 children)

Intelligence is knowing Tomatoes are fruits.

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

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

[–] Pons_Aelius@kbin.social 22 points 1 year 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.

[–] xmunk@sh.itjust.works 23 points 1 year ago* (last edited 1 year ago) (1 children)

{ fruit* Tomato }

[–] CanadaPlus@lemmy.sdf.org 3 points 1 year ago

I think that one might be intelligence too, sorry @xmunk@sh.itjust.works.

[–] dan1101@lemm.ee 7 points 1 year ago (1 children)

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

[–] CanadaPlus@lemmy.sdf.org 2 points 1 year ago* (last edited 1 year ago)

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

[–] 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.

[–] 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.

[–] 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.

[–] scorpionix@feddit.de 7 points 1 year ago (1 children)

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.

[–] AngrilyEatingMuffins@kbin.social 3 points 1 year ago (2 children)

We have plenty of homographs as well, “lead,” “bow,” etc but every once in a while I’m struck by just how massive the vocabulary of English is compared to… well, every other language.

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

how massive the vocabulary of English is compared to… well, every other language.

English doesn't even has definite articles.

[–] lelgenio@lemmy.ml 7 points 1 year ago (1 children)
[–] Bene7rddso@feddit.de 1 points 1 year ago

As a german I agree, even if I never have to think about it

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

This is giving me stress daymares about Spanish in high school.

Still, it's an interesting point you make.

But then again, with definitive articles you have a bunch of things that are not supposed to convey gender conveying gender. Like a toaster... It would suck to have to remember the gender of a toaster, or, well toasters in general.

[–] Dirk@lemmy.ml 3 points 1 year ago* (last edited 1 year ago) (3 children)

It's "der Toaster" which makes it masculine. On the other hand, a girl ("das Mädchen") is neuter. The grammatical gender is somewhat arbitrary and does not follow any "real" rules.

As a German you somehow "feel" if the correct article is used, though.

[–] erogenouswarzone@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

Yeah, fuck that. English is bs enough.

Edit: yeah, that "feeling" is knowing it so well, you don't totally understand it, and also means it's hard to convey

[–] barsoap@lemm.ee 1 points 1 year ago

It's less about magical feelings but rules that native speakers know but aren't aware of. Toaster is clearly male because nouns constructed from verb+er are always male.

Also "male gender" is kinda misleading, it's basically a mistake early linguistics made because it was so centered around Indo-European languages. The modern term is noun class, and Indo-European languages share the trait that they have three noun classes, one containing the word for "woman", the other the one for "man", and another the word for "thing". That's where the names come from: Bridges aren't female in German they simply share a noun class with women.

And girl is neuter in German because all diminutives are. "Deern" is definitely female.

[–] Faresh@lemmy.ml 1 points 1 year ago

Embarrassingly for someone whose native language is german, I often use the masculine when the neuter should have been used, because they feel the same to me. I never was taught any formal grammar in german, though, so that might play a role.

[–] JungleJim@sh.itjust.works 1 points 1 year ago (1 children)

We got diff'ernt words fer lightbulb and pear though, I tell ya hwat.

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

German has different words, too. Even multiple one depending on accuracy

  • die Birne -> the pear
  • die Glühbirne -> "glowing pear", the light bulb, coming from the shape of the bulb, common, but even Germans see that its dumb
  • die Glühlampe -> "the glowing lamp", coming from the literally glowing filament that is used to produce light, the usual term
  • das Leuchtmittel -> "the thing that shines", no direct translation, closest would be "lamp", to describe, well, a thing that shines, independent of what is used to produce the light, usually used in technical documentation/environment

German also has multiple other terms to describe a lot of different light bulb shapes and types. Germans can even make up completely new types of light bulbs due to the heavy use of compound words, and every other German can understand that on the fly without further explanation.

Let me just imagine some.

  • das Bootshausseitenflutlicht -> a floodlight at the side of a boat house
  • die Dreiecksleuchte -> a lamp or light bulb in the shape of a triangle
  • das Hinterhausnachtlicht -> a night light for a part of a tenement house accessible only through a courtyard
[–] JungleJim@sh.itjust.works 3 points 1 year ago* (last edited 1 year ago)

That's really cool. For whatever it's worth I was joking. I've always admired German and almost elected to learn it in highschool, but socio-geographically(an off the cuff word combination in English), learning Spanish made more sense, as there are many Spanish speakers. But I digress; thank you for explaining such a neat feature of your language to me. I also must admit that the English word is not totally dissimilar in origin; a light-bulb glows in a lamp, but an onion is a bulb in the ground, so it isn't too different from glowpears.

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

That English has more words than other languages is a myth. Idk why but it keeps getting perpetuated so i guess people just believe it to be true.

Whats more is that its kinda difficult to even narrow down what a word is in a single language, and even more so to find a definition that fits all of them.

[–] AngrilyEatingMuffins@kbin.social 2 points 1 year ago (1 children)
[–] banana_tree@lemmy.ml 1 points 1 year ago (1 children)

Impressively the babbel article manages to include other commons myths like implying english is some kind of mix language rather than a germanic one when it says "This is largely due to invasions of England by the Vikings and then the Normans" about why English supposedly has more words than other languages. This type of incorporation of loanwords is common in almost all big languages.

It argues based on dictionaries and effectively debunks why you can't (for comparison I'd like to add that the SAOB of the Swedish Academy lists circa 500k words).

There's nothing in this article that says English has the most words other than "So, while English is a clear contender for having the most words and German and Turkish have a large capacity for infinite combinations, all languages end up influencing others." Still, there's no justification for the "clear contender" bit other than the Oxford dictionary having more words than Larousse and Littré.

Feels to me like the article just reinforces the notion (and reality) that you can't even make comparisons like that.

Nevermind the fact that this idea is a well known myth in linguistics and arguing against it is kind of like arguing against flat earth theory.

[–] AngrilyEatingMuffins@kbin.social 1 points 1 year ago (1 children)

You don’t really know what you’re talking about

[–] 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.

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.