• I always have high requirements for code quality, and I am looking forward to writing some basic service code for others to use. At present, I can only write some business code, also known as CRUD engineer. Write down what you’ve learned about writing good business code

    1. Understanding the business is important To remember that any technology development is inseparable from the business, some of the technology out of the business is rogue

    Therefore, before coding, we must communicate with the product to confirm whether the goal to do is consistent, with the end as the beginning

    2 to share a few personal think write good code several tools IDEA code debugging common shortcuts code static check IDEA plugin Alibaba rules scan plugin

    todo

    3. Recommend refactoring to improve design code cleanliness for existing code

    Before writing the code, you need to think about how to write the code, where to start, and how to verify after writing. If the business logic is complicated, you can draw a flow chart on the paper. You can ignore the abnormal situation and verify the abnormal situation after the normal process is finished. Methods that can be reused can be extracted.

    Postman and other tools can be used to test the code. For the original business logic changes, you need to check whether the changes will affect other places, whether there are SQL references are not modified, remember to carefully check each link function before the launch of database changes.

    And so on in the next work encountered what small skills to supplement here