this post was submitted on 19 Feb 2025
838 points (99.3% liked)

Programmer Humor

20743 readers
323 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
(page 3) 25 comments
sorted by: hot top controversial new old
[–] [email protected] 32 points 4 days ago (5 children)

A key reason English became the preeminent language of scientific and technical communication, and thus the source of keywords in programming languages, is because German (the other candidate) fell out of favour due to the two world wars. So, were it not for Prussian militarism, our programming languages may have instead been based on German (along with most scientific literature being in German).

load more comments (5 replies)
[–] [email protected] 29 points 4 days ago

I am german and I feel physical pain reading this code

[–] [email protected] 12 points 4 days ago (19 children)

I know this is a joke but it's still wild to me that programming languages aren't localised.

[–] [email protected] 19 points 4 days ago

Want to make my job harder? Because that's how you make my job harder.

[–] [email protected] 6 points 4 days ago

Considering that using a keyword to name anything results in compiler (or worse! Interpreter) errors, and that libraries are a thing. And also that copy-pasting code from the internet is a thing. I don't think it would be a good idea to localize programming languages.

[–] [email protected] 43 points 4 days ago* (last edited 4 days ago) (1 children)

The VBA part of the meme is real, VBA is (was?) localized. Turns out it's a horrible idea: some keywords are badly translated, some are not translated at all. Googling localized error messages is useless, so you need to guess the original error message from the translation. Want to copy/paste a function from SO? Not so fast, you need to translate the keywords first! And the variable names as well while you're at it.

Ironically, you end up spending a lot of time on translation-related issues. I've worked on a french-VBA app, and it was a miserable experience (well, even more miserable than english VBA).

load more comments (1 replies)
[–] [email protected] 12 points 4 days ago

I guess it would make it way more complicated to use other peoples code if that where the case.

load more comments (15 replies)
[–] [email protected] 77 points 4 days ago (3 children)

Finally, a language where CamelCase feels natural

[–] [email protected] 15 points 4 days ago (1 children)
load more comments (1 replies)
load more comments (2 replies)
[–] [email protected] 9 points 4 days ago

I'll just leave this here, "An Introduction to German for ABAP/4 Programmer" (SAP):

https://aix1.uottawa.ca/~weinberg/sap-germ.html

[–] [email protected] 8 points 4 days ago (1 children)

Why is main capitalized but not printf???

If they are trying to follow German rules where nouns are capitalized, I guess this explains why their version of int would be capitalized, but that’s super annoying. Maybe C# is based on this.

[–] [email protected] 6 points 4 days ago (2 children)

And then why is Ganz in caps. I call cap on German C.

[–] [email protected] 5 points 4 days ago* (last edited 4 days ago) (3 children)

Could be because Ganz is short for Ganzzahl and a noun.

load more comments (3 replies)
load more comments (1 replies)
[–] [email protected] 53 points 4 days ago (1 children)

Seriously, fuck Excel for this. I always hate to look up function names in German.

[–] [email protected] 26 points 4 days ago (4 children)

Yes, I also hate it!

The Italian version of Excel had the brilliant idea of translating the MID() function into STRINGA.ESTRAI(), which means "extract string".

Seriously, what the fuck.

load more comments (4 replies)
[–] [email protected] 68 points 4 days ago (1 children)

Yeah, Excel does that, it always fascinated me. It was so weird writing =KDYŽ instead of =IF in Excel. Different times, I guess.

[–] [email protected] 12 points 4 days ago (7 children)

Does that get translated if someone else with a different language opens that file?

load more comments (7 replies)
[–] [email protected] 8 points 4 days ago

Oh? You want composit(ion)? Over inheritance maybe?

[–] [email protected] 31 points 4 days ago (2 children)

My experience with German programming languages is with Siemens PLC's, since the programming language changes together with the IDE when you set the language to German. Looking at Structured Text / Instruction List having U (und) instead of A (and) operator and bunch of other things was interesting.

But IIRC there were also higher programming languages that are in other languages? Wasn't there one for arabic? Was this it: https://github.com/nasser/---/

[–] [email protected] 13 points 4 days ago (4 children)

There's also Alef, which I thought was the only Arabic programming language 'till now.

Edit: after searching around, there seems to be lots of Arabic scripting and programming languages, most are discontinued:

[–] [email protected] 4 points 4 days ago

Maybe that was the one I've originally seen. Not sure which one :D

load more comments (3 replies)
[–] [email protected] 7 points 4 days ago

Of course.. even an Arabic programming language has a recursive acronym name

[–] [email protected] 6 points 4 days ago
[–] [email protected] 72 points 4 days ago (2 children)

Wofür steht 'wd'??? Wochendag oder wie??? GEFEUERT werden muss die Person!

[–] [email protected] 42 points 4 days ago

Abor dor Klaus aus Leipzsch saacht das doch so…

load more comments (1 replies)
load more comments
view more: ‹ prev next ›