DEV Community

Discussion on: How do you deal with naming when you're bilingual?

Collapse
 
nancyd profile image
Nancy Deschenes • Edited

I speak French and English. I always code in English. For work, I have to code in English so others will be able to work on the same code. If I do a quick personal project, I don't even consider doing it in French, because so many of keywords in the language are in English, and when I read code, I read operators in English.

Once, I wrote something in French for a presentation I was doing, and the process was really difficult. When you speak two or more languages and interact with someone who speaks the same languages, you can change between languages easily, even in the same sentence, but there are unspoken "rules" for when you can change. You wouldnt' say, "Le cat est going d'attraper the oiseau red sur the arbre". When I code with French variables, that's how it feels. I spend too much time "code switching" between languages, it's painful:

If la somme is greater than or equal to le minimum requis, then fait quelque chose