Java 编码标准
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5278340/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Java Coding standards
提问by Mouna Cheikhna
What coding standards in java should a programmer definitely follow for a more readable code?
为了获得更具可读性的代码,程序员绝对应该遵循 Java 中的哪些编码标准?
回答by RoflcoptrException
Read the Code Conventions for the Java programming languageby Oracle
阅读Oracle的 Java 编程语言的代码约定
回答by Andreas Dolk
回答by yegor256
Start with Checkstyleand PMD.
从Checkstyle和PMD开始。
回答by Sanjay T. Sharma
There are a lot of factors which go into defining the term "a good coding standard" but the official documentshould offer you some insight.
定义术语“良好的编码标准”有很多因素,但官方文档应该为您提供一些见解。