BP11: Non-confusing, descriptiove and self-explanatory variable naming

Always try to 

Examples of how not to do it:

var operationRep = operationRepository.GetFirst(p => p.OperationId == operationId);

One would say that the variable contains repository. But no, it contains the operation.


 

Comments

Anonymous
Spelling Better name: Self-describing Variable Names

Download Better Coder application to your phone and get unlimited access to the collection of enterprise best practices.

Get it on Google Play