Re:CamelCase vs. Underscores: Revisited
by rootusrootus on Wednesday January 25, 2023 @11:21PM
(#34527646)
That's sort of what Python's PEP8 recommends. CamelCase for class names, snake_case for the rest, and SNAKE_CASE for constants.
[ Parent
| on HN ]
Re:CamelCase vs. Underscores: Revisited
by cpeterso on Thursday January 26, 2023 @12:24AM
(#34527995)
And Ruby and Rust.
Re:CamelCase vs. Underscores: Revisited
by jjgreen on Thursday January 26, 2023 @04:25AM
(#34529516)
Shame that the standard library doesn't follow those recommendations (hello unittest).
Re:CamelCase vs. Underscores: Revisited
by pavo-etc on Thursday January 26, 2023 @07:46AM
(#34530994)
also startswith(), endswith()
Re:CamelCase vs. Underscores: Revisited
by dotancohen on Thursday January 26, 2023 @04:40AM
(#34529635)
Interestingly, PHP's PSR family specifically does _not_ take a stance on naming conventions for locally-scoped variables.