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.



Comments
htowninsomniac replied ago:
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.
Dave Newton replied ago:
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).
Voters For This Link (25)
Voters Against This Link (0)