Why does Google not have a Java Style Guide (coding style guide)

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.