HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 126519 thumbnail
User 209464 avatar

By willcode4beer
via willcode4beer.com
Published: Oct 17 2008 / 10:10

A discussion and collection of ideas regarding annotations and where they should or should not be used. Annotations are a very powerful tool. Used well, life will improve, used poorly, the suffering will be immense.
  • 25
  • 0
  • 3071
  • 1

Comments

Add your comment
User 272422 avatar

htowninsomniac replied ago:

1 votes Vote down Vote up Reply

I think this article is a good start, but it could be improved. You don't elaborate why you have classified the different uses you mention as "good" or "bad". For example, it is not immediately apparent to me why using annotations for database configuration is bad. Is it because the information is constant and therefore hard-coded?
I would welcome a longer version of this article very much.

User 306525 avatar

Dave Newton replied ago:

1 votes Vote down Vote up Reply

Probably the same reason as the EJB3: it puts a lot of info into the class (and he also mentions a pathological example of putting the username/password in an annotation).

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.