Whooo, Javadoc
Monday, May 11th, 2009 12:19 pmThe one thing I love about JavaDoc is that it starts with two stars. Makes it look special (and, in Eclipse, blue).
The things I don't like about JavaDoc are too many to count! But the list includes annotations! Why are you letting comments define behavior? That's just freaky.
On the flip side, documentation is a good warm up to the day, so!
The things I don't like about JavaDoc are too many to count! But the list includes annotations! Why are you letting comments define behavior? That's just freaky.
On the flip side, documentation is a good warm up to the day, so!
Annotations
Date: 2009-05-11 09:09 pm (UTC)I really disliked annotations until I started using them with the new Java Persistence API (and Stripes). Now I love them. It's really nice to write
@Entity @Table(name="organization") public class Organization extends NamedBean { @Id @GeneratedValue @Column(name="organization_id") private long organizationId; ...and have all of the DB mapping code just handled there, rather than having to write separate Hibernate XML files.
Now if only there were a standard way to autogenerate accessor methods...
no subject
Date: 2009-05-11 11:18 pm (UTC)Re: Annotations
Date: 2009-05-13 04:42 pm (UTC)(I was only editing a comment, so I didn't think to rebuild/retest the project before committing a patch. Turns out I'd deleted one line in the comment which actually had an effect on the code.
ARGH)
And +1 to autogenerate accessor methods. Objective-C and Ruby have spoiled me in that regard.
no subject
Date: 2009-05-13 04:44 pm (UTC)I do kinda see the point, though. Once processed, the JavaDocs are visible to even non-coder folks. Normal comments aren't visible in the same way.
no subject
Date: 2009-05-14 08:26 am (UTC)no subject
Date: 2009-05-14 08:40 am (UTC)