Red Hat Web Application Framework 6.1 Manuale Utente

Pagina di 230
188
Appendix C. Java Standards
5. Acronyms, such as JDBC or URL, should always be capitalized when used. For instance, write
JDBCLoader
instead of
JdbcLoader
. This makes it clear that the letters are part of an acronym
and is easier to read because it matches how it is referred to in English prose. Abbreviations that
are not acronyms should have their first letter capitalized, with the exception of ID.
6. When debugging, avoid using
System.out.println
or
System.err.println
. Instead, use
Log4j as described in Section 7.5 Using logging for debugging.
C.2. Java Coding Standards — References and Related Reading
Ambler,
S.W.
(1999)
Writing
Robust
Java
Code
http://www.ambysoft.com/javaCodingStandards.html.
Davis,
M.
(2000)
Incremental
Development
with
Ant
and
JUnit
http://www-4.ibm.com/software/developer/library/j-ant/index.html.
Hunt,
A.
&
Thomas,
D.
(1999)
The
Pragmatic
Programmer
http://www.pragmaticprogrammer.com/ppbook/index.shtml.
Sun
(1999)
Code
Conventions
for
the
Java™
Programming
Language
http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html.
JUnit Home Page — http://www.junit.org/
Ant home page — http://jakarta.apache.org/ant/.