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)

  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    18 days ago

    Bold of you to assume I write comments.

    (Yes, they’re usually in my native tongue. I think it’s better for you to express your comment clearly then stumble through a different language to make it accessible… chances are you’ll be reading that comment next and non-spanish speakers can use Google translate or whatever and ask you if something is unclear).

    • folkrav@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      17 days ago

      The place I used to work at had a bunch of people speaking various South and North Indian languages, Vietnamese, Swedish, French, English, Spanish and Brazilian Portuguese. I’d have spent my whole days on Google Translate lol

  • GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    I’ve always been writing comments and using variable names in English, at all jobs I’ve had. Probably also the non-professional code before I started writing code professionally.

    Part of this is that I’ve been working in a lot of companies with non-Swedish speakers, and another part is that it’s just kind of been expected that the code and everything around it is in English.

  • superkret@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    Comments are in English, but output is in German because I only write for myself, my OS has German localization, and English output would look out of place.

  • Daemon Silverstein@thelemmy.club
    link
    fedilink
    arrow-up
    0
    ·
    17 days 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).

  • crypto@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    I code in English by habit, comments included. I sometines write comments in French when writing code just for me, but code I write that is meant to be used by others is in English.

  • edinbruh@feddit.it
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    Depends. Generally English, unless they are “directed” to one specific person like the professor who’s gonna grade it. But even then I might go with English anyway.

    Oh I also use my language when I’m leaving an important warning to myself in a config file, like “this is needed because X! don’t touch it! If you touch it do Y!”

  • MicrowavedTea@infosec.pub
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    In English even when I’m the only person working on the project as there’s always the prospect of someone else looking at it. Also my language doesn’t use the latin script and I don’t want to mix other scripts into code files. You can always write it in latin script but that’s really annoying to read. Funnily enough I wouldn’t be so against comments in another “big” language like Spanish or German.

  • folkrav@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    17 days 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…

  • i_stole_ur_taco@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    17 days 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.

  • kubok@fedia.io
    link
    fedilink
    arrow-up
    0
    ·
    17 days 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).

  • Cralder@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    17 days ago

    At my job we write everything in english. Code comments, variable names, review comments. Everything. It’s just to make everything readable to people who don’t know our language because some people in the office are from other countries.