• gandalf_der_13te@feddit.org
    link
    fedilink
    arrow-up
    20
    ·
    8 days 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.

    • Alex@lemmy.ml
      link
      fedilink
      arrow-up
      8
      ·
      8 days 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.

        • Alex@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          7 days ago

          Thanks. Are they related? I don’t understand any Asian languages myself but I do recognise difference in for example the Korean symbols and Japanese ones. But Japanese and Chinese ideograms look very similar to my ignorant eyes.

          • Kazumara@discuss.tchncs.de
            link
            fedilink
            arrow-up
            4
            ·
            7 days ago

            Yes they are very related.

            Japanese, Korean and Vietnamese loaned the symbols from China when they began writing their languages. However Japanese uses two moraic writing systems in addition (Hiragana and Katakana), Korean has later switched to a syllabic one (Hangul), and Vietnamese switched to a latin derived alphabet. Those are probably what you recognize as distinct.

            Where and when they use or used Chinese symbols the meanings per symbol are or were not consistent in the languages, as separate drifting of meaning and reforms of the writing system occured over a long period.

            The symbols are called 漢字 in traditional Chinese and 汉字 in simplified Chinese, the are called 漢字 in Japanese, it used to also be 漢字 in Korean, now in Hangul it is 한자, in Vietnamese it was 漢字 and is now Chữ Hán or Hán tự.

            As you can see they used the Chinese name for the Chinese ideograms. But they all say it a little differently. Hànzì in Mandarin, Kanji in Japanese, Hanja in Korean, Chữ Hán or Hán tự in Vietnamese. But it all means “Han” “characters”, with “Han” referring to the Han dynasty of Chinese rulers here.

            I think Japanese is the only language who loaned them and is still significantly using them. Only texts for children or learners would typically be written fully in Hiragana and Katakana, normal daily written language will have most concepts represented by Kanji, modern loanwords and foreign names in Katakana, and Hiragana for particles and some verbal endings etc for inflection.

          • Danquebec@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            4 days ago

            The Chinese invented the Chinese ideograms.

            The script-less Japanese adopted them, but they didn’t fit their language well on their own. So, they created hiragana (a syllabary) to be able to properly write their own language. A Japanese sentence typically comprises Chinese ideograms and hiragana.

            Later, both the People’s Republic of China and Japan simplified their ideograms, but not in the same way, and the Chinese went much further.

            So, now, Taiwan, Hong Kong and Macao use the traditional hanzi.

            Japan uses their kanji, somewhat simplified.

            And the PRC, Malaysia and Singapore use the simplified hanzi.

            South Korea uses hanja which is virtually the same as traditional hanzi. And North Korea completely abandonned the Chinese ideograms.

    • blackbeans@lemmy.zip
      link
      fedilink
      arrow-up
      8
      ·
      8 days ago

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