This video explains the importance of coding standards and best practices.
Please view the videos that explains this thoroughly.
https://www.vimeo.com/99504288
http://www.youtube.com/watch?v=dZuRkJ-u_cU
2. Coding Standards
Why Coding Standards?
Coding standards are generally used for ease of others in a team or client who might look into
your code at some point of time.
The application does not care at all about this. How you format your code will not (directly) effect
how your programs runs, at all.
However, programming ( in practice ) is a team sports. Coding conventions can help the team work
together better.
So why are these important?
3. The Good
Common standards for a few good things to happen:
Programmers can go into any code and figure out what's going on.
New people can get up to speed quickly.
People new to C++ are spared the need to develop a personal style and defend it to the
death.
People new to C++ are spared making the same mistakes over and over again.
People tend to make fewer mistakes in consistent environments.
4. What you can do
There are a lot of things you can do, as a programmer, to make it easier for others
to understand your code (we just saw why this is important.)
Specifically, there are things you SHOULDN’T DO. Although lots of programmers do
them.
- Standards mean rules are enforced. For enforcement, code reviews must be there
which needs further rules(snow ball effect)
- Specific sets of rules should be implemented for each type of computer languages.