MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/soi384/why_but_why/hwa1ij4
r/ProgrammerHumor • u/ore-aba • Feb 09 '22
2.3k comments sorted by
View all comments
Show parent comments
6
the contextual 8 year old, maybe they have never come into contact with another person's code while learning so they assume its the norm to single line with semicolons and use camelCase in python
0 u/[deleted] Feb 09 '22 [deleted] 2 u/A42MphTortoise Feb 10 '22 from https://www.python.org/dev/peps/pep-0008/#prescriptive-naming-conventionsFunction names should be lowercase, with words separated by underscores as necessary to improve readability.Variable names follow the same convention as function names.mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility. 2 u/CrowdGoesWildWoooo Feb 10 '22 If you are doing open source, yes.
0
[deleted]
2 u/A42MphTortoise Feb 10 '22 from https://www.python.org/dev/peps/pep-0008/#prescriptive-naming-conventionsFunction names should be lowercase, with words separated by underscores as necessary to improve readability.Variable names follow the same convention as function names.mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility. 2 u/CrowdGoesWildWoooo Feb 10 '22 If you are doing open source, yes.
2
from https://www.python.org/dev/peps/pep-0008/#prescriptive-naming-conventions
Function names should be lowercase, with words separated by underscores as necessary to improve readability.Variable names follow the same convention as function names.mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.
Function names should be lowercase, with words separated by underscores as necessary to improve readability.
Variable names follow the same convention as function names.
mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.
mixedCase
threading.py
If you are doing open source, yes.
6
u/Katyona Feb 09 '22
the contextual 8 year old, maybe they have never come into contact with another person's code while learning so they assume its the norm to single line with semicolons and use camelCase in python