• Yaky@slrpnk.net
      link
      fedilink
      arrow-up
      2
      ·
      29 days ago

      Why? Programming language isn’t a natural language. In fact, I think not knowing English makes it easier, since you cannot attach any preconceived notions, assumptions, or word order to keywords. I learned some Pascal, Visual Basic and whatever GameMaker used at the time without being fluent in English.

    • MrScottyTay@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      29 days ago

      Foreign? For some these languages are native. Foreign is relative.

      (I’m just being pedantic, i understand that relatively to you - and me - this is foreign)

  • argh_another_username@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    29 days ago

    I worked with one of the authors of the Brazilian SQL. It was exactly what it looks, every reserved word translated to Brazilian Portuguese.

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

      Oh shit, I’d never get anything done, as I’d imagine my lovely friend’s accent reading this shit out. Selecione * de tbl_minha-tabela onde nome não é nulo Hahaha! I love it!

    • ByteJunk@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      29 days ago

      Oh god. I still have nightmares about that time I had excel formulas in Portuguese, I refuse to think about SQL.

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        29 days ago

        Don’t forget the keyboard shortcuts. Office products would change shortcuts according to the language, so it would be more mnemonic. Ctrl-F for find and Ctrl-B for bold would be reassigned to whatever initials that language had. Fun! /s

        • Hudell@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          1
          ·
          29 days ago

          Not even the right initials. Most of the actions’ names had the same few initials so they had to find synonyms to use the shortcut for. Search was Ctrl+L (from Locate). In other cases they just used whatever letter was next on the keyboard to the initial that was already in use.

        • SkunkWorkz@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          28 days ago

          Man I’m glad Dutch keyboards are just US international. So all the shortcuts are just the same as the English version. So I never had to unlearn localized shortcuts.

  • dejected_warp_core@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    29 days ago

    I’m all in favor of zuruck replacing return, because that just sounds cooler. Plus z doesn’t get enough use in my programs these days.

      • Appoxo@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        0
        ·
        28 days ago

        Do as most non-DACH countries do: Just use the regular letter instead of the Umlaut.

        Example:
        Über-Mensch -> Uber-Mensch

        • d_k_bo@feddit.org
          link
          fedilink
          arrow-up
          0
          ·
          28 days ago

          Just use the regular letter instead of the Umlaut

          But that’s just wrong. ü has a different meaning and pronunciation than u.

          If umlauts aren’t available, the correct way to write umlauts is with an additional e: zurueck.

          Über-Mensch -> Uber-Mensch

          Please be aware that this term can be problematic, since it can be seen as a foundation for fascist ideas. https://en.wikipedia.org/wiki/Übermensch#Use_by_the_Nazis

          • vaionko@sopuli.xyz
            link
            fedilink
            arrow-up
            0
            ·
            28 days ago

            This makes it horrible to read. An example that comes to mind is a Finnish athlete with the last name Määttä. If it was Maatta, it would be pronounced differently but still understandable if you knew the person. But it was translated into Maeaettae which is just horrible

            • siipale@sopuli.xyz
              link
              fedilink
              arrow-up
              1
              ·
              9 days ago

              Finnish doesn’t have umlauts. Characters ä and ö are entirely different and separate from a and o so it doesn’t make sense to add the letter e signifying a-umlaut or o-umlaut when writing in Finnish. German has umlauts so it makes sense to write either ä or ae when writing in German.

              I agree it’s best to write Maatta if letter ä is not available. I suppose the vocal harmony makes it easy to distinguish whether a is supposed to be a or ä and if o is supposed to be o or ö.

    • ChaoticNeutralCzech@feddit.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      29 days ago

      I found a random PHP file online and recreated your trauma:

      <?phpcz
      jmennýprostor Itb;
      
      
      třída OvladačUživatele
      {
          soukromá §větev;
      
          veřejná funkce akcePřihlašovacíhoFormuláře()
          {
              §poleParametrů = [
                  'názevStránky' => 'Přihlašovací formulář',
              ];
              §vzor = 'domov.html.větev';
      
              §html = §toto->větev->vykresli(§vzor, §poleParametrů);
              vypiš §html;
          }
      
      
          veřejná funkce zpracujPřihlašovacíAkci(§uživatelskéJméno, §heslo)
          {
              když(§toto->platnéÚdajeSprávce(§uživatelskéJméno, §heslo)) {
                  §_SEZENÍ['uživatelskéJméno'] = §uživatelskéJméno;
                  §poleParametrů = [
                      'názevStránky' => 'Vzorový formulář',
                  ];
                  §vzor = 'domov.html.větev';
      
                  §html = §toto->větev->vykresli(§vzor, §poleParametrů);
                  vypiš §html;
              } jinak {
                  §poleParametrů = [
                      'názevStránky' => 'Formulář chyby přihlašování',
                  ];
                  §vzor = 'chybaPřihlášení.html.větev';
      
                  §html = §toto->větev->vykresli(§vzor, §poleParametrů);
                  vypiš §html;
              }
          }
      
          soukromá funkce platnéÚdajeSprávce(§j, §h)
          {
              když('admin' == §j && 'admin' == §h){
                  vrať pravda;
              }
              jinak když('staff' == §j && 'staff' == §h){
                  vrať pravda;
              } jinak {
                  vrať nepravda;
              }
          }
      
          veřejná funkce jePřihlášen()
          {
              když(jenastaveno(§_SEZENÍ['uživatelskéJméno'])){
                  vrať pravda;
              } jinak {
                  vrať nepravda;
              }
          }
      
          veřejná funkce uživatelskéJménoZSezení()
          {
              když(jenastaveno(§_SEZENÍ['uživatelskéJméno'])){
                  vrať §_SEZENÍ['uživatelskéJméno'];
              } jinak {
                  vrať '';
              }
          }
      
      }
      

      Is this what it looked like? (I also took the liberty of replacing $ with § because of the Czech keyboard layout; FYI: yes we do have a $ available as AltGr+ů but § is in the base layer; I would also replace the backtick/grève `, which is obtained by pressing AltGr+š once or twice (OS-dependent), with °).

      Edit: BTW my first code was in the “Imagine” program, a Logo IDE with Czech localization (including syntax: do, vz, vp, vl, puntík, smaž, domů, příkaz, konec, piš etc.). The documentation was piss-poor, I never learnt if it had arrays or code comments. The textbook I had didn’t even mention variables, I only learned about them in a short PDF guide I found online. Before that, I would use pixels on the canvas as variables.

      Had my 10yo self received a Python runtime instead, I wouldn’t be stimied by the “you don’t need to pass arguments if every variable is global” mindset I’m still struggling to overcome. I found programming challenges online and was able to solve most theoretical ones, but Imagine was too limited to implement all but the basic practical ones, not to mention that it ran way slower than Python would. I was convinced that the lack of speed was mostly the hardware’s fault and that I would need a low-level language like C++ to solve the 1000×1000 inputs in some puzzles. I got in touch with the challenge authors and they suggested Eclipse but I couldn’t get it to work. I was too overwhelmed by the English interface and documentation and barely knew what a compiler was. I learnt decent English soon after but the fear of IDEs stayed, and eventually I turned towards electronics instead.