this post was submitted on 01 Aug 2026
56 points (98.3% liked)

No Stupid Questions

49184 readers
769 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 44 comments
sorted by: hot top controversial new old
[–] CannedYeet@lemmy.world 1 points 3 minutes ago

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

https://hedy.org/

[–] sbeak@sopuli.xyz 2 points 36 minutes 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.

[–] cally@piefed.blahaj.zone 3 points 1 hour 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.

[–] Treczoks@lemmy.world 2 points 1 hour 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.

[–] vegafjord@slrpnk.net 5 points 2 hours ago

I quit my degree in computer science in 2018 after studying for two years, but I remember that it was a big focus on using norwegian for variable names.

[–] schnurrito@discuss.tchncs.de 9 points 4 hours ago

Most popular programming languages have English-language keywords and that can't be changed, so we certainly have to learn those.

How we learn to name symbols (variable/function names), that obviously depends on the programming course. But most real-world code has most symbols written in English with the possible exception of business-specific terminology that the business doesn't use in English. The same is true of comments.

[–] Siegfried@lemmy.world 9 points 4 hours ago* (last edited 4 hours ago)

The real deal isn't the language barrier but the keyboard layout. Most special characters usually used for coding are just perfectly at hand when using the US layout.

At one point i started buying US keyboards set with the US-int layout, which i find easier to use than ES and latam.

[–] daggermoon@piefed.world 5 points 4 hours ago

Everyone should code in Armenian. Why? Because it would be funny.

[–] gandalf_der_13te@feddit.org 15 points 7 hours ago* (last edited 7 hours ago) (2 children)

i've seen both. there is german program code with german variable names and german comments. yeah, it sounds about as strange as it is.

// diese variable beschreibt den luftzug an den messrohren
var trötflöte = lese_zahl_aus(datenbank);

but it's rare. most people who work in IT in germany will write english variable names and english comments.

[–] blackbeans@lemmy.zip 6 points 5 hours ago (1 children)

In my experience it's more common in industrial (plc) and embedded software. Where people don't have to work in large teams.

[–] gandalf_der_13te@feddit.org 4 points 4 hours ago (1 children)

what does "plc" mean here?

[–] LikeableLime@lemmy.world 4 points 3 hours ago (1 children)

Programmable Logic Controller

[–] dbx12@programming.dev 2 points 1 hour ago

No, your controls are cursed! It stands for "Pretty Lame Computer"

ContextThere is a YouTube channel called cursed controls which calls them that.

[–] stsquad@lemmy.ml 4 points 6 hours ago

It's super common if it's any sort of open source project because the collaborators can be anywhere and English is a good baseline.

IIRC one of the big tasks when Star Office became Open Office (later Libre Office) was translating a bunch of the German comments to make the code more accessible.

I'm sure I've seen some majority french code bases as well. There are certainly academic hypervisors out of China which have comments in Chinese kanji.

[–] yesman@lemmy.world 22 points 8 hours ago* (last edited 8 hours ago) (2 children)

Also air traffic control and commercial aviation radio communication are in English, worldwide.

[–] litchralee@sh.itjust.works 2 points 2 hours ago* (last edited 2 hours ago)

For handling international traffic under ICAO rules, ATC is indeed supposed to be done in English.

But if we take a look at some of the terminology in aviation, the French words cannot be ignored. Mayday and pan-pan are from the French venez m'aider and panne.

When radio silence is required, a station might command "SEE-LONCE" but this comes from the French word for silence. Though I think this is a rarity in aviation.

And then outside of aviation radio, the French left their mark on aircraft parts names: fuselage, empennage, aileron.

[–] neidu3@sh.itjust.works 5 points 7 hours ago

Maritime radio has a lot of French in it

[–] bjoern_tantau@swg-empire.de 24 points 8 hours ago (2 children)

Preferably in English. Nothing is worse than reading code with a mixture of languages. Although false friends can also be quite annoying.

[–] treadful@lemmy.zip 1 points 1 hour ago (1 children)

Although false friends can also be quite annoying.

What does "false friends" mean?

[–] sbeak@sopuli.xyz 2 points 33 minutes ago

In a nutshell, words that look the same / similar but with different meanings in their respective languages, making it pretty confusing.

[–] Skullgrid@lemmy.world 5 points 7 hours ago (1 children)

What should you do if you inherit a project where they are already mixing languages because they just copy pasted from tutorials?

[–] bjoern_tantau@swg-empire.de 18 points 7 hours ago (2 children)

Exacerbate the problem by using your own style that's not been used before.

[–] cecilkorik@lemmy.ca 2 points 4 hours ago

The only solution to having too many standards is always to add another new standard. /xkcd

[–] loie@lemmy.world 4 points 7 hours ago
int main(){
  cout << "It's more compact this way and yeah I'll die on this hill";
Return 0;}

//see you even get to end lines in devious winky smilies who doesn't love that
[–] slazer2au@lemmy.world 26 points 9 hours ago (1 children)

It depends honestly.

Key words like If, Match, Else, From, This ,etc will be in English, but variable names can be in any Unicode language as the var name gets converted to machine code after compilation.

[–] maxihuenu@lemmy.ml 3 points 5 hours ago

Sadly, in the horrible english language

[–] BigDanishGuy@sh.itjust.works 4 points 6 hours ago* (last edited 6 hours ago)

I teach my students to just code in English from the start. Not all languages/compilers/linkers/whatever handles the Danish characters 'æ', 'ø', and 'å' all that predictably, most companies will require you to use English for international collaboration, and besides most documentation is in English anyway. Last reason is why I urge my students to just use English versions when available. Some FLOSS translations are crap, and you can't just copy paste an error into askjeeves and get an answer.

The only thing that has to be in Danish is Excel automation, because for some bizarre reason Microsoft translated ~~all~~ some of the functions. I say some because I've seen functions in English that just wasn't available in Danish Excel.

[–] jol@discuss.tchncs.de 5 points 7 hours ago

A mix. In uni we learned algorithms in pseudo code and that was always in native language. Actual coding was typically English, but older professors often did it in their language.

[–] ndupont@lemmy.blahaj.zone 3 points 7 hours ago* (last edited 7 hours ago)

You'll be surprised to learn that WinDEV can be programmed in a ton of diferent languages. I mean the instruction set and all. It feels dirty to read code written in french, and that's my mother tongue. What a shit show. Only 'logo' for kids in primary school makes sense to have in their native language. EDIT : mostly french or English actually https://pcsoft.fr/wlangage.htm

[–] devaly@ani.social 5 points 9 hours ago

I learned English before learning Programming, but there are localized programming languages targetting learning like Portugol https://pt.wikipedia.org/wiki/Portugol

[–] Zwuzelmaus@feddit.org 3 points 8 hours ago (1 children)

Do non-English speakers learn to code in English

Why should they?

Code is programming language, not natural language. If they have already learned some natural English, then maybe it seems practical. Otherwise, no reason to try that.

[–] Skullgrid@lemmy.world 4 points 7 hours ago (2 children)

Well, unless you specifically take steps to change how types and built in functions are called, you're going to be writing "string" "for" and "if"

[–] ThirdConsul@lemmy.zip 1 points 3 hours ago (1 children)

Doesn't matter. Could be any symbols instead. The same as math symbols.

[–] Skullgrid@lemmy.world 1 points 3 hours ago (1 children)

Well they're words. Good luck typing the logic symbols on regular keyboards

[–] ThirdConsul@lemmy.zip 1 points 3 hours ago* (last edited 3 hours ago) (1 children)
[–] Skullgrid@lemmy.world 1 points 3 hours ago (2 children)

Great. Now do integer, string and while.

[–] stormdelay@sh.itjust.works 1 points 2 hours ago

Just because some keywords are in English doesn't mean the code is in English, variable names, function names, and comments could be respectively in latin, Russian, and Klingon.

[–] ThirdConsul@lemmy.zip 2 points 3 hours ago

I think you missed my point. My point is that it doesnt matter that in English if while string integer mean something. You don't have to know the language to be able to understand the operation they convey, just like math symbols.

[–] Zwuzelmaus@feddit.org -1 points 7 hours ago (2 children)

"string" "for" and "if"

That's the part that the experts call "programming language"

[–] BassTurd@lemmy.world 1 points 5 hours ago

And those words are written in what experts call, "English".

[–] Skullgrid@lemmy.world 3 points 7 hours ago

And that's all English. So, in order to use "programming language" , they are going to have to use some English

[–] phaedral@beige.party 1 points 9 hours ago

@TheImpressiveX Back in 2000 I briefly taught at UC Santa Barbara. One class was a summer, two week course in Adobe Director for Japanese high school graduates prior to entering Ritsumeikan University. I cast about looking for a Japanese version of the program, but could not find it. One of the students later told me they wouldn't expect such a thing to exist, as English was the language of coding.

ymmv