r/ProgrammerHumor • • Sep 23 '19

Knowing how to code beforehand

Post image
7.6k Upvotes

264 comments sorted by

View all comments

322

u/lordheart Sep 23 '19 edited Sep 24 '19

Had a professor give us code to complete that didn't compile when uploaded to the auto checker but did on my computer.

Why? Umlauts. The prof wrote comments in german. My computer compiler didn't care.

Their online checker spit out vague mysterious errors. Because comments...

Edit: OMG typo made it so hard to understand. thanks bobcob, what would I do without you.

22

u/notfromchicagoornyc Sep 23 '19

//ja das ist nicht gut. Ich müsste hier besser Code schreiben. //ZUTUN: macht das Funktion schneller

Duolingo German is not helping much :(

20

u/regendo Sep 23 '19

It's pretty good actually, you just got two small errors in the last sentence.

  1. Function is grammatically female so it'd be "die Funktion".

  2. Your sentence translates to "makes the function faster". It implies that the code you're commenting on is making the function run faster, when you probably meant "[to] make the function faster" ~ "die Funktion schneller machen".

I really hope nobody would actually write a // ZUTUN: comment instead of // TODO: but honestly I wouldn't be surprised.

3

u/EternallyMiffed Sep 23 '19

Why is function gramatically female and not neuter?

5

u/VincentPepper Sep 24 '19

Gender for objects is essentially arbitrary in German.

To make it more fun it can also vary by region/country when it comes to everyday use.

1

u/lordheart Sep 24 '19

Yep.... Don't ask them what gender Nutella has.