In either of the following situations, you haveCodeJie Li. The severity of the symptoms can be mild to severe, and the minor helps to write elegant and clean code. The severe ones will not be defeated.
-
- Extra empty rows, semicolons, and unused variables. For more information, see delete one.
-
- Tabs or spaces that are not aligned must be corrected. Apart from indentation, two consecutive spaces in the Code cannot be seen.
-
- You can see that a method of a class is not annotated and can't help adding it, no matter whether it makes sense or not.
- The spelling of the mistake must be corrected in terms of naming or comments; the case of inconsistency must be corrected; the omission of punctuation must be supplemented.
-
- The Code such as if (a = 0) must be changed to the form of IF (0 =.
-
- All ide code alarms must be cleared, regardless of whether the method is practical or not.
-
- When you see naked numbers, they must be defined as constants. Even if the numbers are intuitively understood, they can only accept constant numbers.
-
- See non-static public variables. The get/set method must be created.
- The shortcut keys that are constantly organized by code format are Ctrl + Shift + F, CTRL + Shift + O in eclipse, and even Ctrl + S.
-
- Once you see more than three consecutive if-else judgment branches, optimization is required; similar method call code, if it appears consecutively, optimization is required; methods that exceed several rows must be restructured.
-
- The most essential performance is that you like to read your code for a long time. You are excited and self-satisfied.