Examples
Programming Variable
Original:
user profile settings
camelCase:
userProfileSettings
PascalCase:
UserProfileSettings
snake_case:
user_profile_settings
kebab-case:
user-profile-settings
Article Title
Original:
the quick brown fox jumps over the lazy dog
Title Case:
The Quick Brown Fox Jumps Over The Lazy Dog
Sentence case:
The quick brown fox jumps over the lazy dog
UPPERCASE:
THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
API Endpoint
Original:
Get User Account Information
kebab-case:
get-user-account-information
snake_case:
get_user_account_information
camelCase:
getUserAccountInformation
Case Convention Guide
Programming Conventions
camelCase
Variables, functions in JavaScript, Java
getUserName, calculateTotal
PascalCase
Classes, components in most languages
UserProfile, DataProcessor
snake_case
Variables in Python, Ruby, database columns
user_name, total_amount
kebab-case
URLs, CSS classes, file names
user-profile, main-content
Writing Conventions
Title Case
Headings, titles, proper nouns
The Art of Computer Programming
Sentence case
Regular sentences, descriptions
This is a sentence case example.
CONSTANT_CASE
Constants, environment variables
MAX_RETRY_COUNT, API_BASE_URL
Special Cases
Alternative, inverse, random for creative use
aLtErNaTiNg TeXt
Pro Tip:
Different programming languages and frameworks have their own naming conventions. Always follow the style guide of your specific technology stack for consistency.