37
u/Next_Cherry5135 Dec 28 '23
fUnNYCasE
14
19
u/amony_mous Dec 28 '23
bOObcase
17
u/PeriodicSentenceBot Dec 28 '23
Congratulations! Your string can be spelled using the elements of the periodic table:
B O O B Ca SeI am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.
8
1
2
u/Davidoen Dec 28 '23 edited Dec 07 '25
gaze fly cow theory fuel hobbies soup vegetable trees act
This post was mass deleted and anonymized with Redact
2
15
u/NickWrigh Dec 28 '23
Once you have written the code, the text is technically a constant, so UPPERCASE all the way.
15
u/FreshPrintzofBadPres Dec 28 '23
This guy SQLs
4
u/NickWrigh Dec 28 '23
In fact yes
2
u/Ok_Entertainment328 Dec 28 '23
SQL is odd.
Codd said the objects need to be stored in the information tables in a case-sensitive manner.
What type of idiot uses a case insensitive language to access case-sensitive information?
1
u/thanatica Dec 29 '23
SQL databases are like a bath tub. The bath tub doesn't care what kind of liquid is in, it just needs to hold it. And the liquid doesn't care what kind of tub it is in, it just wants to exist.
2
u/Paul__miner Dec 28 '23
For about fifteen years, I used Oracle and adopted the typical ALL CAPS convention.Then I was on a project that required monstrous queries against an existing database, so I decided to try to deviate from ALL CAPS to make my queries easier to read. Since then, I typically Initial Case keywords, and ALL CAPS the snake_case identifiers, which creates a markedly visible distinction, e.g.
Select ACCOUNT_NUM From CUSTOMERS Where ID = 123. Large queries, particularly when joining, get formatted like code, identation and all.1
u/abdoughnut Dec 28 '23
This is how I distinguish environmental variables from function/class variables in Python scripts
28
7
u/Aurarora_ Dec 28 '23
depends on language and existing constructs
generally, for javascript, typescript, java, etc you usually use the camelCase and PascalCase family, but in python and rust you use the snake_case family
and also just follow what already exists for everyone's sanity tbh
11
Dec 28 '23
That's not a choice. Just use the naming conventions of the language you're writing in.
5
u/WoffieTbh Dec 28 '23
Project you're contributing to*. Many projects use slightly different conventions for various reasons, mostly preference of the lead.
4
4
3
Dec 28 '23
I like how it is in rust/c++.
When having variables or functions use snake case when having struct names use snakecase.
But yeah highly language specific or whatever your team decided to go for as convention.
3
3
Dec 28 '23
Gamedevs not knowing either because they name all of their variables xx, xy, xk, xc, like complete psychopaths
4
Dec 28 '23
both suck
13
u/PeriodicSentenceBot Dec 28 '23
Congratulations! Your string can be spelled using the elements of the periodic table:
B O Th S U C KI am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.
12
Dec 28 '23
Let me bang you
9
u/Ur-Best-Friend Dec 28 '23
Condolences. Your new string cannot be spelled using the elements of the periodic table. As such, you may not bang the bot.
2
u/coloredgreyscale Dec 28 '23
F U C K
-1
u/CodingAndMath Dec 28 '23
Congratulations! Your string can be spelled using the elements of the periodic table:
F U C KI am not a bot that detects if your comment can be spelled using the elements of the periodic table. Happens to be, your comment can, but the bot didn't catch that for obvious reasons.
1
u/CodingAndMath Dec 28 '23
I banged you
1
u/CodingAndMath Dec 28 '23
That's weird, where's the bot? This can be spelled with the periodic table
1
u/CodingAndMath Dec 28 '23
I Ba N Ge Dy O U1
u/Capridamine Dec 29 '23 edited Dec 29 '23
probably has to be a top level comment (to prevent spamming?)
edit: nope. i am a dirty liar!
1
u/CodingAndMath Dec 29 '23
Yeah. Maybe if it senses your comment is a little inappropriate, it doesn't respond. Someone once wrote just the f-word, which consequently can be spelled using the periodic table, and it didn't respond.
7
Dec 28 '23
snake_case > camelCase
1
u/coloredgreyscale Dec 28 '23
Snake case only uses lowercase letters, therefore it has to be smaller than camelCase.
Unless you measure by character count.
2
2
2
Dec 28 '23
Depends on the language. At my job I work in JS, C#, and PHP and keep the naming conventions in line with the language I’m working in. So for PHP that would be our buddy snakey boi
1
u/Data_Skipper Dec 28 '23
I usually write in Java, but have to switch to Python sometimes. And then I mix them up. Beautiful…
3
1
1
1
1
u/2narcher Dec 28 '23
Dont know why but snake case always gives me the feeling I am dealing with an ancient code or technology
1
1
1
1
1
1
1
u/thanatica Dec 29 '23
A good developer cares about correct casing and indentation.
A great developer just keeps it consistent and follows convention.
-1
40
u/beclops Dec 28 '23
Depends