Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
lxmcf199507y
-
Sometimes if it looks stupid, you better open your mind a bit.
Had a similar situation recently. A faulty operation was written in a code block. I thought it was a stupid mistake, but it was actually a way to throw an exception in a language that doesn't support them. Felt stupid. -
@danglingPtr But wouldn't it look nicer if you defined another function for the false condition that gets called from the catch block and from an else?
-
Tobyvw6987y@Charon92 I dunno. I mean, I'm Dutch, but I find Dutch comments disruptive of some sort.
-
@Charon92 English dude. All English.
I have a sort of disrespect for people who comment in a non-English language on an international programming forum.
I've learned English well enough to speak it when I was between 18 and 20, yet I wouldn't dare speak any of the other languages that I had learned earlier (Russian among them) on such forums, unless the post is about language in the first place.
And I live in Germany now. All developers talk English here, because people from around the world have come here to join forces and create the ultimate team! Naah, just kidding. They're all here for the good beer, good pay, and challenging work. -
@Charon92 I am German and also comment only in English. I used to comment in German but it always itches me, when the code is a mix of different languages.
-
@Charon92 no. It's usually horrible.
English is not bad. Short words, simple grammar.
Here's an if/else statement in Russian:
если {
} иначе {
}
And it's a big issue to even find the curly braces on a Russian keyboard. Or how about a try/catch/finally?
пробуй {
} лови(Исключение и) {
} наконецто {
}
Russian is generally a much longer language, less vocal, which makes shortening words even harder. There are Russian programming languages, but they are horrible and should burn in hellfire.
And even non-Russian, romance languages would be hard to code in. Primarily because accents do no good in code, and they are still longer than English.
English is a product of hundreds of years of uneducated people borrowing the simplest parts of other languages, and simplifying them further, which is why it's concise, simple, efficient. Also thanks to Vicky back in the day, English is spoken in every time zone. That equates to bigger communities and better support. -
@Charon92 I comment in English because my brain is more rational and technical while in English mode. You develop certain personas when you learn a new language and English is my tech guy
-
Pizza35277y@AndSoWeCode I'm not sure we have ever interacted :(
However, to be honest, I love @Lasagna more than myself. Don't let me think about that! -
goliveira67y@Charon92, i have worked with a code written in portuguese that called a part of the program written in English that called a part of the program written in French 😂😂
-
As a Dutch(ish) developer: English comments, English var names, English docs, English everything.
Before you know it, your company is 100+ employees, and you're recruiting people globally.
Every developer knows English, it's the only thing we all have in common. -
devs30757y@Charon92 I'm danish and comment in English. My phone is in English. My computer is in English. In fact, when coding, I sometimes get confused when people talk to me in danish because I think in English when coding.
When I use another persons phone or computer and it is in danish (my native language), I can't find anything i need -
CptPie2137y@Charon92 I and everyone I know comments in english even though we are german, but we have a steady fight against our programming chair in university which provides code with german comments which are not UTF 8 encoded (ä ö ü etc)
-
@Tobyvw in my company most client projects' variables and functions are in French... Except for Airbus, they don't consider the source code valid if it's not in English
Found this in our code
rant