Annotations are a great way to get rid of boilerplate and noisy code.
For instance, I find Spring @Transactional a much more effective, less bug prone and productive way of dealing with db tx vs having to manual code and handle exceptions, rollback, connections etc ..
Same goes with JAX-RS.I would choose annotations over having to code all that manually any day.
You can easily test and debug. Yes, it will cost some time to understand how aspects work and how it is all wired up, but it is worth learning.
peanball|2 years ago
robert_dipaolo|2 years ago
hardware2win|2 years ago
All that magic causes weekly questions from people about how does this work or about debugging it
>You can easily test and debug.
As easy as putting breakpoint in actual code?
Patrol8394|2 years ago
reading the spring documentation usually help :)