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)

  • aluminium@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    17 hours ago

    No, I once had the displeasure of working with a mixed german english codebase (where also classes and functions were in both languages). It was quite the experience.

  • Boomkop3@reddthat.com
    link
    fedilink
    arrow-up
    4
    ·
    16 hours ago

    Oh heck no, that would be horrid. Why would anyone willingly mix three languages for the sake of less readability and frustrating the heck out of most other devs?

  • 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    arrow-up
    22
    ·
    2 days 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.

    • wellDuuh@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      18 hours ago

      Exactly. In case you haven’t noticed, English is defacto communication language in most paradigms, especially in the programming domain.

      Even broken English passes as English nonetheless

  • oktoberpaard@feddit.nl
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    1 day 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.

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

  • i_stole_ur_taco@lemmy.ca
    link
    fedilink
    arrow-up
    30
    arrow-down
    1
    ·
    2 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.

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

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

    • wellDuuh@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      18 hours ago

      We should definitely make a plugin that will translate English comments into any language

  • BlessedDog@lemmy.world
    link
    fedilink
    arrow-up
    35
    arrow-down
    1
    ·
    2 days ago

    This is interesting, I’ve thought of this before.

    I write comments and commit messages in English, mainly because programming is collaborative. I am a member of a local association of young programmers, and in the community (discord, meetups) we speak Finnish, however all interactions on github are in English, so are function and variable names, as well as comments. If someone makes a PR and it’s reviewed, it happens in English, even if both parties are native Finns.

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