• Siegfried@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    21 minutes ago

    The real deal isn’t the language barrier but the keyboard layout. Most special characters usually used for coding are just perfectly at hand when using the US layout.

    At one point i started buying US keyboards set with the US-int layout, which i find easier to use than ES and latam.

  • schnurrito@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    14 minutes ago

    Most popular programming languages have English-language keywords and that can’t be changed, so we certainly have to learn those.

    How we learn to name symbols (variable/function names), that obviously depends on the programming course. But most real-world code has most symbols written in English with the possible exception of business-specific terminology that the business doesn’t use in English. The same is true of comments.

  • gandalf_der_13te@feddit.org
    link
    fedilink
    arrow-up
    9
    ·
    4 hours ago

    i’ve seen both. there is german program code with german variable names and german comments. yeah, it sounds about as strange as it is.

    // diese variable beschreibt den luftzug an den messrohren
    var trötflöte = lese_zahl_aus(datenbank);
    

    but it’s rare. most people who work in IT in germany will write english variable names and english comments.

    • blackbeans@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      1 hour ago

      In my experience it’s more common in industrial (plc) and embedded software. Where people don’t have to work in large teams.

    • Alex@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      3 hours ago

      It’s super common if it’s any sort of open source project because the collaborators can be anywhere and English is a good baseline.

      IIRC one of the big tasks when Star Office became Open Office (later Libre Office) was translating a bunch of the German comments to make the code more accessible.

      I’m sure I’ve seen some majority french code bases as well. There are certainly academic hypervisors out of China which have comments in Chinese kanji.

  • yesman@lemmy.world
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    5 hours ago

    Also air traffic control and commercial aviation radio communication are in English, worldwide.

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    21
    ·
    5 hours ago

    It depends honestly.

    Key words like If, Match, Else, From, This ,etc will be in English, but variable names can be in any Unicode language as the var name gets converted to machine code after compilation.

  • jol@discuss.tchncs.de
    link
    fedilink
    arrow-up
    4
    ·
    4 hours ago

    A mix. In uni we learned algorithms in pseudo code and that was always in native language. Actual coding was typically English, but older professors often did it in their language.

  • Björn@swg-empire.de
    link
    fedilink
    arrow-up
    16
    ·
    5 hours ago

    Preferably in English. Nothing is worse than reading code with a mixture of languages. Although false friends can also be quite annoying.

    • Skullgrid@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      4 hours ago

      What should you do if you inherit a project where they are already mixing languages because they just copy pasted from tutorials?

        • cecilkorik@lemmy.ca
          link
          fedilink
          English
          arrow-up
          1
          ·
          60 minutes ago

          The only solution to having too many standards is always to add another new standard. /xkcd

        • loie@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          3 hours ago
          int main(){
            cout << "It's more compact this way and yeah I'll die on this hill";
          Return 0;}
          
          //see you even get to end lines in devious winky smilies who doesn't love that
          
  • ndupont@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    2
    ·
    3 hours ago

    You’ll be surprised to learn that WinDEV can be programmed in a ton of diferent languages. I mean the instruction set and all. It feels dirty to read code written in french, and that’s my mother tongue. What a shit show. Only ‘logo’ for kids in primary school makes sense to have in their native language. EDIT : mostly french or English actually https://pcsoft.fr/wlangage.htm

  • BigDanishGuy@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    3 hours ago

    I teach my students to just code in English from the start. Not all languages/compilers/linkers/whatever handles the Danish characters ‘æ’, ‘ø’, and ‘å’ all that predictably, most companies will require you to use English for international collaboration, and besides most documentation is in English anyway. Last reason is why I urge my students to just use English versions when available. Some FLOSS translations are crap, and you can’t just copy paste an error into askjeeves and get an answer.

    The only thing that has to be in Danish is Excel automation, because for some bizarre reason Microsoft translated all some of the functions. I say some because I’ve seen functions in English that just wasn’t available in Danish Excel.

  • Zwuzelmaus@feddit.org
    link
    fedilink
    arrow-up
    4
    arrow-down
    2
    ·
    5 hours ago

    Do non-English speakers learn to code in English

    Why should they?

    Code is programming language, not natural language. If they have already learned some natural English, then maybe it seems practical. Otherwise, no reason to try that.

    • Skullgrid@lemmy.world
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      4 hours ago

      Well, unless you specifically take steps to change how types and built in functions are called, you’re going to be writing “string” “for” and “if”