News for hackers. Stuff that matters.
Re:CamelCase vs. Snake_case Scientific Studies by yodon on Tuesday May 21, 2024 @06:56AM (#40426715)
Underscore is a double-pinky keystroke.

As someone who has battled RSI, I stopped using snake case and underscore-prefixed member variables because of the added stress all those underscores place on the weakest fingers.

Re:CamelCase vs. Snake_case Scientific Studies by mtlguitarist on Tuesday May 21, 2024 @08:02AM (#40427225)
I just realized that I always use my ring finger for underscores. I wonder if that changed how I feel about snake case.
Re:CamelCase vs. Snake_case Scientific Studies by aramndrt on Tuesday May 21, 2024 @02:12PM (#40431798)
that’s interesting to me. For me it’s a left pinky-right ring finger move. We probably have different keyboard sizes, afaik.
Re:CamelCase vs. Snake_case Scientific Studies by ihumanable on Tuesday May 21, 2024 @02:36PM (#40432113)
Apparently I type underscore with a chord on my right hand, pinky on right-shift and middle-finger up to underscore. I never noticed before your comment.
Re:CamelCase vs. Snake_case Scientific Studies by NikkiA on Wednesday May 22, 2024 @02:47AM (#40438024)
Why are you not bending the keyboard's will to your whims ?
Re:CamelCase vs. Snake_case Scientific Studies by sirentdiver on Wednesday May 22, 2024 @10:30PM (#40449752)
I have a programmable keyboard which I have bound underscore to LeftAlt+N, input with my left thumb + right index fingers. The first key is functionally not a Left Alt key, it is a layer key that shares the same position as where you would find a Left Alt key on keyboards.

But you do have a point because not everybody has access to programmable keyboards almost all the time. Maybe snake_case isn't that ergonomic now that I think about it, although I find it easier to read than camelCase.

Ultimately, the winner is still kebab-case, which is both aesthetically pleasing and is not a double-pinky keystroke!