Tribute to the code, looking for your first 83 rows (Ali Baba's 83 lines of code is what terrier)

Tribute to the code, find the line before your 83 days in a dark room Ali Baba's, five pairs of codes has the ultimate pursuit of programmers involved in the code field's highest honor Ali "Dolon Award" finalist (and more Long as Taobao first generation of programmers, but also many technical hearts of the god).

那天代码评审现场,看到某代码片段最后结尾,多隆突然补上一句,往上翻看下第83行。代码一般都是几百行,他看到最后,居然还记得第83行的一个细微瑕疵,这得是对代码怀着怎样的敬畏之心。

This is the origin of the first 83 lines of code,
I was watching a lone teacher wearing 83 lines of code to make the arrival of these fishes interest generated by the program ape Tucao Conference

小插曲

Solitary teacher to make the sun out of their first year of entry written piece of code:
Here Insert Picture Description

Nicholas Ray : Manual, it is recommended to define local variables as basic data types. RPC method (that is, long-distance calls) and return value parameters must use packaging types.

I do not know whether these two specifications suitable for use in those solitary best teacher in the code?

Solitary do Reply @ Nicholas Ray:

You see the way, it is indeed a local variable is not defined as basic data types. In fact, this is a big pit, encountered automatic solution tank, a large circulation will be very slow.

Nicholas Ray : I seem to remember that in the statute, it is recommended to define logical decision statement into a variable? Is that right? I can not find it in the manual.

** solitary do Reply @ Nicholas Ray: ** this?
Here Insert Picture Description

Reply @ micro wx laugh lone do : it is not a necessary condition of it, declare a variable does not occupy memory space?

Reply @ micro solitary try wx laugh:

Ok. Realization of our scanning rules here
there are two or more logical operators, it will remind to define out. As for total memory space, ignore it.

Nicholas Ray Reply @ lone do : The original is a need to define complex logic!

Nicholas Ray Reply @ lone do : I see

About solitary best teacher: "Ali Baba JAVA Development Guide," the lead author, Alibaba Group, served as different roles in research and development, architects, technology, and other executives, a commitment to double eleven, international, Source Center and other large projects, has a a wealth of front-line programming experience, is currently developing collaborative platform Aone Center for the code, in large data, high concurrency, R & D performance has deeper knowledge.

孤尽老师的面试:

你看过我的阿里巴巴Java开发手册吗?
同学A:看过,(同学A会觉得自己不行)
同学B:没看过(孤尽老师会觉得同学B不行)	
Released 1642 original articles · won praise 20000 + · views 2.86 million +

Guess you like

Origin blog.csdn.net/a1439775520/article/details/105114947