————– 2017.11.30 Updated ————–


“Alibaba Java Development Manual (Ultimate Version)” has been officially released, which is the most complete and most thoroughly revised version in history, and has added the content of unit test protocol. This is also the last PDF version released by Alibaba, which is worth collecting.

 

“Alibaba Java development manual” is ali internal Java engineer should follow the development of the specification, programming code, unit test specifications, abnormal log statute, MySQL code, engineering specifications, safety regulations, etc., it is nearly 10, ali Java technology elite, experience, and a line of actual combat experience several large-scale inspection and perfect. This is ali’s gift to the Java community to help enterprise development teams become more efficient, fault-tolerant and collaborative in Java development, improving code quality and reducing project maintenance costs.


Click on the download “alibaba Java development manual” (ultimate) : yq.aliyun.com/attachment/…

Test certification & online code detection: edu.aliyun.com/certificati…

IDE plug-in download: github.com/alibaba/p3c






Unit test protocol

Unit testing helps the development team to effectively monitor the quality of software modules and promote the in-depth optimization of code, thus reducing the online failure rate. Long-term execution helps improve the efficiency of project iteration and reduce the cost of reconstruction. In the final version, Ali described in detail the relevant principles and important suggestions of unit testing based on the practical experience of internal unit testing:

  • The principle of AIR:

Unit testing is meaningful only if the test framework is executed automatically.

I: Independent. Unit test cases are Independent of each other.

R: Repeatable, unit tests can be executed repeatedly with consistent results

  • BCDE principle:

B: Border, boundary value test, including loop boundary, special value, special time point, etc.

C: Correct, and get the expected result.

D: Design, in conjunction with Design documents, to write unit tests.

E: Error: forces the input of Error information (such as invalid data) and gets the expected result.


IDE code detection plug-in

Since the official release of the Alibaba Java Development Manual, Java developers have been focusing on when to release IDE code monitoring plug-ins. After r & D and internal testing, now the plug-in will finally meet with you — On October 14, Hangzhou Cloud Conference R&D efficiency Summit, Ali will officially open the plug-in and source code.

After scanning the code, the plugin will display the code that does not comply with the manual in block/critical/major grades. When writing code in real time, it gives you smart tips on how to write it more elegantly; For historical code, some rules implement batch one-click fixes. Is it convenient?


“Alibaba code specification” examination certification

Alibaba Cloud University has launched the “Alibaba Coding Specification” certification in combination with the “Alibaba Java Development Manual”. Through the online examination, you will test your mastery of the development specification in the manual and will be issued the official certification certificate.

Exam: immediately edu.aliyun.com/certificati…



————–————–————–

About Alibaba Java Development Manual


Have you ever been overwhelmed by the plethora of versions of Java code specifications?

Did you ever think that code specifications could reduce system failure rates by 20%?

Have you ever had difficulty working together because your team has different code styles?

Are you reviewing glitches that could have been avoided?

Are you not sure your code is robust enough?

Code out efficient, code out quality!

Compared to the C++ code specification industry has reached a consensus, the Java code specification industry is confused, we expect this release of the Java code specification to bring a standard to the industry, promote the overall level of code specification to improve, ultimately help enterprises and developers to improve code quality and reduce code failure rate.

 

Ali products, quality assurance!

Ali Java Technology team has created many popular open source frameworks such as Dubbo, JStorm and Fastjson, some of which have been incubated by Apache Foundation.

Alibaba supports the world’s most visited server cluster in the Java backend.

The order processing capacity of Alibaba Double 11 business system built by Java code reached 175,000 transactions per second.

Hundreds of millions of lines of high-concurrency, high-stability best Java code practices have accumulated so far;

This open Java development manual is from such a team, nearly ten thousand Ali Java technology elite experience summary, and experienced a number of large-scale front-line combat inspection and improvement, cast this high gold content Ali Java development manual. From the perspective of Java developers, this manual is divided into five parts: programming protocol, exception log protocol, MYSQL protocol, engineering protocol and security protocol, and then subdivided into several secondary subdirectories according to the content characteristics. According to the strength of the binding force and fault sensitivity, protocols can be divided into three categories: mandatory, recommended and reference. This set of specifications can not only make the code at a glance, but also help to strengthen the division of labor and cooperation of the team, and really improve efficiency.


We can’t cooperate without rules and standards

As we all know, traffic laws are ostensibly designed to limit the right to drive, but in fact, to protect the personal safety of the public. Imagine if there were no speed limit, no traffic lights, no rules to drive on the right, who would dare to drive on the road.

Similarly, for software, proper specifications and standards are not about eliminating creativity and elegance of code content, but about limiting over-personalization, working together in a generally accepted way, reducing failure rates, and increasing collaboration efficiency. The development manual lists in detail how to develop more efficient, more fault tolerant, more collaborative, and strive to know what it is, better know what it is not, combined with positive and negative examples, improve code quality. For example, various irregularities in exception log handling; Set conversion of various pits; Create thread pool appear wait queue OOM etc.


Ali technology senior big coffee joint recommendation

Duolong, senior researcher of Ali: Engineers must “keep improving” for code. No matter from performance, or from simplicity and elegance, they should have the craftsman spirit of “keep improving” and polish their works seriously.

Bi Xuan, a researcher of Ali: The difference between an excellent engineer and an ordinary engineer is not the architecture diagrams flying everywhere, but the foundation of his skills is 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, and 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 between each other. Simple, applicable code protocol behind the transmission is the pursuit of excellence in technology, the spirit of cooperation, is an important tool for every technical team.

A programmer is an artist who creates personalized work, but also a team work. Personalization should be shown in code efficiency and algorithm as far as possible, sacrifice the ego, achievement of the ego.


Embrace norms and stay away from harm!

Development of students to act quickly, comply with the code specification, hello, HELLO, hello!


Follow the wechat public account of cloud Community: