Ali's official Java code specification standard "Alibaba Java Development Manual Ultimate Edition v1.3.0"

Ultimate v1.3.0

At the beginning of the spring of 2017, Alibaba sincerely presented a big gift: "Alibaba Java Development Manual", which is the first time to disclose Alibaba's official Java code specification standards. This set of unified Java standards will help improve the standardization level of industry coding, help industry personnel improve development quality and efficiency, and greatly reduce code maintenance costs.

Three versions have been changed so far. On September 25, 2017, Alibaba Java Development Manual (Ultimate Edition) was officially released. This is the most complete and revised version in history, and the content of the unit test protocol has been added. , which is also the last PDF version officially released by Ali, which is worthy of collection.

The "Alibaba Java Development Manual" is a development specification followed by Alibaba's internal Java engineers, covering programming specifications, unit testing specifications, exception log specifications, MySQL specifications, engineering specifications, security specifications, etc., which are owned by nearly 10,000 Alibaba Java technical elites. Experience has been summed up, and it has undergone many large-scale first-line actual combat tests and improvements. This is a gift from Alibaba to the Java community, hoping to help enterprise development teams become more efficient, fault-tolerant, and collaborative in Java development, improve code quality, and reduce project maintenance costs.

download

Since downloading in Yunqi requires logging in to an Alibaba Cloud account, some friends may not have this account and therefore cannot download. Currently, the minimum score for file resources uploaded on CSDN is 2 points. I don’t know when this setting was changed. There used to be 0 points. There is an option to download resources, so the file is transferred to the article management of the blog garden. The download should not require points, and it can be downloaded directly without being particularly troublesome.

"Alibaba Java Development Manual Ultimate Edition v1.3.0.pdf" download address

Final version

"Alibaba Java Development Manual v1.2.0.pdf" download address

v1.2.0

Code out efficient, code out quality!

Compared with the C++ code specification industry, which has reached a consensus, the Java code specification industry is relatively chaotic. We expect that the Java code specification released this time will bring a standard to the industry, promote the improvement of the overall industry code specification level, and ultimately help enterprises and developers. Improve code quality and reduce code failure rates.

Ali produced, quality assurance!

Alibaba's Java technical team has created many popular open source frameworks such as Dubbo, JStorm, Fastjson, and some of them have become Apache Foundation incubation projects;

Alibaba supports the world's most visited server cluster in the Java backend field;

The Alibaba Double 11 business system built with Java code has an order processing capacity of 175,000 orders per second;

So far, hundreds of millions of lines of high-concurrency and high-stability best Java code practices have been accumulated;

……

The Java development manual released this time comes from such a team. The experience of nearly 10,000 Alibaba Java technical elites has been summed up, and it has undergone many large-scale first-line actual combat tests and improvements. This highly valuable Alibaba Java development manual has been created. This manual takes the Java developer as the center and is divided into five parts: programming specification, exception log specification, MYSQL specification, engineering specification, and security specification, and then subdivided into several secondary subdirectories according to the content characteristics. According to the strength of the binding force and the fault sensitivity, the statutes are divided into three categories: mandatory, recommended, and reference. This set of specifications can not only make the code clear at a glance, but also help to strengthen the division of labor and cooperation of the team, and truly improve the efficiency.

No rules, no circle, no norms, no cooperation

As we all know, the formulation of traffic laws on the surface is to restrict the right to travel, but in fact it is to protect the personal safety of the public. Imagine if there is no speed limit, no traffic lights, and no regulations to keep to the right, who would dare to drive on the road.

In the same way, for software, proper specifications and standards are by no means to eliminate the creativity and elegance of code content, but to limit excessive personalization, to work together in a generally recognized way, to reduce failure rates, and to improve collaboration efficiency. The development manual lists in detail how to develop more efficiently, more fault-tolerantly, and more collaboratively, and strive to know what is true and what is not, and combine positive and negative examples to improve code quality. For example, various irregular behaviors in exception log processing; various pits for collection conversion; waiting queue OOM for thread pool creation, etc.

Recommended by senior experts in Alibaba technology

Duo Long, senior researcher at Ali: Engineers must "keep improving" for code. Whether in terms of performance or simplicity and elegance, they must have the craftsmanship of "keep improving" and polish their works carefully.

Ali 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, but his skills are reflected in every line of code he writes.

Ali researcher Xuan Nan: Code is the final carrier of product design and system architecture design in software engineering. The quality of code determines the success or failure of all work.

Li Chun, CTO of Alibaba B2B business group: Good software products are inseparable from engineers' high-quality code and smooth communication and cooperation with each other. The simple and applicable code specification conveys the spirit of technical excellence and collaboration, and is an indispensable tool for every technical team.

Ali researcher, HipHop author: Zhao Haiping (flower name: Fubei): Programmers are artists who create personalized works, but they are also jobs that require teamwork. Personalization should be shown as much as possible in terms of code efficiency and algorithms, sacrificing the ego and achieving the greater ego.

Embrace norms and stay away from harm!

The students who are developing, hurry up and abide by the code specifications, hello, hello, hello everyone!

First published on my personal blog .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325781881&siteId=291194637