Java coding standards
##2017
Code specification standards. This set of Java unified specifications will help improve the standardization level of industry coding, help industry personnel improve development quality and efficiency, and greatly reduce code maintenance costs.
Have you ever been at a loss as to what to do due to the numerous Java code specification versions?
Have you ever thought that coding standards can reduce system failure rates by 20%?
Have you ever had difficulty in collaboration due to different coding styles in your team?
Are you reviewing some avoidable failures? Are you unsure that your code is robust enough?
### ###############The code is efficient and the code is quality! ###############Compared with the C code specification industry, which has reached a consensus, the Java code specification industry is relatively confusing. We hope that the Java code specification released this time can bring a standard to the industry and promote The overall industry code standard level has been improved, which can ultimately help enterprises and developers improve code quality and reduce code failure rates. ############ ###############Produced by Ali, quality guaranteed! ###############The Alibaba Java technical team has created many popular open source frameworks such as Dubbo, JStorm, Fastjson, etc., some of which have become Apache Foundation incubation projects; ######## ####Alibaba supports the world's most visited server cluster in the Java back-end field; ############Java######Alibaba Double 11 business system order processing capabilities built with Java code Reaching 175,000 transactions/second; ######So far, hundreds of millions of lines of best Java code practices with high concurrency and high stability have been accumulated;
……
This first public Java development manual is produced by such a team. The experience summary of nearly 10,000 Alibaba Java technical elites has gone through many large-scale front-line practical tests and improvements, creating this highly valuable Alibaba book. Java Development Manual. This manual takes Java developers as the central perspective and is divided into five major parts: programming protocols, exception log protocols, MYSQL protocols, engineering protocols, and security protocols. It is further subdivided into several secondary subdirectories based on content characteristics. According to the strength of the binding force and the sensitivity to faults, the regulations are divided into three categories: mandatory, recommended, and reference. This set of specifications not only makes the code clear at a glance, It also helps strengthen team division of labor and cooperation and truly improve efficiency.
No rules no standards No collaboration without regulations
#As we all know, the purpose of enacting traffic regulations is to restrict the right to drive, but in fact it is to protect the personal safety of the public. Just imagine if there were no speed limits, no traffic lights, and no regulations to drive on the right, who would dare to drive on the road.
Similarly, for software, appropriate specifications and standards are by no means to eliminate the creativity and elegance of code content, but to limit excessive personalization in order to A universally recognized way to do things together, reducing failure rates and improving collaboration efficiency. The development manual lists in detail how to develop more efficiently, more fault-tolerant, and more collaboratively. It strives to know what is happening and what is not happening, and combines positive and negative examples to improve code quality. For example, various irregularities in exception log processing; various pitfalls in collection conversion; waiting queue OOM when creating a thread pool, etc.
## Recommended by senior Alibaba technology experts
Alibaba Senior Researcher Duolong: Engineers must "keep improving" their code, whether in terms of performance or conciseness and elegance. Everyone must have the craftsman spirit of "keep improving" and polish their works carefully.
Alibaba researcher Bi Xuan: The difference between an excellent engineer and an ordinary engineer is not the architecture diagrams that are flying all over the sky now, but his skills are reflected in the things he writes on every line of code.
Alibaba researcher Xuannan: Code is for product design, system architecture design, etc. in software engineering Finally, the quality of the carrier and code determines the success or failure of all work.
Li Chun, CTO of Alibaba B2B Business Group: Good software products are inseparable from high-quality engineers Code and smooth communication and cooperation between each other. Behind the simple and applicable code specifications is the spirit of technical pursuit of excellence and collaboration, which is an indispensable and important tool for every technical team.
Alibaba researcher, HipHop author: Zhao Haiping (nickname: Fu Bei) : Programmers are creative An artist who creates individual works, but is also a type of work that requires teamwork. Personalization should be reflected in code efficiency and algorithms as much as possible, sacrificing the individual to achieve the greater self.
#Embrace norms and stay away from harm!
# All developers, please act quickly and abide by the code specifications. Hello, me, everyone!