I want a programming language that supports German style composite words - eviltoast
  • Rikudou_Sage@lemmings.world
    link
    fedilink
    arrow-up
    61
    ·
    23 days ago

    Yeah, Excel does that, it always fascinated me. It was so weird writing =KDYŽ instead of =IF in Excel. Different times, I guess.

        • Sorse@discuss.tchncs.de
          link
          fedilink
          arrow-up
          12
          ·
          23 days ago

          Yes, but it would be funny if you could just switch languages in the middle of your sheet, чтобы можно было начать на русском, continue in English,وانتهى باللغة العربية.

          Tap for spoiler

          I hope that the built in translation in iOS can translate to Arabic well

      • bleistift2@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        8
        ·
        22 days ago

        The best part is that if your version of Excel is German, you can’t write =IF(). You have to use =FALLS().

        It’s always fun to google a function and then the translation.

          • bleistift2@sopuli.xyz
            link
            fedilink
            English
            arrow-up
            1
            ·
            22 days ago

            Could be. I try to avoid Excel. And I believe “wenn” is a wrong translation, whether the function has that name or not.

      • MedievalPresent@discuss.tchncs.de
        link
        fedilink
        arrow-up
        5
        ·
        22 days ago

        Internally Excel saves it in English (or some internal code) and translates it when opened.

        My company switched from Excel-Interops, where you had to send the German function name to Excel. Now we write .xlsx files directly and have to send the English function name. But when opened it displays all functions in German (or whatever localization Excel is set to).

    • Scrollone@feddit.it
      link
      fedilink
      arrow-up
      28
      ·
      23 days ago

      Yes, I also hate it!

      The Italian version of Excel had the brilliant idea of translating the MID() function into STRINGA.ESTRAI(), which means “extract string”.

      Seriously, what the fuck.

  • CodexArcanum@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    31
    ·
    23 days ago

    At least the names are extremely self-documenting. Some of those German variable names are long enough they might even be self-aware!

  • AllNewTypeFace@leminal.space
    link
    fedilink
    arrow-up
    32
    arrow-down
    1
    ·
    23 days ago

    A key reason English became the preeminent language of scientific and technical communication, and thus the source of keywords in programming languages, is because German (the other candidate) fell out of favour due to the two world wars. So, were it not for Prussian militarism, our programming languages may have instead been based on German (along with most scientific literature being in German).

    • Jrockwar@feddit.uk
      link
      fedilink
      arrow-up
      2
      ·
      22 days ago

      Also because, as a person who has studied multiple languages, German is hard and English is Easy with capital E.

      No genders for nouns (German has three), no declinations, no conjugations other than “add an s for third person singular”, somewhat permissive grammar…

      It has its quirks, and pronunciation is the biggest one, but nowhere near German (or Russian!) declinations, Japanese kanjis, etc.

      Out of the wannabe-esperanto languages, English is in my opinion the easiest one, so I’m thankful it’s become the technical Lingua Franca.

      • AllNewTypeFace@leminal.space
        link
        fedilink
        arrow-up
        10
        ·
        22 days ago

        Had the world settled on German, someone might be making a similar argument that the world dodged a bullet by choosing a language with phonetic orthography and words composed of logical building blocks rather than a mess like English

        • azertyfun@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          ·
          22 days ago

          Also English is an odd germanic-romance bastard child that Western Europeans tend to like because it has a decent number of cognates for everyone and a simple grammar IF you’re only aiming for simple conversational English. The barrier to entry is quite low, especially if you don’t give a shit about having a thick accent and straight up mispronouncing tricky words (as anyone knows who had a conversation in English with a non-fluent Italian/Spanish/French person).

          OTOH German used to be relatively widely spoken in Eastern Europe, and Slavic languages also use declensions AFAIK, and also even post WWII German held quite a bit of momentum in academic circles.
          So if the Soviet block had gone the Chinese route and become an economic behemoth instead of withering and dying at the dawn of the Information Age, German being the lingua franca (or at least giving English a run for its money) would have been a distinct possibility IMO.

  • Lazycog@sopuli.xyz
    link
    fedilink
    arrow-up
    27
    ·
    23 days ago

    My experience with German programming languages is with Siemens PLC’s, since the programming language changes together with the IDE when you set the language to German. Looking at Structured Text / Instruction List having U (und) instead of A (and) operator and bunch of other things was interesting.

    But IIRC there were also higher programming languages that are in other languages? Wasn’t there one for arabic? Was this it: https://github.com/nasser/---/

  • Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    26
    ·
    22 days ago

    I want a programming language that supports German style composite words

    Java

  • bzah@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    21
    ·
    23 days ago

    I know there is a programming language called windev, all in French, just in case you want to suffer. I would except a good exception handling mechanism in a French base language.

    An example from their website: ` TotalCA est un monétaire = CalculCAMoisEnCours()

    SI TotalCA >= 1 250 000 ALORS LIB_Objectif= “Objectif dépassé !” LIB_Objectif.Couleur= VertFoncé

    SINON SI TotalCA <= 200 000 ALORS LIB_Objectif= “Objectif non atteint” LIB_Objectif.Couleur= RougeClair FIN

    FIN `

    • LiveLM@lemmy.zip
      link
      fedilink
      English
      arrow-up
      24
      arrow-down
      1
      ·
      22 days ago

      Microsoft should be charged with war crimes for deciding to localize both Formulas AND keyboard shortcuts across the Office Suite.

      • furry toaster@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        6
        ·
        edit-2
        22 days ago

        THIS SO MUCH THIS, LOCALIZED SHORTCUTS ARE PAINFUL, I CAN NOT FIND WAYS TO FULLY EXPRESS MY HATRED FOR THEM AS SOMEONE WHO HAD TO USE OFFICIE 365 IN PORTUGUESE also btw mnemonic shortcuts were a mistake

    • driving_crooner@lemmy.eco.br
      link
      fedilink
      arrow-up
      9
      ·
      22 days ago

      I’m am immigrant in Brazil and have to deal with Portuguese excel almost everyday. At least I know my Python and only had to deal with excel to do simple things.

    • boonhet@lemm.ee
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      22 days ago

      I hear the French usually program in French as well. I do not want to ever work in France.

      • fibojoly@sh.itjust.works
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        22 days ago

        Nah, just that WinDev thing.
        On the plus side we have actual holidays and good luck bothering me outside of hours, haha!

        • boonhet@lemm.ee
          link
          fedilink
          arrow-up
          3
          ·
          22 days ago

          On the plus side we have actual holidays and good luck bothering me outside of hours, haha!

          I mean we have that here in Estonia too :P

          • fibojoly@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            20 days ago

            Haha, fair enough! I’m glad you do!
            If you believed the stereotypes, you’d think we’re the only ones, sometimes :)

            • boonhet@lemm.ee
              link
              fedilink
              arrow-up
              3
              ·
              20 days ago

              I think that’s mostly an American stereotype, I believe Estonia and France and several other European countries get roughly the same amount of paid holidays as well as paid time off. Though apparently you guys also have a 35 hour work week, which I’m jealous of!

    • dQw4w9WgXcQ@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      22 days ago

      Norwegian as well. It’s basically impossible to find the documentation. Translation has somehow changed the order of words, som direct translation of formulaes is not helpful for searches either.

    • Evil_Shrubbery@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      22 days ago

      The French are doing what??

      I mean how?
      Specifically, I need to understand it for scientific reasons.

  • arschfidel@discuss.tchncs.de
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    22 days ago

    integer

    Was soll der Quatsch denn heißen? Wer ist hier integer? Bei uns heißt das Ganzzahl, verdammt!!1!

    *wütende Programmierergeräusche*

  • ZILtoid1991@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    22 days ago

    In college, we had to use Hungarian pseudocode. I still have PTSD from it, especially as the teacher was a psycho that had a meltdown every time her “how do you do fellow kids” moment terribly backfired, most infamously by putting Twilight references into a test (everybody audibly cringed reading the tests).

    • QuazarOmega@lemy.lol
      link
      fedilink
      arrow-up
      9
      ·
      21 days ago

      Support your teachers trying to be fun, at least it shows they care enough to put in more effort.
      Also I’m curious how she managed to slide in Twilight references of all things in a programming class lol

  • Taewyth@jlai.lu
    link
    fedilink
    English
    arrow-up
    12
    ·
    21 days ago

    I want a programming language that supports German composite words.

    My brother in Turing, that’s just camel case.

    • Ebber@lemmings.world
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      21 days ago

      But you could go further. I want to be able to define an Auto and a Bahn, then immediately be able to go

      new AutoBahn()
      
    • loutr@sh.itjust.works
      link
      fedilink
      arrow-up
      38
      ·
      edit-2
      23 days ago

      The VBA part of the meme is real, VBA is (was?) localized. Turns out it’s a horrible idea: some keywords are badly translated, some are not translated at all. Googling localized error messages is useless, so you need to guess the original error message from the translation. Want to copy/paste a function from SO? Not so fast, you need to translate the keywords first! And the variable names as well while you’re at it.

      Ironically, you end up spending a lot of time on translation-related issues. I’ve worked on a french-VBA app, and it was a miserable experience (well, even more miserable than english VBA).

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        22 days ago

        Yeah, one time I helped out an HR person with an Excel formula. It took like 5 minutes to write the formula on my laptop. Then I sent it to them and it took another 5 minutes to translate it into the local language…

    • nebeker@programming.dev
      link
      fedilink
      English
      arrow-up
      6
      ·
      23 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.

    • calcopiritus@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      23 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.