Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
[ ] being consistent with what the rest of the project is using or language's official/most popular style guide
-
Most of this comments section did not understand that it's about the name of the cases, not about the cases themselves
-
Root797575yMy favorite names are PascalCase because it sounds pretty, @caramelCase because she is pretty, and SCREAMING_SNAKE_CASE because it's hilarious.
-
hitko31455yWhatever, just don't fucking ever use pascal or camel case for file naming.
- it's impossible to tell apart Psychotherapist.py and PsychoTheRapist.py when you have them in the same folder
- Windows & Linux 5.2+ can be case-insensitive which fucks things big time
- sorting is inconsistent, some software sorts by character code (uppercase before lowercase), other software sorts by normalised value (P and p come together) -
I just call everything tmp.
Philosophicaly correct.
added bonus - Drive the rest of the team nuts! -
PascalCase for classes and public (variables, properties, methods) names, camelCase for private (variables and methods).
Best case name:
[ ] PascalCase
[ ] camelCase
[ ] snake_case
[ ] kebab-case
random