Best Practices for developers

Standards and conventions are related to Best Practices.

These 2 assure following proposes
  • Consistent look to the code
  • enable developers to understand code quickly
  • facilitate copying, changing and maintaining the code

Best practices should be used most of the time rather than always

because it depend on the environment you work on
Prefer best practices but know your priorities


Getting the team to follow best practices
  • Take initiative
  • Know you environment and current practices
  • Point out examples
    • code consistency, legibility, increase performance
  • Persuade with diplomacy


Naming and Handling Classes


folder structure should be such that it should be begin with your project name followed by the technology name


In case of dotnet Framework

For UI layer


ProjectName.Win
ProjectName.Wpf
ProjectName.Web



for Business Logic Layer

ProjectName.Biz


for DataLayer

ProjectName.data



ProjectName.Common




Make a new console application(.Net framework)

make one folder name it test
and make Unit Test Project(.NET framework) and name it as BestPractice.BizTests



In Unit testing make a function for test

and 

write 3 criteria for

arrange


act


assert


Class naming conventions and standards

Methods and classes are usually written in pascal case in dotnet












Comments