• Björn@swg-empire.de
    link
    fedilink
    arrow-up
    27
    ·
    14 hours ago

    Preferably in English. Nothing is worse than reading code with a mixture of languages. Although false friends can also be quite annoying.

    • treadful@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 hours ago

      Although false friends can also be quite annoying.

      What does “false friends” mean?

      • sbeak@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        6
        ·
        5 hours ago

        In a nutshell, words that look the same / similar but with different meanings in their respective languages, making it pretty confusing.

          • Lemmert@reddthat.com
            link
            fedilink
            arrow-up
            2
            ·
            40 minutes ago

            False friends usually aren’t homonyms since the word comes from different languages.

            To give an example: an English speaker might look at “rare auto” (Dutch) and might translate it to “rare car”. But “rare” means “weird” in Dutch. So rare is a false friend in this case

    • Skullgrid@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      12 hours ago

      What should you do if you inherit a project where they are already mixing languages because they just copy pasted from tutorials?

        • cecilkorik@lemmy.ca
          link
          fedilink
          English
          arrow-up
          3
          ·
          9 hours ago

          The only solution to having too many standards is always to add another new standard. /xkcd

        • loie@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          12 hours ago
          int main(){
            cout << "It's more compact this way and yeah I'll die on this hill";
          Return 0;}
          
          //see you even get to end lines in devious winky smilies who doesn't love that