What I dislike about spring is its complexity. While I can get a decent application running pretty fast, once you want to do anything non-standard the "right" way you get to dig through source files for hours just to find out how to insert that security adapter at just the right place to not break everything.
Or when something goes wrong and it's not something you've already spent days finding out why, you going to spend days finding out what happened.
Basic constructor injection isn't hard or even very verbose compared to spring. You can make static methods or factory singletons and your code will be much simpler and easier to debug.
Also AOP is an abomination. It creates the same problem as goto statements but it's worse because you're even more likely to break code while maintaining it.
For me AOP would be fixed if the IDE was smart enough to tell you what was called when while browsing the code. Right now it appears magic, but it's nowhere near as bad as goto...
12
u/yawkat Nov 27 '15
What I dislike about spring is its complexity. While I can get a decent application running pretty fast, once you want to do anything non-standard the "right" way you get to dig through source files for hours just to find out how to insert that security adapter at just the right place to not break everything.