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)

  • leisesprecher@feddit.org
    link
    fedilink
    arrow-up
    8
    ·
    25 days ago

    That depends, actually.

    In general, I try to keep everything English, since we do have some international colleagues.

    However, I work with a bunch of projects that have some legal/administrative background and certain words have very precisely defined meanings, that can’t be easily translated (at least not in one word, so that the next guy can back-translate the word). So in these cases, I sometimes write comments that explain the domain problem in German, because it’s much much easier and whoever touches that code better understand the German terms or screw everything up. Unfortunately class and method names are often a weird language mix.

    It’s not a perfect solution, but given the legal complexities behind seemingly simple words, it’s the best of the worst.

    • gentooer@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      23 days ago

      That’s an interesting perspective. Do you think it would be better to have separate legal documentation in German, which you then can refer to in your comments?

      • leisesprecher@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        23 days ago

        That would be a way to get rid of German comments, sure. But it’s also another layer of hassle. Usually, the comments are just a few lines to explain weird behavior.

        The naming problem is nearly unsolvable, though. Unless you want to map every concept to a random string, but that’s not feasible either.