Tuesday, August 13, 2019

Java Code Convention or Style Guide

Almost all organizations either adopt the coding style from someone else or develop their own one. Newly recruited employees as well as interns may be expected to following the existing code convention or style guide of the company. If you are starting your own company, you may wish to adopt or develop your own one based on one of the available ones. Some examples are:


Java Code Convention / Style Guide

Oracle/Sun
1999:
https://www.oracle.com/technetwork/java/codeconvtoc-136057.html

1997:
https://www.oracle.com/technetwork/java/codeconventions-150003.pdf


OpenJDK:
http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html


Google:
https://google.github.io/styleguide/javaguide.html


Android:
https://source.android.com/setup/contribute/code-style


Facebook:
https://github.com/facebook/jcommon/wiki/Coding-Standards


Twitter:
https://github.com/twitter/commons/blob/master/src/java/com/twitter/common/styleguide.md


Mozilla:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Java_practices


Spring Framework:
https://github.com/spring-projects/spring-framework/wiki/Code-Style



CMU SEI:
https://wiki.sei.cmu.edu/confluence/display/java/Java+Coding+Guidelines
https://wiki.sei.cmu.edu/confluence/display/java



See also:
Python Style Guide or Code Convention

No comments: