casingStylePoll π³οΈ #1833
Closed
RobAndrewHurst
started this conversation in
Polls
Replies: 1 comment 1 reply
-
I prefer camelCase usually but I am also ok with snake_case. These should only be recommendations anyways. We wouldn't change existing definitions to create unnecessary chaos. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Common Naming Patterns
camelCase
getUserData
,firstName
,calculateTotal
PascalCase
UserProfile
,DatabaseConnection
,TodoList
snake_case
max_retries
,user_settings.js
SCREAMING_SNAKE_CASE
MAX_CONNECTIONS
,API_KEY
,DEFAULT_TIMEOUT
kebab-case
data-user-id
,background-color
,user-profile.js
Current Issue
Our codebase currently mixes snake_case and camelCase conventions. We need to select one approach and maintain consistency across the code.
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions