What is the difference between coding standards and coding guidelines..Please help me to understand...if possible give me example..
Thanks for your time in advance.. :)
Home / DeveloperSection / Forums / What is the difference between coding standards and coding guidelines?
What is the difference between coding standards and coding guidelines..Please help me to understand...if possible give me example..
Thanks for your time in advance.. :)
Nishi Tiwari
12-Dec-2019Coding standard refers to how developers write the code following different set of rules and guidelines set by organization. There are some coding standards regardless of any programming language like proper indentation, limited use of global, standard headers file used for modules, naming convention of local variables, global variables and functions and error returning values with exception handling convention.
Coding guidelines gives the suggestion or instruction regarding coding style for the betterment of readability and understandability of code as well as to maintain the code. Some guidelines are well documented, length of function or variables is not to be large, error messages should be given, not use goto statement etc.