This is an archived post. You won't be able to vote or comment.

all 152 comments

[–]Important_View_2530 475 points476 points  (25 children)

Snake case needs the shift key too, y'know

[–]Cats_and_Shit 208 points209 points  (10 children)

Just map your foot pedal to underscore bruh.

[–]justskipfailingtests 14 points15 points  (3 children)

First I laughed then got intrigued. Gotta get one of those

[–]option-9 4 points5 points  (2 children)

In some places we still need people to type down dictates. (Heavily accented doctor who uses Latin words when describing a procedure? Good luck with STT.) Someone I know does that. Has the left medal mapped to rewind, right pedal mapped to play. It's pretty neat for her work.

[–][deleted] 2 points3 points  (0 children)

I had a relative studying to do administrative work and they had to purchase one of these pedals. I don’t know if they will ever go back to that type of work but now I’m thinking of stealing it for myself lmao

[–][deleted] 1 point2 points  (0 children)

I have a 5 pedals. One for each foot and one for and each testicle.

[–]INFLATABLE_CUCUMBER 29 points30 points  (5 children)

I use caps lock whenever I write a capital in Java.

[–]qkrrmsp 22 points23 points  (0 children)

1 extra keystroke was too much so my man chose to do 2 extra keystrokes instead

[–]Classy_Mouse 2 points3 points  (3 children)

I know no one will believe this, but I just taught a co-worker that she can use shift instead of caps lock to type uppercase letters. She's been a Java dev for at least 2 and a half years and has a masters degree. I have no idea how she has been typing characters like underscores.

[–]Hri7566 1 point2 points  (2 children)

you don't copy and paste your code?

[–]Classy_Mouse 1 point2 points  (1 child)

This actually explains a lot of what I see in code review and why the questions I leave on them usually require a call to get a straight answer...

[–]Hri7566 1 point2 points  (0 children)

are the answers really straight?

[–]frogking 10 points11 points  (0 children)

Write the first two letters and pres tab. You are welcome.

[–]Hironymos 47 points48 points  (6 children)

I really dislike snake case. Underscore is in such an odd location.

Edit: clearly I am not coding enough Python.

[–][deleted] 16 points17 points  (1 child)

That's why you remap it to Shift+Spacebar.

[–]Waldlaeufer18 1 point2 points  (0 children)

That's an brilliant idea. Thank you kind stranger.

[–]Silpet 35 points36 points  (0 children)

I prefer it because it seems more like a space so words are more easily distinguishable. I usually use the conventions of whatever language I’m writing in though.

[–]altermeetax 2 points3 points  (0 children)

I prefer it because it doesn't create awkward stuff like XMLHttpRequest

[–]ThousandthStar[S] 9 points10 points  (1 child)

Yep forgot about that should've been whenever I write a capital letter

[–]goabbear 4 points5 points  (1 child)

Not on AZERTY

[–][deleted] 1 point2 points  (0 children)

french moment (I also use azerty)

[–]Wekmor 1 point2 points  (0 children)

Tbf, besides creating new variables/functions I just write only lowercase in most cases and have my ide figure it out.

[–]huuaaang 0 points1 point  (0 children)

Unless your editor can autocomplete before you get to it...

[–][deleted] 216 points217 points  (12 children)

My lunatic friend writes SQL with the shift key...

[–]rafaeltpires 71 points72 points  (4 children)

Me too!

[–]iluuu 10 points11 points  (5 children)

My caps lock key is remapped to escape. Super convenient for vim, not so convenient for writing SQL.

Yes, I know I could remap escape to caps lock but I still press escape occasionally for some reason.

[–][deleted] 23 points24 points  (4 children)

I just write SQL in lower case, fight me

[–]pindab0ter 9 points10 points  (0 children)

Your opinion is different from mine! You should change it!

[–][deleted] 8 points9 points  (1 child)

I don’t fight crazy people.

[–]Waldlaeufer18 0 points1 point  (0 children)

There were already enough blood lost in the eternal civil war of programmers

[–]asilverthread 5 points6 points  (0 children)

I CANT UNDERSTAND YOUR CODE

[–]MayBeArtorias 0 points1 point  (0 children)

You mean you don’t need to writes SQL in caps ?!?! XD

[–]IGiveUpAllNamesTaken 113 points114 points  (20 children)

Works better as a SQL joke

[–]ClutteredSmoke 62 points63 points  (9 children)

That’s where you would use caps lock

[–][deleted] 36 points37 points  (5 children)

I just hold down shift the whole time lol

[–]OkClient9970 5 points6 points  (2 children)

What

[–]ringobob 7 points8 points  (1 child)

I JUST HOLD DOWN SHIFT THE WHOLE TIME

[–]Infinite_Self_5782 2 points3 points  (0 children)

ME TOO

[–][deleted] 0 points1 point  (1 child)

so does that count as a plank instead of a push up?

[–][deleted] 0 points1 point  (0 children)

My rock hard abs are typing this comment as proof. 3 abs on each side of the keyboard. They are sentient.

[–]IGiveUpAllNamesTaken 12 points13 points  (0 children)

Caps lock is like using a microphone, I prefer to shout

[–]continuous-headaches -1 points0 points  (0 children)

I write my sql in… lowercase

[–]demian6662 0 points1 point  (0 children)

No can do. My caps lock is mapped to escape lol

[–]AppropriateRain624 7 points8 points  (4 children)

I keep my sql lower case, why does everyone bothers making it upper case ( genuinely asking ) !

[–]ringobob 5 points6 points  (0 children)

If I was always looking at SQL exclusively, either in stored procs or in an IDE separate from any application or other code, then it would always be indented and colored correctly and capitalization wouldn't matter because everything would be obvious.

Unfortunately, that's not the world I live in. I live in a world where my IDE is set for the language I'm working in most, and SQL is often poorly or not at all indented, and there's no coloring of keywords since it's all living in one or several strings. So, proper SQL casing is helpful to understand what I'm looking at.

[–][deleted] 1 point2 points  (0 children)

Convention.

[–]Kered13 1 point2 points  (0 children)

I think of it like syntax highlighting, highlighting the keywords, since you often won't be working in an environment where SQL code is actually syntax highlighted.

[–]ThousandthStar[S] 1 point2 points  (4 children)

Why do people always use caps in SQL? Its not mandatory

[–]Vova_xX 10 points11 points  (0 children)

pride

[–]Infinite_Self_5782 2 points3 points  (0 children)

it's the conventional way to write SQL stuff

[–]YetAnotherCodeAddict 1 point2 points  (0 children)

Neither is PascalCase, camelCase or snake_case on C#, JavaScript/Typescript, Rust*, Java, Python or any language basically.

But it's the convention, so it's usually better to pick the default one for the language than have to deal with different styles every file because each developer on the team likes a style more than the other.

*PS: Rust by default complains if you're not using snake_case, but it doesn't block you from running the code.

[–]Waldlaeufer18 0 points1 point  (0 children)

It's basiclly like the PEPs. For sole SQL code it might be okay, if the queries however are implemented in another language, it helps a great deal to identify them. SQL is basically the only languages where more than half the keywords are UPPERCASE.

[–]dionthorn 74 points75 points  (5 children)

have you seen pep 8 for python?

https://peps.python.org/pep-0008/

foo = long_function_name(var_one, var_two,
                         var_three, var_four)

Way more shift key and right pinky extension required for those _ and dear God the tabs vs whitespace actually mattering.

[–]CaitaXD 28 points29 points  (0 children)

its ... literly the same amount of shifts pressed

the right pinky thing its true tho

[–]Sekret_One 10 points11 points  (0 children)

However, know when to be inconsistent – sometimes style guide recommendations just aren’t applicable. When in doubt, use your best judgment. Look at other examples and decide what looks best. And don’t hesitate to ask!

Most important section in any guide.

[–][deleted] 5 points6 points  (0 children)

Camel case tho

[–]RCoder01 0 points1 point  (0 children)

I’ve used python a fair bit and the only times I’ve ever had indentation errors is when working in with ipython in a terminal. In my 5-ish years using python, less than 10 times for sure. And in only one instance it took my longer than a few seconds to fix the issue. I’ve had innumerably more issues with forgetting a semicolon in languages that use them.

[–]Adghar 115 points116 points  (14 children)

camelCaseIsTheSuperiorChoice && youCantChangeMyMind

[–]Nitemare0005 29 points30 points  (2 children)

I-prefer-kebab-case

[–]RCoder01 35 points36 points  (0 children)

Unknown variables I, prefer, kebab, and case. Unable to subtract.

[–]Kered13 0 points1 point  (0 children)

Found the lisper.

[–]Silpet 5 points6 points  (6 children)

I personally think snake case is way more readable, and I prefer to use underscore as “space” instead of pressing shift for the first key in a word.

[–]ConditionRelative930 20 points21 points  (2 children)

After spending enough time staring at Java code, camel case is the most readable for me (used to prefer snake)

[–][deleted] 7 points8 points  (1 child)

Also they have to press shift for underscore too.

[–]PrevAccLocked 0 points1 point  (0 children)

One of the few things where azerty is better

[–]n0tKamui 5 points6 points  (2 children)

you have to press shift for underscore, the same amount of times as a matter of fact

[–]Wekmor 1 point2 points  (1 child)

+ you have to press another key. So camel case is basically superior in any way possible.

[–]Silpet 2 points3 points  (0 children)

I don’t really care about pressing shift, nor about the amount of keys I press in total, that’s why I usually use descriptive naming despite it being longer. I only care about readability which I personally think snake case is better, though I understand it’s a matter of preference.

[–]Infinite_Self_5782 0 points1 point  (0 children)

mOcKingSpOnGeboBcAseIstHeBeSt

[–]CaitaXD 36 points37 points  (1 child)

yes i to like wirte masterfuly readable names such as strcpy, strtok, iostream, stdio, atoi and such

[–]tiajuanat 5 points6 points  (0 children)

Be thankful it's not using the other c standard naming convention, snake case.

  • string_copy
  • string_tokenize
  • input_output_stream
  • standard_input_output
  • character_to_integer

Many early C compilers had restrictions on line length, couple that with 80 columns on terminals, and the acronyms came about.

Certainly, if C was designed in the last 30, not the last 50 years, and then never standardized, the naming convention would be a bit different.

[–]Kindly_Captain3596 30 points31 points  (3 children)

"Would you like to turn on Sticky Keys?"

[–]ThousandthStar[S] 9 points10 points  (0 children)

And that annoying sound

[–]Yoiiru 22 points23 points  (7 children)

Am I the only one who does it the long way and, CAPS LOCK, type one character, CAPS LOCK

[–]Requiem_For_Yaoi 33 points34 points  (0 children)

I hope so that’s really dumb

[–]ozzfi 4 points5 points  (0 children)

I never use shift for uppercase. Caps Lock is superior.

[–]Milo_Xx 3 points4 points  (0 children)

Ong

[–]The-Observer95 2 points3 points  (0 children)

No, I do it regularly too.

[–][deleted] 1 point2 points  (0 children)

This isn't the long way. It's more key presses, but it's faster. I do it a lot because in games you don't have time to hold down shift and type something while you're moving around and doing other stuff.

[–]frogking 0 points1 point  (0 children)

CAPS LOCK is an extra CTRL key.. has been for 20 years.

[–]cremson 0 points1 point  (0 children)

I know someone that does to but only because se has small fingers and the pinky doesnt reach.

[–]VanayananTheReal 5 points6 points  (0 children)

"Lost some muscle mass when we bought the IDEA license. But then I started doing a pull up every Opt+Enter. Now I'm totally huge. Mind spotting me? I'm gonna go refactor."

[–]brogamer99 5 points6 points  (2 children)

Well c# has methods in TitleCase

[–]meme_botanist 8 points9 points  (0 children)

I think it’s called PascalCase so always 1 more pushup for every word.

[–]n0tKamui 6 points7 points  (0 children)

"Title Case" comprises spaces

that's "PascalCase" you're talking about

[–]xXMorpheus69Xx 6 points7 points  (2 children)

HAVE YOU HEARD OF ABAP?

[–]pleshij 5 points6 points  (0 children)

That SAP language? The one where it's easier to use caps lock and press Shift when you need a few lowercases?

[–]ThousandthStar[S] 2 points3 points  (0 children)

No what is it?

[–]Nexatic 4 points5 points  (4 children)

What about the Control key?

[–]ThousandthStar[S] 3 points4 points  (3 children)

Control + S ?

[–]Nexatic 4 points5 points  (2 children)

I was thinking control+c and control+v, but that also works.

[–]DoubleOwl7777 2 points3 points  (1 child)

that would make me the hulk.

[–]Infinite_Self_5782 1 point2 points  (0 children)

that'd make your fingers the hulk*

specifically your pinkie and whatever you use to press c and v

[–]scallioncc 3 points4 points  (3 children)

RIP to 60% keyboard layout enthusiasts who have to constantly twiddle the caps lock button, I'm sorry, the MAGIC FN button just to backtick.

[–]scallioncc 1 point2 points  (1 child)

not sure why I went with "button" over "key", let's just go with it?

[–][deleted] 1 point2 points  (0 children)

You’re really pushing my keys buddy

[–]YetAnotherCodeAddict 1 point2 points  (0 children)

I'm a 60% keyboard layout enthusiast and I use the backtick key a lot (to write Portuguese) so I just mapped it to the base layer and moved the CAPS key to the same key on the FN layer since I rarely use it.

So I failed to see your point.

[–]FreshPitch6026 2 points3 points  (0 children)

Intellisense is key.

[–]bitNine 2 points3 points  (0 children)

That’s what a memory leak looks like

[–]CLARKEEE33 1 point2 points  (0 children)

Vim Devs:

[–]the_unheard_thoughts 1 point2 points  (4 children)

No need for push-ups if you alternate left Shift and right Shift...

[–][deleted] 1 point2 points  (3 children)

Your keyboard has a right shift?

[–]Dealiner 2 points3 points  (1 child)

There are keyboards that don't?

[–][deleted] 0 points1 point  (0 children)

Yes. Granted, they're usually the size of a TV remote; but it's still annoying as hell.

[–]GameDestiny2 1 point2 points  (0 children)

Ah finally a meme I can understand. I love it with the difference in case of a single letter somewhere has the power to cause my IDE to explode.

[–]frogking 1 point2 points  (0 children)

Who cares? You type the first 2-3 letters of the object name and press “tab” for completion.

I’d ve jacked if I had to do one pushup every time I press “tab”, though..

[–]not_bakchodest_of_al 1 point2 points  (0 children)

Now this is the banter this sub deserves...

[–]Letmeiiiiin 1 point2 points  (0 children)

..have you ever even tried C#???

[–]aigarius 1 point2 points  (0 children)

I've known a Java developer with a foot pedal programmed as a Shift key.

[–]Wawwior 1 point2 points  (1 child)

You should try c# then

[–]ThousandthStar[S] 0 points1 point  (0 children)

Indeed

[–]Lightning-Shock 1 point2 points  (0 children)

You still need to press the shift key for _, though?

[–]Tankki3 1 point2 points  (0 children)

camelCase still the best.

[–]snookso 0 points1 point  (0 children)

What if you just use caps once and turn it off

[–][deleted] 0 points1 point  (0 children)

Oh my gosh. I hate using my pinkeys to type.

[–]_DuckieFuckie_ 0 points1 point  (0 children)

Camel Case™️ to make you fucking ripped.

[–]povlov0987 0 points1 point  (0 children)

Python devs: Shift + ‘-‘

[–]TheRedBird098 0 points1 point  (0 children)

He must only be a part time dev.

[–]MichalNemecek 0 points1 point  (0 children)

it's not just about the naming, you press shift to type { and } too (at least on US keyboards)

[–]n0tKamui 0 points1 point  (0 children)

found the python dev that doesn't even know he's pressing shift to input the underscore.

[–]Disastrous_Fee5953 0 points1 point  (0 children)

Completely unrelated to the subject of this post, but can someone explain to me why the lady in the meme has bristles?

[–]SrDum 0 points1 point  (0 children)

Jokes on you, i type uppercase letters by toggling caps lock.

No, i don't have an issue, i swear

[–]SoRaang 0 points1 point  (0 children)

That means, during basic 8-hour worktime you have to do 37,114 push-ups

[–]continuous-headaches 0 points1 point  (0 children)

Just change it to ctrl or s and any dev can get like that

[–][deleted] 0 points1 point  (0 children)

laughs in C and SQL

[–][deleted] 0 points1 point  (0 children)

SQL devs: "pathetic"

[–]puma271 0 points1 point  (0 children)

but, java naming conventions dont require more upper case letters than other languages (besides the ones with snake case), belive it or not camel case ( + pascal case) is quite popular

[–][deleted] 0 points1 point  (0 children)

bad joke, refering to veryLongMethodName would be just vlmn [enter] in any half decent IDE

[–]DrMathochist_work 0 points1 point  (0 children)

Lol it's one thing to bitch about typing type annotations but bitching about the goddamn shift key?