this post was submitted on 01 Aug 2026
118 points (99.2% liked)

No Stupid Questions

49289 readers
574 users here now

No such thing. Ask away!

!nostupidquestions is a community dedicated to being helpful and answering each others' questions on various topics.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must be legitimate questions. All post titles must include a question.

All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.



Rule 2- Your question subject cannot be illegal or NSFW material.

Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding META posts and joke questions.

Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.

On fridays, you are allowed to post meme and troll questions, on the condition that it's in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.

If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.



Rule 7- You can't intentionally annoy, mock, or harass other members.

If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.

Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- Majority of bots aren't allowed to participate here. This includes using AI responses and summaries.



Credits

Our breathtaking icon was bestowed upon us by @Cevilia!

The greatest banner of all time: by @TheOneWithTheHair!

founded 3 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] ILikeTraaaains@lemmy.world 20 points 6 days ago (1 children)

I wrote variable names and comments in Spanish when I started as my English level back then was very low.

Once my English improved and started to use English documentation and tutorials I just switched to write in English.

In my previous job I worked at software consultancy, I had coworkers who wrote code in Spanish but it wasn’t the norm.

Currently I work for an international company, the team is Spanish but we have to write everything in English as it can be shared with teams in other countries and audited by international organisations.

When AI tools were allowed, a lot of people use them in Spanish, it generates code with comments in Spanish. I had to reject a lot of PRs from the same guys over an over because everything must be in English.

[–] Flax_vert@feddit.uk 5 points 6 days ago

I use British English in variables for the word "colour". It's actually kind of useful because I can tell when it's my own variable and when I'm interacting with something else.

[–] Muffi@programming.dev 13 points 6 days ago (1 children)

Never even heard of a programming language in Danish. Even the ones invented by danes are in english.

[–] GojuRyu@lemmy.world 1 points 5 days ago

It’s for educational use, but myresnak is a programming language entirely in danish ;)

[–] reksas@sopuli.xyz 9 points 6 days ago (2 children)

much easier to look for guidance for coding in english instead of my native language, syntax makes more sense too. Though personally i would wish more stuff was properly translated into finnish instead of english slowly gnawing at it.

[–] protogen420@lemmy.blahaj.zone 1 points 5 days ago

this, for anythijg technical in pretty much any field, searchig in english is always better

load more comments (1 replies)
[–] sbeak@sopuli.xyz 14 points 6 days ago

As somebody with a friend who speaks Chinese as their first language, I know she often uses non-English file names, variable names, etc.

It's still standard Python and C++ though (and excellent code at that!), nothing esoteric.

[–] noobdoomguy8658@feddit.org 9 points 6 days ago* (last edited 5 days ago)

Russian here.

For the most part, it's all English. Not even romanized Russian in variable names, although that happens sometimes. Comments are mostly in Russian, though. Depending on the company and whether it has to deal with countries where Russian isn't as widespread (e: which is not a lot of companies these days), that English can be a little difficult to understand once you start applying English language logic to it as opposed to basically writing Russian poorly translated to English. It's fine if the variables, classes and method names are short and offer little room for stringing words together, but anything complex poses risk of producing something that will be difficult to read without heavy Russian background and developed English skills (at both comprehending and producing).

However, there is a number of Russian-based programming language. I am fortunate to have never worked with any one of them. One of them is 1C:Enterprise, which is also a sizeable business for automation software and such.

Here's what it looks like. I can spot a couple of English words there, though. And having learned programming through English and English only, I actually find it more difficult to read, because Russian-native developers still often refer to things in English, even if there's a word for that same thing in Russian - it's just that much part of your programming work.

[–] buran@lemmy.today 8 points 6 days ago (1 children)

I'm a native Spanish speaker, it depends on the language and the person.

Spanish has very few diacritics, so it's quite understandable in ASCII (áéíóúüñ). But I guess it would be a lot harder in other languages like Czech or Vietnamese.

When I program for myself or in public repos, I tend to code everything in English, but when I have to do projects with classmates at my university, I usually do it in Spanish because they are not great at English.

[–] myotheraccount@lemmy.world 3 points 6 days ago

Many programming languages support Unicode nowadays

[–] AI_toothbrush@lemmy.zip 6 points 6 days ago

No chance, hungarian has non-ascii characters(ő and ű), digraphs(cs, dz, gy, ly, ny, sz, ty, zs) and a trigraph(dzs). Also generally how the language works is pretty disadvantegous to coding and tech. English has maaaany useful one syllable imperatives(get, click, etc), even with doors irl its often in english whether you pull or push cause hungarian doesnt really have these completely stateless verbs. One thing that did exist back in the day was people coding in german but i only know a single person who still does this.

[–] qaz@lemmy.world 6 points 6 days ago* (last edited 6 days ago)

We always code in English at work. Using our native language for programming is generally frowned upon.

[–] Atomic@sh.itjust.works 5 points 6 days ago (2 children)

Coding is all done in the language of the code... if, and, or, for, include, except, etc. It's not exactly a vast array of words you need to know to be able to code.

Also, I can only speak for Sweden, but I started learning english in third grade. These days they start in kindergarten. Basic stuff, days of the week, 1 through 10. But still.

load more comments (2 replies)
[–] cally@piefed.blahaj.zone 8 points 6 days ago

Online: everything in English for me, except for some explanations sometimes but that's just at random as I'm a hobbyist/amateur.

Offline (a course I did): explanations in Portuguese (Brazil), we learned Portugol (programming language that uses Portuguese keywords) as an introduction then switched to C.

[–] melsaskca@lemmy.ca 2 points 5 days ago

I have no clue but at the very least, a programmer names their own variables and, barring any special characters, they could be named in any language.

[–] Treczoks@lemmy.world 6 points 6 days ago

About every programming language is based on English. Names for functions, objects, variables are based on personal, project, or company preferences. In reality you'll find these only in two languages as far as I've seen in the last decades: either English or Chinese. I've seen German and, sadly, French, but they are outliers.

[–] CannedYeet@lemmy.world 5 points 6 days ago

Hedy is a new programming language designed for pedagogy that can be localized to different languages.

https://hedy.org/

[–] Vandalismo@lemmy.world 3 points 6 days ago* (last edited 6 days ago)

Only in the very beginning people use anything besides english

[–] protogen420@lemmy.blahaj.zone 1 points 5 days ago

i think it depends, for me at least, mostly being self taught, english entirely because I just think in english, search in english, speak in english to myself so much

[–] ZILtoid1991@lemmy.world 1 points 5 days ago

I learned to code before I learned proper English as a child.

However, many educators insist of forcing students to first learn Hungarian pseudocode (not Hungarian notation) stuff first, I specifically was forced to learn Hungarian pseudocode SQL, because our teacher thought the future of programming will be natural language programming (she was a mediocre mathematician). Problems with it include:

  • Hungarian is very antithetical to be used as keywords in a programming language, mainly by substituting affixes with different words, or keeping the affixes in certain ways.
  • Students who already know English or actual coding are confused by it.
  • Natural language programming is quite bad. Nothing is gained by throwing out programming symbols in favor of natural language. In fact, things are being lost, and the main advocates of NLP are just out-of-touch techbros, who think creation is about having a cool idea.
  • Time that could been spent learning other things are wasted on it.
[–] Kazumara@discuss.tchncs.de 2 points 6 days ago* (last edited 6 days ago)

Well we learn to code in the programming language that the teacher choses, not in any natural language at all, so neither English nor our native languages.

But all significant programming languages that I know do have reserved control words that are taken from English. Maybe that is the direction of your question?

Then no, mostly we don't use specifically crafted or preprocessed programming languages just to have control words recognizable as words in our native languages. We just learn the English-based control words as features of the programming language, if we don't already recognize them.

As for the variable names and natural language comments embedded in the code, that we create, that varies. I'd say as soon as interlingual collaboration or code sharing is a possibility, people will go for English in my experience. And I suspect that people who have gone for English before tend to stick to English even in their private use.

This is also related to learning materials, documentation of language features and libraries being available to the largest degree in English.

I perceive it as easier to stick to English, rather than to code switch between natural language while I program.

[–] Alvaro@lemmy.blahaj.zone 2 points 6 days ago

There have been some interesting attempts to translate languages, but generally at most you would get phoneatically local names using English characters for functions and variables, etc.

load more comments
view more: next ›