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)

  • @[email protected]
    link
    fedilink
    69 months 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.

  • kubok
    link
    fedilink
    159 months 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).

  • 𝘋𝘪𝘳𝘬
    link
    fedilink
    259 months 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.

  • @[email protected]
    link
    fedilink
    4
    edit-2
    9 months ago

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

  • @[email protected]
    link
    fedilink
    49 months 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.

    • NONEOP
      link
      fedilink
      19 months 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.

  • @[email protected]
    link
    fedilink
    89 months 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.

    • well5H1T3
      link
      fedilink
      English
      4
      edit-2
      9 months 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

  • eatham 🇦🇺
    link
    fedilink
    English
    19 months ago

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

    • well5H1T3
      link
      fedilink
      English
      29 months ago

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

  • Boomkop3
    link
    fedilink
    59 months 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?

  • @[email protected]
    link
    fedilink
    109 months 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.