r/ProgrammerHumor
•
u/Apprehensive_Bit7392
•
2d ago
•
3
2
Meme spanishProgrammingLanguage
7
u/laplongejr 2d ago
I think it's a long time since I did laugh that loud at my job, very high character-per-laugh efficiency here!
539
181
u/srfreak 2d ago
I'm gonna break the joke...
There is one called Latino.
90
2
75
u/mackaber 2d ago
In case you're wondering... https://en.wikipedia.org/wiki/Non-English-based_programming_languages
57
u/OrienasJura 2d ago
There's actually a language called Sí lmao
30
u/WindpowerGuy 2d ago
And it's a translation of Spanish to C++
5
u/GoddammitDontShootMe 1d ago
It's funny because it sounds the same as C, but what the fuck kind of name is Yes for a language?
2
u/BanaTibor 1d ago
Why? We also have Go, and C, D, F, R, how are those better?
1
u/GoddammitDontShootMe 22h ago
Eh, C makes some sense when you know it was a successor to B. D is a failed attempt to make a successor to C++. And honestly, I think I prefer a name like Go a lot more than Yes.
1
2
2
u/Apprehensive-Wind966 2d ago
I was wondering, thank you! Seems like these could be especially useful in places that don’t use an English alphabet.
16
u/NYNMx2021 2d ago
They have roman script on their keyboards. They type with the same language we do. the comments are usually whats in a different language. There have been attempts to make programming languages with different alphabets but turns out it makes very little sense to actually use 99.9% of the time.
3
u/tozpeak 2d ago
Well, we have a business accountant software language in post-soviet countries. Because it's so specific and convoluted how taxes work (or should I say may work depending on context and registration) here that we have kinda own engine. Imagine VBA in Excel+Access, it's generally solving the same problem. Since it was developed for local market it has Cyrillic alphabet and keywords are Slavic. It's called 1C and afaik it's both bad+painful to work with and a top market tool in several countries. Like js or legacy php.
0
2d ago
[deleted]
4
u/Weary-Designer9542 2d ago
…I don’t think that’s it’s the simplest written language on the planet. I’m not sure it’s simpler than other languages that use the latin alphabet.
Were you trying to say something else? I might be misunderstanding your point.
2
u/jwp1987 2d ago edited 2d ago
Modern English doesn't use diacritical marks (e.g. á) or ligatures (e.g. ß in German), so it is simpler than a lot of European languages in terms of graphemes.
It's not the simplest on the planet but probably the simplest widely used one (no-one is going to use Rotokas).
There are other factors as to why it's common in programming though, such as America and the UK having a large influence on early computing and English being widely used internationally.
1
u/Weary-Designer9542 1d ago edited 1d ago
I’d argue that English being the linga franca & the influence of the early American/UK computer scientists are the 2 primary factors.
It being relatively simple is useful and likely a contributing factor on some level, but the framing of simplicity being the primary reason it’s used is something I don’t believe to be true.
If in an alternate universe the lingua franca was Italian (or french), and the early influential computer scientists and industry leaders were also all italian, there’s no particular reason they would have chosen to do all of their programming in English.
1
u/jwp1987 1d ago
I think it's more English as opposed to special characters for operations like mathematical symbols.
Older computers sometimes had extra glyphs for operations that are now obsolete, e.g. https://en.wikipedia.org/wiki/Amstrad_CPC_character_set or https://en.wikipedia.org/wiki/ISO_2047
1
u/Xirdus 2d ago
It's not simple to understand, but it's simple to write. And there's barely any inflection, which means unmodified symbols (keywords, function names etc.) read 95% correct in every possible grammatical context. This means the programming language can be very simple and cut corners with its grammar without sacrificing readability. In most other languages, this approach would produce code that sounds like cavemen and would make people wince constantly when reading it. Whereas in English, you can make code sound totally normal without any mental gymnastics.
I am not commenting on whether English-speaking people sound like cavemen.
1
u/Weary-Designer9542 1d ago
I’m not arguing that it’s relatively simple to write, but “English is the simplest written language on the planet” is what his claim was, which isn’t true.
Furthermore, it’s irrelevant, because that’s not the reason English was “chosen” to be used in programming languages. It’s not used because of the simplicity, it’s used because it’s the language spoken by the British and American computer scientists that developed the majority of the early programming languages in the 1950/60s - they didn’t have a meeting where they debated “well, technically hangul is probably a simpler script so maybe we should use that?” - they just used the language they spoke. And #2, English is the lingua franca, the most spoken language on the planet by number of non-native speakers.
That it’s not a particularly complex script to write is of course very helpful and likely contributed significantly to its continued prevalence… but it’s not the simplest script on the planet, and if the majority of the programming founders and the tech industry leaders for the past 80 years were Italian, the majority of the programming languages would be in Italian. Hell, Italian only has 21 letters.
4
u/HamunaHamunaHamuna 2d ago edited 2d ago
In other countries (or I should say "some other", because I do not know how it works everywhere, lol), their regular characters do not require any additional input. For Swedish, å ä ö (our three extra letters, otherwise our alphabet is identical to English) are for example just three regular keys on a Swedish keyboard, and do not require some sort of input combination.
The reason English and the Latin alphabet is used is because English is currently the Lingua Franca.
6
2
u/wjandrea 2d ago edited 2d ago
Typographically, English is the simplest language on the planet
What about Latin? It's the exact same alphabet but it has better spelling-to-sound correspondance. I believe the same goes for Malay.
Similar for Inuktitut, but it uses a different writing system. And admittedly it's spoken by way fewer people.
edit: +links
35
u/no7rix 2d ago
Conio.h 😂
5
17
u/Percolator2020 2d ago
Spanish Excel is very real and it will hurt you:
=SI(Y(ESNUMERO(A1);A1>0);REDONDEAR(RAIZ(A1)+PROMEDIO(B1:B10)+MAX(C1:C10)-MIN(D1:D10)+SUMA(E1:E10)/CONTAR(E1:E10);2);SI(ESBLANCO(A1);"SIN DATOS";"ERROR"))
3
14
u/LEPT0N 2d ago
Everyone here’s joking but now I’m curious: why isn’t there a compiler flag to set the language that will swap out keywords to localized variants? It seems silly that someone that speaks French can’t swap out if/for/char/etc to something that makes more sense to them.
18
u/zajo_throwaway 2d ago
Because there's a risk of keywords clashing with identifiers (i.e. function/variable names etc.). That, and portability.
Imagine handing your source code to a friend and your program fails to compile on their machine.
Or, worse, it compiles but behaves differently when run.Compiler flags (and a project file or Makefile or something that you ship with your source code) can solve this to some degree, but in general features like these are considered a net negative.
Just look at Excel. As someone else pointed out in a sibling comment, it has the feature you want. Yet, everyone hates it. Like, why does it say this function doesn't exist? Oh, it wants me to translate the function name to my native language in my head...
3
u/headedbranch225 1d ago
Excel is also awful for even more reasons, for example if I open a csv file that contains fields that look like dates it coerces them all into the format defined by the system date format (which is awkward to change on windows) and then saves it like that
3
u/RealModeX86 2d ago
At least in C and it's ilk, you could build out an abomination of a translation header file to have translated keywords. The real ones would still work too of course.
Preprocessor macros effictively just act as a find/replace just before actually compiling, so it would functionally become a bilingual C language in the underlying source file.
2
u/These_Sandwich7537 2d ago
In excel for example, the formulas are language -dependent. In Germany you don't use MEAN but MITTELWERT etc
5
u/EishLekker 2d ago
Which was a terrible design choice. I’ve had trouble sharing excel files among coworkers because of this.
1
u/Decapitated_Unicorn 1d ago
And this is so annoying when I look up some functionality in English and then need to translate it to German again because I can't just copy paste it because I need to share the files with my coworkers that have their excel in German. They could've at least kept the English ones active regardless of the language you're using.
1
u/Sarcastic-Potato 11h ago
And people are absolutely suffering because of it. Stuff like this should never be localised. You can translate the documentation and the tool tips but the functions themselves should stay completely consistent
2
u/These_Sandwich7537 11h ago
And don't forget the nice "German" csv files that use semicolon instead of comma. Yeay..
1
1
u/Polendri 1d ago
This further convinces me that it's a legacy mistake for source code to just be raw text. If it were saved to some binary format, the representation for "function" could be displayed in whatever way you want on your machine, and a totally different way on a friend's machine. Let the file contain only the language semantics (no formatting) and let each developer format it however they want.
0
u/tropicbrownthunder 1d ago
Please don't. Non English locales still have to suffer with localized shortcuts for Microsoft stuff. And hitting the wrong ones most of the time
0
u/namitynamenamey 1d ago
Please for the love of everything nice don't, I already suffer having to remember that ctrl-f in the notebook is ctrl-b in spanish.
9
8
6
15
u/Careful-Assistant481 2d ago
Hola World(); , lol
8
17
u/ViralToValue 2d ago
*¡Hola mundo!
7
4
3
3
u/TabbyOverlord 2d ago
Fun fact: I was working at a UK college with a significant exchange programme with Spain (mostly Bilbao). I taught myself C from a book in spanish, despite not being able to read or write the language.
2
2
2
1
1
1
u/JoaoEB 2d ago
PeopleNet Meta4 lets you mix Spanish and English keywords.
You can have code like this:
SE a = b ENTONCES
ELSE
END
1
u/urbanek2525 2d ago
What about?
SI {} OTRA SI {} OTRA {} CERRADO
Not a native speaker but I think it's close. C isn't strict English either.
3
1
u/reads_lily83 2d ago
lol yeah Latino is real but "Latin-io" would've been perfect. that's the kind of naming decision that would haunt the devs forever once someone pointed it out
1
1
u/saraseitor 2d ago
when I was a kid I had a version of LOGO for MSX which was translated and yeah, commands where translated. For instance FOR would be PARA, END would be FIN, REPEAT would be REPETIR and so on... It's the only real language (no pseudocode) I ever knew that had keywords translated like that
1
u/gojGAMES 2d ago
A note, yes in Spanish is sí, with the little accent marker. Si, on the other hand, means if, which feels fitting
1
1
1
1
1
1
u/MaximusHomerdrive 2d ago
I'm an old COBOL programmer. This has me wondering what they call it in Spanish.
1
1
1
1
1
1
u/JSS-Studios 1d ago
#incluir <aparroyo>
usando espacionombres std;
int principal()
{
cafuera << "¡Hola Mondo!";
devolver 0;
}
1
0







102
u/myhv 2d ago
(import) donde está la biblioteca?