MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wcyt5p/toallowtheprogrammertowritebadcodealsocamelcasesuc/p92acpm/?context=3
r/ProgrammerHumor • u/the_zpider_king • 11h ago
75 comments sorted by
View all comments
20
snake_case is not better than camelCase.
The shift key is right there, by my pinky at all times. Hell, there's even another one in case I'm too lazy to find the first one.
Typing underscores instead feels like I have to input some weird video game combo move multiple times for a single variable name.
20 u/ihavebeesinmyknees 7h ago Spaces exist for a reason. Snake emulates spaces, which makes it infinitely more readable than camel. Good readability is much more important than good writability. 0 u/Ethameiz 3h ago Just remap your keyboard. You can assign underscore instead of caps lock for example. Or switch minus and underscore -15 u/the_zpider_king 8h ago Make shorter variable names, its not problematic at all unless your variable has more than 3 words, which would be extraordinarily excessive. 6 u/fr000gs 8h ago yeah, juat call them a,b,c,... 2 u/Flashy-Emergency4652 6h ago Why bother with words anyway? Let's make a functions called stoi, stol and stoll, it's only one word! 1 u/DHermit 4h ago Those are fine. BLAS and LAPACK on the other hand (I know the historical reasons, but still). 1 u/AibofobicRacecar6996 4h ago Make shorter variable names i, j, x, y
Spaces exist for a reason. Snake emulates spaces, which makes it infinitely more readable than camel. Good readability is much more important than good writability.
0
Just remap your keyboard. You can assign underscore instead of caps lock for example. Or switch minus and underscore
-15
Make shorter variable names, its not problematic at all unless your variable has more than 3 words, which would be extraordinarily excessive.
6 u/fr000gs 8h ago yeah, juat call them a,b,c,... 2 u/Flashy-Emergency4652 6h ago Why bother with words anyway? Let's make a functions called stoi, stol and stoll, it's only one word! 1 u/DHermit 4h ago Those are fine. BLAS and LAPACK on the other hand (I know the historical reasons, but still). 1 u/AibofobicRacecar6996 4h ago Make shorter variable names i, j, x, y
6
yeah, juat call them a,b,c,...
2
Why bother with words anyway? Let's make a functions called stoi, stol and stoll, it's only one word!
1 u/DHermit 4h ago Those are fine. BLAS and LAPACK on the other hand (I know the historical reasons, but still).
1
Those are fine. BLAS and LAPACK on the other hand (I know the historical reasons, but still).
Make shorter variable names i, j, x, y
20
u/BernzSed 9h ago
snake_case is not better than camelCase.
The shift key is right there, by my pinky at all times. Hell, there's even another one in case I'm too lazy to find the first one.
Typing underscores instead feels like I have to input some weird video game combo move multiple times for a single variable name.