2 ms·
My current style convention mixes several naming styles to help in distinguishing code visually. I prefer camelCase for variables, which need to be typed repea
by pzone 8y ago
My current style convention mixes several naming styles to help in distinguishing code visually.
I prefer camelCase for variables, which need to be typed repeatedly, and camel is fastest to type. I use snake_case for functions, UpperCamelCase for classes/types, and ALL_CAPS_SNAKE for configuration variables a user would be expected to edit.
- ChrisRR 8y agoWhat language is that in? Conventions tend to follow with programming languages. In C, snake case is historically the default, but I tend to use UpperCamelCase for functions, UpperCamelCase for file-level static variables, lowerCamelCase for function-level static variables and ALL_CAPS_SNAKE for #defines.
- charlesism 8y agocamel is fastest to type iAgree but englishIsAlso fasterToType byRemovingSpacesAnd capitalizingFewerWordsThan usual. iDonT knowWhy weProgrammers shouldConsiderThat aWorthwhile tradeOff
- Jemm 8y agoiThink theGermansWouldAgree.