this post was submitted on 19 Feb 2025
829 points (99.2% liked)

Programmer Humor

20703 readers
2465 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 2) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 2 days ago (1 children)

i will never forgive them for making the pointer type be T* instead of &T. most confusing thing ever.

don’t even get me started on C++ making T& the reference type and then making T&& be something other than the double reference type.

[–] [email protected] 5 points 2 days ago

I always thought T&& made sense as a movable reference. In order to move something, you need to change where the reference points, so conceptually you need a reference to the original reference to update it. (Effectively a double reference)

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

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

[–] [email protected] 12 points 2 days ago

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

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

You think that about math not being localized too?

[–] [email protected] 7 points 2 days ago

There are some local differences in math notation, e.g. . vs. , as a decimal separator, vs. × for multiplication, : vs ÷ for division et cetera.

load more comments (1 replies)
[–] [email protected] 7 points 2 days ago (11 children)

Industrial controls equipment made by German companies can be programmed in English or German. You can also switch languages (German/English) at any time and the IDE switches over all the keywords.

load more comments (11 replies)
[–] [email protected] 6 points 2 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.

load more comments (3 replies)
[–] [email protected] 9 points 2 days ago

It's called java.

[–] [email protected] 9 points 2 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 2 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 2 days ago (2 children)

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

[–] [email protected] 6 points 2 days ago* (last edited 2 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] 8 points 3 days ago

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

[–] [email protected] 2 points 2 days ago
[–] [email protected] 6 points 3 days ago
load more comments
view more: ‹ prev next ›