under_scores or camelCase? and do you name your variables in your native language or in english?
Under_scores or camelCase? and do you name your variables in your native language or in english?
Personally I prefer camelCase within programs, underscores for file names
And my native language is English
Why do people here obsess over insignificant bullshit? So something productive instead shitposter
It's called snake_case you low iq mutt
Different languages have different conventions. And more importantly existing codebases have different conventions. Casing is a social construct, shitlord.
/thread
I prefer camelCase, and english names, but I am not picky about it. If the code is written with underscrores I use that
I use camelCase because reaching for the underscore key three times a line is gonna kill my wrists in a decade. English is my native language so that's moot.
>under_scores or camelCase?
depends of the language conventions
> and do you name your variables in your native language or in english?
english
Camel case
What if there's domain specific words in a different language that don't translate well into English and are well understood by everyone that works on the code?
I found myself doing shit like mixing English and German in method names because of this, like checkForVerfahren or similar
ALLCAPS
Comments in Finnish only to mislead people
camelCase regardless of language, I don't care about arbitrary language conventions. All that matters is the conventions of the project itself. If I'm creating my own project I use my own conventions, if I'm contributing to another I use that project's conventions.
int мaльчик = 0;
doesn't happen to me, I have a background in translation
git gud
Yeah, but then there will be several different translations of the same thing going around. The same thing, which has several closely related concepts, all of which don't have a direct translation to English. And then all the devs would communicate in different terms than the business analysts and the customers. Utter chaos.
angry_pep8_chan.jpg
for each variable, I pick randomly one of these styles : under_score, camelCase, based_Both, BigButt, ALL_CAPS, rEVERTcAMEL, dEaDmEmE
camelCase because is standard in most languages, underscore for file names or constants in C (all caps), my native language is Spanish but I prefer to program in English and I also expect my coworkers to do the same.
>under_scores or camelCase?
Depends on language, usually I do something like camelCase for classes and snake_case for pretty much everything else.
>and do you name your variables in your native language or in english?
Everything in English, which is not my native language. That also applies to documentation and comments. There's always the fair chance that someone who does not speak my native language reads the code and may want to understand it. But even then, coding language is English, never read anything else, never even thought about doing anything else.
not really. you just decide on one translation as a team
Dark case, like my soul:
int xXx_DaRk_SePhIrOt_666_xXx = 0;
CamelCase for JavaScript
Snake case for php
Hyphen for class names in css
Camel_Snake
camelToe:
$grapEmByThePussy = 'lel";
You have to be 18 to browse Sup Forums
include me in the screencap reddit
xd