Re:What are some good and bad names you've encountered in Py...
by jjgreen on Monday May 22, 2023 @04:57AM
(#36028930)
Do you mean names of variables, functions etc?
[ Parent
| on HN ]
Re:What are some good and bad names you've encountered in Py...
by rekahrv on Monday May 22, 2023 @05:20AM
(#36029059)
Yes, exactly.
Thanks for the clarifying question. :-)
Any kind of artifact in code: modules, functions, classes, arguments, variables...
Re:What are some good and bad names you've encountered in Py...
by jjgreen on Monday May 22, 2023 @06:06AM
(#36029379)
Ones that used to annoy me were in the standard library, in particular the unitest module with camel-case functions (assertEqual and so on), I've seen this justified by it being old and predating the snake-case conventions, but surely assert_equal could have lived alongside the older names. Moot now that I've switched to pytest of course ...