Write JavaDoc in an Instant (Part 1) – Templates for Methods

Write JavaDoc Example

We all love good and commented codes, but most of us either don’t know how to write a good comment for our codes, or just plain lazy to write one.

In Java, JavaDoc is pretty much the industry standard when it comes to auto-generated code tool. And as a strong believer of good software development practice, I always put comments on my code.

To save time, I created this template for methods so I can always refresh myself about how to write a good JavaDoc for my code. These codes are taken from the Java SDK source codes, so talk about how the creator of the Java write their comments (no one can be more expert than them I suppose). Continue reading “Write JavaDoc in an Instant (Part 1) – Templates for Methods”