Learning_Python icon indicating copy to clipboard operation
Learning_Python copied to clipboard

Terminology of formatting conventions

Open joeri-hu opened this issue 3 years ago • 1 comments

Referring to Module 5: Odds and Ends under the section Naming Conventions, there is a lot of emphasis put on the distinction between different formatting conventions for class names. It states that CamelCase should be used and then goes on to show the differences with the example of ShoppingList and shoppingList, implying that the latter is not CamelCase.

In this scenario, the term CamelCase is a poor choice since both styles qualify as CamelCase. Personally, I've always used the terms camelCase and PascalCase to make the distinction. The PEP8 style-guide seems to use the term mixedCase to refer to the former.

In any case, I feel that using the term CamelCase to solely refer to CapWords (and not mixedCase) is definately not the way to go and will only lead to more confusion to the reader.

joeri-hu avatar Feb 24 '22 22:02 joeri-hu

Thanks for bringing this to my attention. It does look like camelCase and CamelCase are both valid. I'll update this section to use the term CapWords instead,

rsokl avatar Feb 25 '22 22:02 rsokl