I ask because sometimes I feel very silly when writing clumsily in English and even sillier when I have to look up how to spell a particular word.
I want to know if I’m the only idiot that it happens to or if on the contrary it’s something generalized.
(Mi idioma es el Español, por cierto)
Bold of you to assume I write comments.
(Yes, they’re usually in my native tongue. I think it’s better for you to express your comment clearly then stumble through a different language to make it accessible… chances are you’ll be reading that comment next and non-spanish speakers can use Google translate or whatever and ask you if something is unclear).
The place I used to work at had a bunch of people speaking various South and North Indian languages, Vietnamese, Swedish, French, English, Spanish and Brazilian Portuguese. I’d have spent my whole days on Google Translate lol
I’ve always been writing comments and using variable names in English, at all jobs I’ve had. Probably also the non-professional code before I started writing code professionally.
Part of this is that I’ve been working in a lot of companies with non-Swedish speakers, and another part is that it’s just kind of been expected that the code and everything around it is in English.
I do write them in English for personal projects. On everything else it depends on the requirements of the project.
Comments are in English, but output is in German because I only write for myself, my OS has German localization, and English output would look out of place.
I’m Brazilian. For personal projects and snippets, especially if I’m going to share their code publicly (e.g. GitHub or GitHub Gists), I often use English. However, when it’s a project from a company I’m working for, I use Portuguese, as every company I’ve worked for so far are Brazilian (and my coworkers were Brazilian as well).
I code in English by habit, comments included. I sometines write comments in French when writing code just for me, but code I write that is meant to be used by others is in English.
Depends. Generally English, unless they are “directed” to one specific person like the professor who’s gonna grade it. But even then I might go with English anyway.
Oh I also use my language when I’m leaving an important warning to myself in a config file, like “this is needed because X! don’t touch it! If you touch it do Y!”
In English even when I’m the only person working on the project as there’s always the prospect of someone else looking at it. Also my language doesn’t use the latin script and I don’t want to mix other scripts into code files. You can always write it in latin script but that’s really annoying to read. Funnily enough I wouldn’t be so against comments in another “big” language like Spanish or German.
I’m French speaking, but I write all code and comments in English, all the time. The code is basically English keywords and symbols, the mix and match just looks weird, makes it harder to share snippets for help or debugging with non-speakers. Especially in code that will be read by other people after the fact, it also tends to make it less likely that this person will be able to understand it - maybe they’ll hire an offshore team or some guy who just immigrated…
This is expected Canadian source code:
// cache the colour in case we need it later for the neighbour color = fetchColor(); neighbor.color = color;
When language keywords are all written in American English it’s foolish to try to author your code in a different language. But comments are fair game.
Do those rules change if the language accepts translated keywords?
Always English. I live in a country where developers are hard to find. Chances are that I will get colleagues who do not speak my native language (yet).
I don’t write a lot of codes, but when I do, it is usually a mixture of broken English and my native language.
You’re one of mine 🤜🤛
You best backup your strength, cause you’ll need them to explain to young’uns what you meant when your 90 Years old
They should all be written in Esperanto.
I can’t agree more.
Mi konsentas
At my job we write everything in english. Code comments, variable names, review comments. Everything. It’s just to make everything readable to people who don’t know our language because some people in the office are from other countries.
deleted by creator
Monospace support for abugidas & abjads is pretty horrible