Software Development Best Practices

Best Practices


Enhance Code Readability
  1. Whatever the scale of your application always make a proper documentation. 
  2. Keep your code formatted.
  3. Name of any variable, function, class, object should be meaningful about to it's responsibility.
  4. Don't make duplicate code always try to reuse.
  5. Before writing new code think how the code can be reusable.
  6. Unnecessary and unused code should be removed.
  7. Avoid putting comments in code.
  8. Project's package, module, classes should be well structured.
  9. Should follow a constant right margin for a line of code. 120 characters in a line is recommended. 

Keep Efficient Code
  1. Should follow Test Driven development (TDD).
  2. Exception, Null, Undefined should be handled.
  3. Don't trust on user's data must validate it by yourself.
  4. Get reviewed your code by someone.

Use Version Control
  1. Always work on your local branch.
  2. Code should be committed and pushed to the server time to time.
  3. 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 Software Development Best Practices Reviewed by hnjaman on April 23, 2021 Rating: 5

No comments:

Powered by Blogger.