Philosophical Question:
An issue that occurred to me is that especially when using frameworks like Spring
or Hibernate
( which are everywhere in industry), we have annotate everything.
This is better obviously then the declarative XML statements... but it also means that we are engaging in declarative programming since the engine (framework) is taking care of doing something for us. The engine itself may be written in Java (OOP), but we are essentially programming using declarations.
E.g. @Autowire
- Inject my Component here, I don't care how you do it or what goes on in the background.
So is this development through annotations herecy? Or is it just the same thing as using configuration files (XML and properties).
Background Information:
"Declarative Programming in Java" - http://www.onjava.com/pub/a/onjava/2004/04/21/declarative.html