DEV Community

Discussion on: Coding Best Practices Part 1 (Naming Conventions & Class Designing Principles)

Collapse
 
klausdonnert profile image
Klaus Donnert • Edited

I know this is a pipe dream, but it would be nice if there were only one universal style. I work with PHP, JS, and CSS. Frequent Switching between camelCase, snake_case and kebab-case has cost me many annoying bugs because I will invariably mis-name a variable because I forgot (just for a second) the context of the name.

But then there's Google's place_id. Nice. I'm not the only one that does it. :)

Collapse
 
mohitrajput987 profile image
Mohit Rajput

I can understand that pain. Switching between different type of languages make it hard to follow naming convention rules.
To catch the pace, don't switch frequently in different languages. Give at least one or two entire days to one language.