Joke Collection Website - Blessing messages - [Discussion] What are the methods to improve code quality?

[Discussion] What are the methods to improve code quality?

1. Code styles and specifications:

? Look at some code specifications on the internet and think carefully about the starting point of formulating these specifications. For example, Oracle Bone Inscriptions (former

SUN) company's code specification, Google's code specification.

Learn best practices

All kinds of problems encountered in coding, large and small, are not "meditation behind closed doors" at first, but multi-purpose.

Google it and see if there is a ready-made solution.

3. Read excellent open source code

There are many excellent open source projects on the Internet. In view of the problems encountered in your own project, look for similar open source projects and learn from them.

Research, the most important thing is to become your own thing.

4. Learn English well

English is the foundation of all programming languages at present. Your file name, class name, method name and variable name all need good English.

The language foundation can be properly played. Any business logic needs to be expressed in English-based computer language.

If your English is poor, your code will never look professional.

Here are some books to improve code quality:

1. Code collection

This paper discusses the problem of software construction from two aspects: software quality and programming ideas, and discusses in detail the new technologies that keep up with the trend.

Technology, strategic views, general concepts, and rich and typical program examples.

2. Training methods of programmers

? Books cover topics ranging from personal responsibility and career development to knowledge of keeping code flexible, easy to adapt and reuse.

Various architecture technologies.

? To sum up, there are three ways: practice more at ordinary times, read more excellent source code and read books with excellent programming skills.