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)
No, I once had the displeasure of working with a mixed german english codebase (where also classes and functions were in both languages). It was quite the experience.
They should all be written in Esperanto.
I can’t agree more.
Mi konsentas
Oh heck no, that would be horrid. Why would anyone willingly mix three languages for the sake of less readability and frustrating the heck out of most other devs?
No, It will look so wierd.
Exactly. In case you haven’t noticed, English is defacto communication language in most paradigms, especially in the programming domain.
Even broken English passes as English nonetheless
Using English is the only way that all my colleagues are able to read it, but if it’s just meant for you, or only for Spanish speaking people, I’d say why not.
english
My language is rtl, so… shit no!
This actually depends on the kind of project. In larger and longterm projects I write my comments in English. In quick jobs like writing a source code generator or data swabbler that I need once or relatively short term, I use German. It does not make much of a difference for me, though, and I have a script that walks over a source tree to find some common German words just in case I had written something in German by accident.
depends on what everyone else on the project is doing
…why is this nsfw exactly?
I don’t know what are you talking about. I didn’t mark the post as nsfw and when I try to modify it, the nsfw option is disabled.
Must be something weird on voyager or just my phone then, apologies
I only know how to write English, but if I knew writing in multiple languages I would write the comment in both languages
We should definitely make a plugin that will translate English comments into any language
This is interesting, I’ve thought of this before.
I write comments and commit messages in English, mainly because programming is collaborative. I am a member of a local association of young programmers, and in the community (discord, meetups) we speak Finnish, however all interactions on github are in English, so are function and variable names, as well as comments. If someone makes a PR and it’s reviewed, it happens in English, even if both parties are native Finns.
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?
German here.
I am not writing anything in my code in German. All of my code, my variables, my default texts, my comments, my documentation, my UI strings, etc. are always and explicitly in English.
The only German I use, is when I provide translations for UI or documentation.
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 best backup your strength, cause you’ll need them to explain to young’uns what you meant when your 90 Years old
You’re one of mine 🤜🤛