835
(page 2) 50 comments
sorted by: hot top controversial new old
[-] affiliate@lemmy.world 7 points 2 days ago

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.

[-] xthexder@l.sw0.com 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)

[-] cupcakezealot@lemmy.blahaj.zone 12 points 2 days ago

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

[-] Dekkia@this.doesnotcut.it 12 points 2 days ago

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

[-] marcos@lemmy.world 7 points 2 days ago

You think that about math not being localized too?

[-] d_k_bo@feddit.org 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)
[-] nebeker@programming.dev 7 points 2 days ago

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)
[-] calcopiritus@lemmy.world 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)
[-] ms5K8oWx@programming.dev 9 points 2 days ago

It's called java.

[-] darklamer@lemmy.dbzer0.com 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

[-] jaybone@lemmy.world 8 points 2 days ago

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.

[-] rooroo@feddit.org 6 points 2 days ago

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

[-] wischi@programming.dev 6 points 2 days ago* (last edited 2 days ago)

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

load more comments (3 replies)
load more comments (1 replies)
[-] morrowind@lemmy.ml 8 points 2 days ago

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

[-] graff@lemm.ee 2 points 2 days ago
[-] loaf@sh.itjust.works 6 points 2 days ago
load more comments
view more: ‹ prev next ›
this post was submitted on 19 Feb 2025
835 points (99.3% liked)

Programmer Humor

20033 readers
1841 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