Found these coding guidelines for C#, HTML, Javascript, Java, HTML,
PL/SQL, T-SQL, VB and VBScript.
Well written and free to download.
www.demachina.com/products/swat
Oh, I've only just looked at the Java section. The string concatenation
section is a real laugh, showing that the author really doesn't know
Java particularly well. While it's a good idea to use a StringBuffer
when concatenating strings in a loop (or with other temporary copies),
the code example given is just a less readable version of the code
which the compiler would have generated for
return "The value of "+name+" is "+val;
(In fact, with Java 1.5, the latter would be *faster*, as it will
automatically use StringBuilder rather than StringBuffer.)
Specifying that reflection just shouldn't be used is foolish - there
are lots of places where it makes perfect sense to use it. It shouldn't
be *overused*, but that's a different matter.
Suggesting the direct use of Log4j but talking about this being
reviewed in the long term is foolish when the Commons Logging project
allows you to use common logging code which will then use whatever
logging implementation you want underneath. Saying that debug logging
isn't very granular suggests a lack of understanding of Log4j - you can
very easily turn debug logging on just for one class, assuming you
choose your logging categories appropriately. (Calling Logger.getLogger
with the *name* of the class rather than the class itself is also
somewhat odd.)