Write by nine days Yan Ling (jtianling) -- blog.csdn.net/vagrxie
Sina Weibo -- Discussing newsgroups -- code library -- Douban
I have heard that the three most widely used languages inside Google are c ++, Java, and python, But it is strange that Google style guide has c ++ and python, there are also JavaScript and objc, and it is estimated that there will be little internal use, but there is no java. This is confusing. Why?
On stackoverflow, someone really asked this question: why no Google Java style guide?
Why not? Why not? How does Google choose Java as the development language in Android?
Someone answered very well: You have to ask Google.
There are also many meaningful answers:
1. Google's Java style is pretty much the same as the standard Java style.
Google's Java style is very similar to the java standard style (Sun's. So no, maybe, but Apple also has an objc Style Guide. Why does Google have an objc? Because Google is more pleasing to the eye to sun or apple is not pleasing to the eye? I don't know about this.
2. Joshua Bloch-valid tive Java 2nd edition is Googles Style Guide
Tive Java is Google's coding style guide... this is awesome. We will provide you with a pdf version of the first version. If you have money, please buy the second version of the genuine version.
There are also several Java-related coding styles that actually come from Google for reference:
The encoding style recommended by Google in Android development, because the webpage is on Google sites and is difficult to access due to the well-known reasons, I copied an Evernote version.
Code style document of GWT
The author of the original article retains the copyright reprinted. Please indicate the original author and give a link
Write by nine days Yan Ling (jtianling) -- blog.csdn.net/vagrxie