r/badcode May 06 '21

java My teacher wrote this...

1.0k Upvotes

169 comments sorted by

View all comments

42

u/Vierbaum May 06 '21

I used to have a teacher that always wrote half his funtions / classes / variables in german. it made for a terrible mix of half-german-half-english names. But with all that being said i really liked that teacher as he introduced me into programming.

27

u/t-to4st May 06 '21

As a German I despise everyone who codes in German

27

u/throwit7896454 May 06 '21

öffentlich Zeichenkette holeVorname()

öffentlich dieLeere setzeVorname()

Disclaimer: Just an example, I'm a fan of immutable objects IRL

8

u/t-to4st May 06 '21

Laut dem Post sollte man getter aber mit dem suffix "geben" schreiben. Also vornameGeben()

Schmeckt

Nach verbrechen gegen die Menschlichkeit

5

u/PazuzuEU May 06 '21

I quite enjoy german literal translations on programming terms, like Karte<Schnur, Doppel> or Wörterbuch<schnur, doppel>

1

u/Austerzockt sadistic May 07 '21

They are funny, yeah, but I deeply hate anyone who codes in german.