• gandalf_der_13te@feddit.org
    link
    fedilink
    arrow-up
    16
    ·
    edit-2
    12 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
      6
      ·
      10 hours 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
      5
      ·
      11 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.