coding style - how to write clean code in c# language and improve quality of code -
how can improve our code quality , write clean code. if write unclean ugly code how can migrate code (beautiful , clean).
everyone finds it's own way of clean code means, there few things might want know, reach level/others understand code (because in world practically have it's own standards).
- each class/method should responsible 1 thing/task (oop).
- use best-practices:
- comment code, not much, make simple understand.
- use readable variable names, no more x1s, tempc.. etc...
- do "big image" optimizations first, others latter.
- read open source projects code.
- use unit testing or in best case tdd.
- learn , use design patterns, c# implementations.
Comments
Post a Comment