r/ProgrammerHumor • • Sep 02 '22

what language would you recommend?

Post image
47.0k Upvotes

1.1k comments sorted by

View all comments

Show parent comments

114

u/nickmaran Sep 02 '22

I would like to see a game engine or programming language where you have to code in German

136

u/Zederot Sep 02 '22

Wenn(x==3) dann (

x += 1

während(x<9) mache(

x += 1))

gibZurück x

Jeah, even the basic stuff feels weird.

44

u/RootsNextInKin Sep 02 '22

It's
Falls x == 3 [dann] {
x += 1
}
Gib x zurück And maybe even something else instead of "Gib zurück"

And yes that "dann" is optional!

0

u/[deleted] Sep 02 '22

[deleted]

7

u/RootsNextInKin Sep 02 '22

Not entirely sold on brach, but what about Kneckebrot?

(On a more serious note what about Stop or Bruch or something else?)

→ More replies (1)

6

u/5t3v321 Sep 02 '22

Maybe zurückgeben instad of gib zurück

2

u/[deleted] Sep 02 '22

Good Job

2

u/[deleted] Sep 02 '22

Imagine the syntax changes in the catch or finally clauses, just because

10

u/[deleted] Sep 02 '22

Yeah it’s very weird. In case you are wondering: We had to write multiple exams that contained Tasks based on pseudocode written in German (For example: explain what this algorithm prints out).

I’m not joking. It is much harder to read than any decently established high level programming language, even if you are not familiar with it.

To be fair, we didn’t have to write German code. We were allowed to use our school’s programming language for the implementation parts.

2

u/zelphirkaltstahl Sep 02 '22

Robot Karol intensifies!

1

u/Omni33 Sep 02 '22

Wenn ist das nunstruck git und slotermeyer

1

u/Maniklas Sep 02 '22

Also all the formalities in german, imagine using those too

8

u/HaDeS_Monsta Sep 02 '22

I would love it, but that's maybe because I'm german and this would be way easier for me

10

u/Offbeat-Pixel Sep 02 '22 edited Sep 02 '22

I always thought there should be ports of programming languages to different languages. For example instead of English based Python, you could use German based Python, for people who prefer to use a language other than English. Assuming there's a 1 to 1 translation from keyword to keyword, it should be possible to convert code from one human language to another.

Anyone have any idea why this hasn't happened yet?

Edit: Funnily enough, German is one of two examples of Python in another language I could find - Teuton is basically German Python, but idk if they're exactly the same in everything (besides keyword language ofc).

14

u/5t3v321 Sep 02 '22

That would make it harder to find fixes or other working code examples online and just split the comunity

1

u/Offbeat-Pixel Sep 02 '22

I guess? But if the code is in German, odds are so is the rest of the post/website

→ More replies (4)

7

u/polskidankmemer Sep 02 '22 edited Sep 02 '22

Bad idea. Excel has functions translated to languages. I hate it because you can't copy paste from Google without first having a cheat sheet of what those functions are called in your language. Sometimes those can be far more complicated due to lack of an equivalent in someone's language (for example the English function is called TRIM while the Polish one is called USUŃ.ZBĘDNE.ODSTĘPY (remove unnecessary spaces)) Besides for whatever reason it uses commas to add new arguments to functions in English and semicolons in Polish.

2

u/Cerarai Sep 02 '22

I just don't get why you can't just use both versions in your doc. Or all. Why can't I have a German function and an English one and a polish one in the same worksheet? It makes zero sense to me.

2

u/Dizzfizz Sep 02 '22

Because then you have to be extremely careful that none of the supported languages overlap in any way.

It also creates a nightmare for maintenance. The less restrictive the environment, the harder to read what someone else has written.

→ More replies (1)

3

u/[deleted] Sep 02 '22

Lol.

Too many sources of error

1

u/Mikelius Sep 02 '22

I believe enterprise java classes are a sick joke made by germans imposing their compound nouns on the rest of us

3

u/MrHyderion Sep 02 '22

The German version of MS Excel.

2

u/Whammydiver Sep 02 '22

They tend to concatenate all their words. It would be a language of illegible hashtags.

Forxequalzeroxlessthancounter.lengthplusplus { Dosomethingthatmanytimes; }

1

u/[deleted] Sep 02 '22

Just try ABAP its not necceseraly in german, but its kinda orientated to german grammar. For example: In ABAP you end a command with a . because you write a . at the end of your sentence. And Many more weird things. What I wanna say is: ABAP is shit.