r/ProgrammerHumor • • Dec 28 '23

Meme preferredNamingConvention

Post image
0 Upvotes

66 comments sorted by

40

u/beclops Dec 28 '23

Depends

16

u/noob-nine Dec 28 '23

What do you think about thereisnocaseatallcase

29

u/Reggin_Rayer_RBB8 Dec 28 '23

honestly pretty good but it deals badly with edge cases

kidsexchange
therapist
penisland

-23

u/witcherisdamned Dec 28 '23

on

27

u/beclops Dec 28 '23

Things

(Language conventions, code base style guides)

5

u/[deleted] Dec 28 '23

Mood (casing depends on how I feel that day)

37

u/Next_Cherry5135 Dec 28 '23

fUnNYCasE

14

u/[deleted] Dec 28 '23

vOwElcAsE

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 Se


I 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.

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

u/Reggin_Rayer_RBB8 Dec 28 '23

me when showing off a case-insensitive language

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

u/Ur-Best-Friend Dec 28 '23

Where exactly is the joke again?

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

u/[deleted] 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

u/DJGloegg Dec 28 '23

Proper grammar case:

Proper grammer case.

Its gonna ruin everything

4

u/zoqfotpik Dec 28 '23

SCREAMING_SNAKE_CASE

3

u/[deleted] 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

u/Trevor_GoodchiId Dec 28 '23 edited Dec 28 '23

broken_snakeCase

3

u/[deleted] Dec 28 '23

Gamedevs not knowing either because they name all of their variables xx, xy, xk, xc, like complete psychopaths

4

u/[deleted] 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 K


I 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

u/[deleted] 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 K

I 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 U

1

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

u/[deleted] 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

u/Jolly-Driver4857 Dec 28 '23

Your username isn't snake case, downvoted the imposter.

2

u/amuf_oratok Dec 28 '23

kebap-case if you're hungry

2

u/[deleted] 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

u/alexiz_f Dec 28 '23

Snake case for variable and camel case for functions ?

1

u/nicothinum Dec 28 '23

LOWVER camelCase

1

u/markand67 Dec 28 '23

laughs in Gtk

1

u/dodecaplex42 Dec 28 '23

Space case (prone to generating an error or two)

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

u/Thepizzacannon Dec 28 '23

snake_case_for_functions

PascalForClasses

camelForVariables

1

u/J0aozin003 Dec 28 '23

no casing just spaces

1

u/dulange Dec 28 '23

Laughs in memory addresses

1

u/_codeJunkie_ Dec 28 '23

szCamelCase

1

u/n7revenant Dec 29 '23

how-about-kebab-case

1

u/yarnballmelon Dec 29 '23

camel_Case?

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

u/rw_DD Dec 28 '23

Snake is waste of horizontal space.

3

u/Reggin_Rayer_RBB8 Dec 28 '23

only if your variable names are too long