Enhance Code Readability
- Whatever the scale of your application always make a proper documentation.
- Keep your code formatted.
- Name of any variable, function, class, object should be meaningful about to it's responsibility.
- Don't make duplicate code always try to reuse.
- Before writing new code think how the code can be reusable.
- Unnecessary and unused code should be removed.
- Avoid putting comments in code.
- Project's package, module, classes should be well structured.
- Should follow a constant right margin for a line of code. 120 characters in a line is recommended.
Keep Efficient Code
- Should follow Test Driven development (TDD).
- Exception, Null, Undefined should be handled.
- Don't trust on user's data must validate it by yourself.
- Get reviewed your code by someone.
Use Version Control
- Always work on your local branch.
- Code should be committed and pushed to the server time to time.
- Always keep an unit of task code in a single commit with a relevant commit message about the task.
THE END
Software Development Best Practices
Reviewed by hnjaman
on
April 23, 2021
Rating:
No comments: