(Reading time : 1 min)
They say that "Good code is like a good joke.No explanation
is needed".
Coding conventions are basically the standards we should follow when writing a piece of code.They are more like guidelines that describe the programming style,practices and methods for each aspect of a program written in that particular language.
Coding conventions are basically the standards we should follow when writing a piece of code.They are more like guidelines that describe the programming style,practices and methods for each aspect of a program written in that particular language.
Coding conventions usually cover File hierarchy organization
, Indentation,Comments , Variable declaration,White spaces etc. This supports
in improving the software structural quality.
When a programmer follows these guidelines, it increases the
readability and the clarity of the code . This eventually helps in making the
Software Maintenance stage (which is 40%–80% of the lifetime ) easier in the
later parts of the system development life cycle.
Out of all these,the most frequently used is the "Camel
notation" of the "Camel case" .Just like the word defines, when
a variable is given a name following this , the name resembles the body shape
of a camel .
In this , we write compound names , phrases such that each
word starts with an Upper case letter with no spaces in the middle. Some very
famous examples would be "iPhone" ,"eBay" and
"DreamWorks".
Opposed to this is the "Title Case" which is about
capitalizing each word in a compound statement or a phrase but while leaving
spaces in between them.
Comments
Post a Comment