07.01.2013 Views

David Defour - Université de Perpignan

David Defour - Université de Perpignan

David Defour - Université de Perpignan

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Use JavaDoc<br />

• Use JavaDoc from the beginning<br />

–Don’t wait until the co<strong>de</strong> is finished. Short comments are fine,<br />

but use some. Explain purpose and non-obvious behavior.<br />

Don’t explain standard Java constructs.<br />

• Document every class<br />

/** Represents a collection of Blahs. Used to … **/<br />

public class Foo { … }<br />

• Document anything public<br />

–Methods<br />

–Constructors<br />

–Instance variables (but very rare to have public ones)<br />

• Review Oracle JavaDoc gui<strong>de</strong>lines<br />

• http://www.oracle.com/technetwork/java/javase/documentation/in<strong>de</strong>x-137868.html<br />

323<br />

jeudi 26 janvier 12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!