- Developer's Best Practices
- Introduction
- What is Practice?
- Code Reading & Reading
- Documentation is the Key
- Follow the Standards
- Write to be Reviewed
- Testing is the Religion
- Keep the Assets Safely
- Handy Tools & Techniques
- Eager to Learn
- Towards Managements
- Stress Management
- Managing Managers
- Career Planning
- Summary
- Useful Resources
- Resources
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Follow the Standards
Best Practice 3 - Follow the defined standards, don't create it
Most of the standard software organizations maintain their coding standards. These standards would have been set up by well-experienced software developers after spending years with software development. This is equivalent to following footsteps of great people left behind them.
If your organization does not have any standard, then I would suggest to search on internet for coding standards off different programming languages and you will find many. A coding standard would fix the rules about various important attributes of the code, few are listed below:
- File Naming convention
- Function & Module Naming convention
- Variable Naming convention
- History, Indentation, Comments
- Readability guidelines
- List of do's and don'ts
But once defined, start following the defined standard instead of creating or changing them every day. I would definitely say:
Source code is your BABY!
So keep it clean, consistent and beautiful. When I say beautiful, it really means beautiful. If your code looks beautiful, then it would be easy for others to read and understand it. If you will keep changing coding rules everyday, then after few days you, yourself would not be able to read and understand the code written by you.