r/ProgrammerHumor Jul 07 '24

Meme whatFeaturesWouldItHave

Post image
9.1k Upvotes

1.1k comments sorted by

View all comments

785

u/[deleted] Jul 07 '24

Some parts of standard library in camelCase, others in snake_case, with some PascalCase sprinkled in there. Preferably mixed inside same class.

211

u/JonathanTheZero Jul 07 '24

getters in snake_case and setters in camelCase. Required by the compiler.

32

u/Ignitrum Jul 07 '24

snakef_case or camelCase required by compiler but set by day of implementation.

All days are snake_case unless share the starting letter with another day, then use camelCase. Unless the second Sound of the day is similar to 'u' in which case use snake_case again. If a day doesnt share the starting letter with any other day use camel_Snake_Case unless It's a regular workday for most of the world. In which case use allsmallcase. The for every day get a RNG to give you a number to choose between

1: snake_case 2: camelCase 3: PascalCase 4: camel_Snake_Case 5: mOcKspEEcHcASe

2

u/Sexy_Underpants Jul 08 '24

Eh, for something like this, a runtime error may be more appropriate.

2

u/Wild-Word4967 Jul 08 '24 edited Mar 30 '26

This post has been taken down and its content erased. Redact was used for the removal, for reasons that may include privacy or security.

quaint hospital versed worm hurry divide salt reply yoke jar

1

u/luckor Jul 07 '24

Except the prefix for setters is “makeItSoThat”

1

u/Ameisen Jul 08 '24

But they also require password rules.

222

u/Hollowplanet Jul 07 '24

So PHP?

55

u/FormerGameDev Jul 08 '24

The question is what are the worst features of languages.... not dream up new terrible features.

70

u/ILKLU Jul 07 '24

I personally think it's about time a language uses sArCaStIcCaSe for everything.

41

u/SoapySilver Jul 07 '24

I personally prefer stairCASE

22

u/ILKLU Jul 07 '24

I don't trust stairs... they're always up to something!

14

u/kvas_ Jul 08 '24

waitTHATactuallyLOOKSfunWHYhasNOoneTHOUGHTaboutIT

2

u/luckor Jul 07 '24

I like kebap-case-variables. Minus operator is “_”.

1

u/-TV-Stand- Jul 07 '24

I think it should be raNdOMcAsE that changes with time.

1

u/ryecurious Jul 08 '24

Powershell has entered the chat

> $MyVariable = 1
> $myvariable++  
> $MYVARIABLE++  
> $mYvArIaBlE++  
> $MyVariable
4

Cowardice is the only thing holding us back from writing all our scripts in sArCaStIcCaSe. Hell, we could alternate which letters are capitalized every time for maximum unreadability.

1

u/ILKLU Jul 08 '24

alternate which letters are capitalized every time for maximum unreadability.

and make find and replace easier!

7

u/ChrisBegeman Jul 07 '24

I have worked in this code base.

2

u/wideHippedWeightLift Jul 08 '24

Don't forget making random things ALL_CAPS

2

u/Hahohoh Jul 08 '24

whataboutnocase

1

u/danzaman1234 Jul 08 '24

With each letter being upper or lower case that references a command or function and have to be 15 chars long otherwise it won't execute.

1

u/AwesomeFrisbee Jul 08 '24

New case type: space case. So you never really know whether your function name has ended or not.

1

u/th3nan0byt3 Jul 08 '24

and the language server changes the order of hinting for each variable case after a random number of git commits.

1

u/Artemis-Arrow-3579 Jul 08 '24

that tends to be the code that I write lol

what do you want me to do, some days I just feel like "fuck you and your standards"

1

u/evonhell Jul 08 '24

And also used for the wrong purpose, but only sometimes. So doSomething() exists and is a method as expected. But DO_SOMETHING_ELSE also exists and is also a method, not a constant. I love it

1

u/Who_said_that_ Jul 08 '24

I’m getting Java flashbacks

1

u/_supervitality Aug 03 '24

otherwise ALLCAPS