How to naming, camelCase vs snake_case

[programming],[camelCase],[snake_case]


Recently, I want to find a best naming solution for all my programs, here I find a reasonable rule set.

variable_names_in_snake_case : Variable, a mutable thing. All lower case, words separated by underscores.

CONSTANTS_IN_ALL_CAPS : Constant, an immutable thing. All upper case, words separated by underscores.

functionAndMethodNames : Functions and methods, immutable and callable things. Mixed camel case, first letter always lower case.

StructAndClassNames : Structs and classes, immutable and instantiatable things. Mixed camel case, first letter always upper case.

Thanks to https://blog.lmorchard.com/2013/01/23/naming-conventions/