Love all, trust a few, do wrong to none.
Love all, trust a few, do wrong to none.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
SCJP 5, SCWCD 5
Prabhakar Reddy Bokka wrote:I do not see any great use of annotations in java, apart from they used for suppress warnings in jdk5 and above, and for showing deprecated methods.
We generally use these in EJB3, JPA, Hibernate, since these saves developers few lines of code, and we have predefined annotations available in the jar files.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
SCJP 5, SCWCD 5
Prabhakar Reddy Bokka wrote:I do not see any great use of annotations in java, apart from they used for suppress warnings in jdk5 and above, and for showing deprecated methods.
We generally use these in EJB3, JPA, Hibernate, since these saves developers few lines of code, and we have predefined annotations available in the jar files.
David Newton wrote:
Spring uses annotations, various frameworks use annotations, Lombok uses annotations, they're all over the place besides EJBs and JEE stuff. They are of tremendous value under some circumstances.
SCJP 5, SCWCD 5
Prabhakar Reddy Bokka wrote:I feel they all are using annotations at the cost of complexity to understanding.
Btw, could you please eloborate the uses??
David Newton wrote: . . . Gag annotations.
Love all, trust a few, do wrong to none.
Love all, trust a few, do wrong to none.
Consider Paul's rocket mass heater. |