C++ Best Practices : Naming Conventions
There are various popular naming conventions which are common among various languages, the relevance of these conventions comes from , the legacy which they hold and other factors like readability, purpose, programming cababilities, for example , we most follow camelcase for java, for c++ which comes with great capabilities, we use lowercase with underscores, most of the time.
why important ?
there are two main advantage which comes with this,
consistency in the code base - especially you are contributing open source.
readability - with common coding style and following it becomes easy for you to understand the code.
C++ naming convention -
Variables - lowercase with underscores,
Functions - lower case with underscores,
Classes - Pascal case
Constants - uppercase with underscores.
In gist : following the best practices , and guidelines, make the job easier for everyone.
Subscribe to my newsletter
Read articles from Parth Kamal directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Parth Kamal
Parth Kamal
I am professional software developer, have joined hashnode, to learn , create, read high quality content in different domains of technologies which excites me, and for my personal growth.