Home
Do you follow naming conventions?
  v1.0 Posted at 24/04/2018 7:51 AM by Tiago Araujo
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 (not really relevant these days)​​

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:

    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.