3 ms·
Yes, I've done it too (I am a french native). Especially common is writing code in English and commenting in ones native language. There are other cases, like w
by GuB-42 8y ago
Yes, I've done it too (I am a french native). Especially common is writing code in English and commenting in ones native language. There are other cases, like when the english word is not known or to stay consistent with a data source.
I've also seen the native word to avoid conflicts, like adding "2" at the end of a variable. That's bad, don't do it kids ;)
But here, the "hero" has a "speed" while the "ennemi" (french for "enemy") has a "vitesse" (french for "speed"). That's why I thought that the enemy is more likely to be a later, less supervised addition.
And BTW, I didn't notice any french swear word in that code. That kid is more mature than I was :)
- aaronmdjones 8y agoIt can also go the other way, of course (variables in native language, or just single-letter variables, and comments in English). I seem to remember that Linus Torvalds commented all of his code in English without ever thinking about it.