Coding standards






Code duplication






Code coverage






Dependency analysis






Complexity analysis









Java training


1. Develop a good habit





2. Standardize your code

As the saying goes, “No rules, no fangyuan”. The code follows a uniform format specification, which is easy to maintain in the future, and easy to hand over to others. Good coding practices can reduce the maintenance cost of a piece of software as much as possible. After all, very few pieces of software are maintained from start to finish by the original developer. A good code specification can also improve the readability of the software, making it not only clear to read by yourself, but also easier for others to understand the new code, which can maximize the efficiency of team development, which is very important for a project team.

Comment your code properly





4. Don’t write too many parameter methods





5. Don’t write duplicate code





Don’t do meaningless things











7. Place your code correctly





8. Think about your users


9. Dismantle your code





10, rational use of inspection tools





Refactor your code