FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
camelCase, snake_case, kebab-case: Why Naming Conventions Are a Solved Problem You Keep Arguing About
How-ToWeb Development

camelCase, snake_case, kebab-case: Why Naming Conventions Are a Solved Problem You Keep Arguing About

via Dev.to JavaScriptMichael Lip2h ago

I once reviewed a pull request where a single file used camelCase for JavaScript variables, snake_case for API response fields, PascalCase for one React component, and SCREAMING_SNAKE_CASE for a constant that wasn't actually constant. The developer's explanation was "I used whatever felt natural at the time." Naming conventions exist precisely so you don't have to make that decision at the time. They're a solved problem. The only hard part is picking one per context and sticking to it. The conventions and where they come from camelCase : first word lowercase, subsequent words capitalized. getUserName , isActive , totalCount . The standard in JavaScript, Java, and Swift. The name comes from the humps in the middle of the word, like a camel's back. PascalCase (also called UpperCamelCase): every word capitalized. UserProfile , HttpRequest , DatabaseConnection . Used for class names in most languages, React component names, and C# methods. snake_case : words separated by underscores, all l

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
0 views

Related Articles

The Maven Velocity Playbook: Mastering Build Speed, Dependency Scopes, and Modern Caching
How-To

The Maven Velocity Playbook: Mastering Build Speed, Dependency Scopes, and Modern Caching

Medium Programming • 48m ago

Monte Verde site gets a new date, but the big picture doesn't change
How-To

Monte Verde site gets a new date, but the big picture doesn't change

Ars Technica • 1h ago

Your CLAUDE.md Is a Suggestion. Hooks Make It Law.
How-To

Your CLAUDE.md Is a Suggestion. Hooks Make It Law.

Medium Programming • 1h ago

The Hidden Complexity of Citation Formatting (And Why I Automated It)
How-To

The Hidden Complexity of Citation Formatting (And Why I Automated It)

Dev.to Beginners • 2h ago

The Widmark Formula: How BAC Is Actually Calculated
How-To

The Widmark Formula: How BAC Is Actually Calculated

Dev.to Tutorial • 2h ago

Discover More Articles