The Artima Developer Community
Sponsored Link

Java Buzz Forum
Google's Java coding standards

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
News Manager

Posts: 47623
Nickname: newsman
Registered: Apr, 2003

News Manager is the force behind the news at Artima.com.
Google's Java coding standards Posted: Feb 27, 2014 5:23 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by News Manager.
Original Post: Google's Java coding standards
Feed Title: JavaWorld
Feed URL: http://www.javaworld.com/index.rss
Feed Description: JavaWorld.com: Fueling Innovation
Latest Java Buzz Posts
Latest Java Buzz Posts by News Manager
Latest Posts From JavaWorld

Advertisement

Yep, Google's got standards when it comes to Java coding, and they've been carefully documented for your enlightenment. While these enforceable coding conventions are clearly most relevant to Java developers interested in joining the Googleplex, they're also a good indicator of what you might expect to see in other shops. InfoQ's Bienvenido David lists some of the rules gleaned from the Google Java Style guide:

  • No wildcard imports.
  • Overloads appear sequentially.
  • Braces are used even when the body is empty or contains a single statement.
  • Two space indentation.
  • Column limit can be 80 or 100 characters.
  • No C-style array declarations.
  • Default statements required in switch statements.
  • Modifiers appear in the order recommended by the Java Language Specification.
  • Constants use CONSTANT_CASE. Note that every constant is a static final field, but not all static final fields are constants.

Read more on InfoQ and check out the Google Java Style guide ...

To read this article in full or to leave a comment, please click here

Read: Google's Java coding standards

Topic: Not Seeing the Forest for the Gotos Previous Topic   Next Topic Topic: Splunk feels the heat from stronger, cheaper open source rivals

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use