Annotation-abuse coming soon
Thursday, March 15th, 2007Just a thought here. Who’s willing to bet that we’ll soon see overuse and reliance on annotations? Don’t get me wrong; I think they are great to a certain extent. However, you now have several frameworks (most recently released Google Guice) that proclaim loudly annotations are the best thing ever that could happen for Java. The scary part is that I expect the number of existing and future frameworks to follow this paradigm shift as we are witnessing for better or for worse. My problem is now seeing too many annotations in my source. Recently, Seam introduced another annotation called @AutoCreate used simply as a marker for a component to be created automatically. I was shaking head. Ugh. I mean they could easily just extend the @Name annotation (I honestly think they should rename that to something more meaningful), and added the auto-creation attribute there instead of creating a whole new annotation thereby inevitably inviting users to ask what does that annotation do. Whatever. Someone should write a book on annotation-driven development (ADD) because it looks like it’ll be impossible to get things done one day without it. Funny I can already see it. We’ll be back to the discussion of wanting something simpler. When will this ever end?