Home
Do you follow naming conventions?
  v2.0 Posted at 29/01/2020 12:14 PM by Liam Elliott
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. 

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​)

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments: