2 ms·
While it may use "magic" under the hood, I think the important thing is that the magical results are predictable. Annotations have their own usage-contracts, an
by Terr_ 13y ago
While it may use "magic" under the hood, I think the important thing is that the magical results are predictable. Annotations have their own usage-contracts, and have a certain degree of self-documenting code to tie everything together.
...So any sufficiently advanced magic is indistinguishable from science :)
- timclark 13y agoJAX-RS annotations aren't really composable - functions usually are, although I haven't looked at the Spark implementation to find out. With plain functions if I need to wrap requests or responses I just wrap the functions. With JAX-RS I need to find or write an appropriate annotation or start adding filters. With plain functions I can share behaviour between resources by sharing functions.