I ask because sometimes I feel very silly when writing clumsily in English and even sillier when I have to look up how to spell a particular word.

I want to know if I’m the only idiot that it happens to or if on the contrary it’s something generalized.

(Mi idioma es el Español, por cierto)

  • eatham 🇭🇲@aussie.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 hours ago

    I only know how to write English, but if I knew writing in multiple languages I would write the comment in both languages

  • oktoberpaard@feddit.nl
    link
    fedilink
    arrow-up
    6
    ·
    15 hours ago

    Using English is the only way that all my colleagues are able to read it, but if it’s just meant for you, or only for Spanish speaking people, I’d say why not.

  • 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    arrow-up
    17
    ·
    21 hours ago

    German here.

    I am not writing anything in my code in German. All of my code, my variables, my default texts, my comments, my documentation, my UI strings, etc. are always and explicitly in English.

    The only German I use, is when I provide translations for UI or documentation.

  • kubok@fedia.io
    link
    fedilink
    arrow-up
    12
    ·
    22 hours ago

    Always English. I live in a country where developers are hard to find. Chances are that I will get colleagues who do not speak my native language (yet).

    • NONE@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      16 hours ago

      I don’t know what are you talking about. I didn’t mark the post as nsfw and when I try to modify it, the nsfw option is disabled.

  • Treczoks@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    18 hours ago

    This actually depends on the kind of project. In larger and longterm projects I write my comments in English. In quick jobs like writing a source code generator or data swabbler that I need once or relatively short term, I use German. It does not make much of a difference for me, though, and I have a script that walks over a source tree to find some common German words just in case I had written something in German by accident.

  • i_stole_ur_taco@lemmy.ca
    link
    fedilink
    arrow-up
    25
    arrow-down
    1
    ·
    1 day ago

    This is expected Canadian source code:

    // cache the colour in case we need it later for the neighbour
    color = fetchColor();
    neighbor.color = color;
    

    When language keywords are all written in American English it’s foolish to try to author your code in a different language. But comments are fair game.

  • Matriks404@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    20 hours ago

    Writing detailed and technical comments in English is easier that saying a simple English sentence in real life for me, lol.

  • folkrav@lemmy.ca
    link
    fedilink
    arrow-up
    11
    ·
    1 day ago

    I’m French speaking, but I write all code and comments in English, all the time. The code is basically English keywords and symbols, the mix and match just looks weird, makes it harder to share snippets for help or debugging with non-speakers. Especially in code that will be read by other people after the fact, it also tends to make it less likely that this person will be able to understand it - maybe they’ll hire an offshore team or some guy who just immigrated…

  • Daemon Silverstein@thelemmy.club
    link
    fedilink
    arrow-up
    9
    ·
    1 day ago

    I’m Brazilian. For personal projects and snippets, especially if I’m going to share their code publicly (e.g. GitHub or GitHub Gists), I often use English. However, when it’s a project from a company I’m working for, I use Portuguese, as every company I’ve worked for so far are Brazilian (and my coworkers were Brazilian as well).