Do you follow naming conventions?

Last updated by Matt Goldman [SSW] 3 months ago.See history

This rule has been archived
Archived Reason: Superseeded by 9 individual rules

It's the most obvious - but naming conventions are so crucial to simpler code, it's crazy that people are so loose with them...

For Javascript / Typescript

Google publishes a JavaScript style guide. For more guides, please refer to this link: Google JavaScript Style Guide

Here are some key points:

  • Use const or let – Not var
  • Use semicolons
  • Use arrow functions
  • Use template strings
  • Use uppercase constants
  • Use single quotes

See 13 Noteworthy Points from Google’s JavaScript Style Guide

For C# Java

See chapter 2: Meaningful Names Clean Code: A Handbook of Agile Software Craftsmanship

For SQL (see Rules to Better SQL Databases)


Adam Cogan
We open source.Loving SSW Rules? Star us on GitHub. Star
Stand by... we're migrating this site to TinaCMS