Lesson 7 +20 XP

Capitalization, Acronyms & Mixed Case Flying

Code Naming Conventions & Mixed Case

In software engineering, variable names use specific case conventions:

  • camelCase (e.g. getUserProfile)
  • PascalCase (e.g. UserProfileController)
  • snake_case (e.g. user_profile_id)
  • KEBAB-CASE or UPPER_SNAKE (e.g. MAX_RETRY_COUNT)

Shift Key Alternation for Speed

Typing mixed case requires alternating Shift keys seamlessly:

Word: "JavaScript"
1. J  -> Hold Left Shift (Left Pinky), Tap J (Right Index)
2. ava -> Type "ava" normally
3. S  -> Hold Left Shift (Left Pinky), Tap S (Left Ring)
4. cript -> Type "cript" normally
🟣 Important

Never Use Caps Lock for Single Capitals! Turning Caps Lock on and off requires two separate keystrokes. Using the opposite Shift key takes only one fluid fluid movement. Reserve Caps Lock strictly for ALL-CAPS constants like MAX_BUFFER_SIZE.