Although false friends can also be quite annoying.
What does “false friends” mean?
Comment on Do non-English speakers learn to code in English, or in their native language?
bjoern_tantau@swg-empire.de 19 hours ago
Preferably in English. Nothing is worse than reading code with a mixture of languages. Although false friends can also be quite annoying.
Although false friends can also be quite annoying.
What does “false friends” mean?
Words in two different languages that sound the same but don’t habe the same meaning. Real example from my last work: The German word for “topic” is “Thema”. So our programmers called the database field and variables “theme”.
In a nutshell, words that look the same / similar but with different meanings in their respective languages, making it pretty confusing.
Like homonyms or something different?
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
What should you do if you inherit a project where they are already mixing languages because they just copy pasted from tutorials?
Exacerbate the problem by using your own style that’s not been used before.
The only solution to having too many standards is always to add another new standard. /xkcd
TBF, USB C is an example of that approach actually working.
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
calcopiritus@lemmy.world 1 hour ago
They are annoying even if you write in English. One such example is “library”.
In Spanish, there are two words: “biblioteca” and “librería”.
Library = biblioteca Book shop = librería
When speaking about programming libraries, everyone says “librería” because it’s just easier to translate that way. But it just feels wrong every time.
bjoern_tantau@swg-empire.de 59 minutes ago
A funny one is Pizza Hut. “Hut” means “hat” in German. And since the Pizza Hut logo kind of looks like a hat many Germans believe that they gave it a German name in Germany. So they pronounce it in a German way and if they were to talk to an English speaker they might say Pizza Hat in an effort to translate.