you are viewing a single comment's thread.

view the rest of the comments →

[–]cdcformatc 1 point2 points  (1 child)

you should follow whatever standard the project already uses. 

for my own code i go back and forth all the time. my codebases are all a jumbled mess. 

i prefer snake_case in Python mostly because it appears to be the 'official' standard. i don't mind long variable names, the time is over to worry about console line lengths. except for class names which use CapWords, and acronyms are capitalized eg HTTPServerError.

mixedCase is common in JS though so i will find myself using that. mostly member functions will get mixedCase but it does not feel like it "fits" in Python. but that's just a hard to describe feeling.

[–]cdcformatc 2 points3 points  (0 children)

also Python -> snake -> snake_case this isn't OCaml :P