aspose file tools*
The moose likes Agile and Other Processes and the fly likes Implementation Patterns - using annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Agile and Other Processes
Bookmark "Implementation Patterns - using annotations" Watch "Implementation Patterns - using annotations" New topic
Author

Implementation Patterns - using annotations

Sergey Petunin
Ranch Hand

Joined: Dec 16, 2007
Posts: 44
Hello Kent,

My question is, does your book introduce any patterns for usage of metadata (annotations)? As I can tell, this feature, implemented in many modern languages, is definitely useful for explaining your intentions not only to the compiler or to some high-level framework, but to other programmers also. What do you think?

Thanks,

Serge
Kent Beck
author
Ranch Hand

Joined: Nov 07, 2003
Posts: 45
Dear Serge,

I agree that annotations can be an excellent way of communicating intent, especially as the fashion moves from object-oriented frameworks to domain specific languages (e.g. JUnit 3.8 vs. JUnit 4). However, I wasn't confident that I had enough experience with annotations to explain them well, so I left them out of this book. If I did a second edition I would definitely include them.

Regards,

Kent Beck
Three Rivers Institute


Author of <a href="http://www.amazon.com/exec/obidos/ASIN/0596007434/ref=jranch-20" target="_blank" rel="nofollow">JUnit Pocket Guide</a>
 
 
subject: Implementation Patterns - using annotations