I came here because I had the opportunity to write a blog on Qiita for the first time! Currently, I have two technical weapons, Java and Alibaba Cloud. And I wanted to combine these two and write something. There are various things, but this time I would like to introduce a little about Alibaba Java Coding Guidelines. why? I want to make my code more beautiful!
Best programming practices within Alibaba's technical team over the years. Different Java programming teams program according to the same rules to improve code quality and promote mutual reuse and understanding of programs.
This Coding Guideline can be divided into the following 5 categories.
Each specification is divided into three levels.
Details are as follows. [Description]: Description [Correct example]: Coding and implementation are approaching, and explanation of recommendations [? ] [Counterexample]: Precautions and actual error cases
[Required] Constant variable names must be capitalized and delimited by underscores. The name of each constant variable must be semantically complete and clear.
Normal example: MAX_STOCK_COUNT
You can read the documentation and compare it with your own code, but you can also check the code with the plugin below. (I was pretty angry when I used it in my code) ● PMD implementations ● IntelliJ IDEA plugin ● Eclipse plugin
Alibaba Cloud Academy has an exam for Alibaba Java Coding Guidelines. You can read the documentation and test your knowledge. The exam is free and you will receive a badge if you pass.
The link for the exam is here
This best programming practice can be very helpful in improving the quality of your code. Avoid potential code errors and be able to write the best code!
** Especially me! ** **
Thank you for reading to the end.