3 ms·
That's sort of what Python's PEP8 recommends. CamelCase for class names, snake_case for the rest, and SNAKE_CASE for constants.
by rootusrootus 4y ago
That's sort of what Python's PEP8 recommends. CamelCase for class names, snake_case for the rest, and SNAKE_CASE for constants.
- cpeterso 4y agoAnd Ruby and Rust.
- jjgreen 4y agoShame that the standard library doesn't follow those recommendations (hello unittest).
- pavo-etc 4y agoalso startswith(), endswith()
- dotancohen 4y agoInterestingly, PHP's PSR family specifically does _not_ take a stance on naming conventions for locally-scoped variables.