What should you do if you inherit a project where they are already mixing languages because they just copy pasted from tutorials?
Comment on Do non-English speakers learn to code in English, or in their native language?
bjoern_tantau@swg-empire.de 2 weeks ago
Preferably in English. Nothing is worse than reading code with a mixture of languages. Although false friends can also be quite annoying.
Skullgrid@lemmy.world 2 weeks ago
bjoern_tantau@swg-empire.de 2 weeks ago
Exacerbate the problem by using your own style that’s not been used before.
cecilkorik@lemmy.ca 2 weeks ago
The only solution to having too many standards is always to add another new standard. /xkcd
AwesomeLowlander@sh.itjust.works 2 weeks ago
TBF, USB C is an example of that approach actually working.
loie@lemmy.world 2 weeks 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
Aceticon@lemmy.dbzer0.com 2 weeks ago
It’s tradition!
treadful@lemmy.zip 2 weeks ago
Although false friends can also be quite annoying.
What does “false friends” mean?
sbeak@sopuli.xyz 2 weeks ago
In a nutshell, words that look the same / similar but with different meanings in their respective languages, making it pretty confusing.
treadful@lemmy.zip 2 weeks ago
Like homonyms or something different?
Lemmert@reddthat.com 2 weeks 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
Danquebec@sh.itjust.works 2 weeks ago
There are many false friends between French and English. Off the top of my head:
EN: eventually (FR: un jour) FR: éventuellement (EN: possibly)
“Enregistrer” in French both means to record something and to save a file, but you can’t use the English word “register” for both.
“Défense” in French both means defense and prohibited, but you can’t use the English “defense” for both.
ILikeTraaaains@lemmy.world 2 weeks ago
As other stated it is when two words in different languages are similar phonetically/graphically.
They are called false friends because they seem familiar and you expect to mean the same as with other words that are pronounced similarly in two languages and mean the same. False friends not just mean different things but they sometimes can change the phrase in a bad way.
Note: The following examples are with Spanish from Spain, they might be different in other Spanish speaking countries.
Alice and Bob discussed about having children
Alicia y Bob discutieron sobre tener niñosIn English Alice and Bob had a conversation, in Spanish they had an argument.
Bob is a sensible guy
Bob es un tipo sensibleBob is a person who acts with prudence and thinks carefully in English, in Spanish he is a guy where feelings affect him easily.
I had an English teacher who told the same anecdote about false friends and her sister. She was in UK and the batteries for the remote died, so she went to a convenience store and asked if they had them.
The thing is that in Spanish we only use battery (batería) for the ones that are not meant to be replaced regularly, like the car battery, the laptop battery, etc. The replaceable ones (even the rechargeable that take the same shape), are called pilas. So in the anecdote, the sister told the woman at the store very confidently “Do you have piles?” (haemorrhoids, for the ones who doesn’t know).
I don’t know how real the anecdote was, but it fulfilled its purpose to make us aware of these situations ñ.
bjoern_tantau@swg-empire.de 2 weeks ago
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”.
calcopiritus@lemmy.world 2 weeks 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 2 weeks 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.
Whats_your_reasoning@lemmy.world 2 weeks ago
Considering that their roofs tend to look like this, that’s a very reasonable understanding. Pizza Huts look like they’re wearing a hat!
Image