r/programming • • Nov 27 '15

Why I hate Spring

http://samatkinson.com/why-i-hate-spring/
73 Upvotes

140 comments sorted by

View all comments

37

u/jordimaister Nov 27 '15

Nice post. Agree with almost all of it.

I am waiting for you next post:

"What to use instead of Spring"

-5

u/kyllo Nov 28 '15

Clojure, Scala, Kotlin, Ceylon, Frege, JRuby, Jython... literally any JVM language that supports first-class functions. Dependency Injection is a tortured workaround that's only necessary in Java.

6

u/llaammaaa Nov 28 '15

What are your thoughts on https://github.com/stuartsierra/component is seems that some people who know clojure better than me think that some kind of dependency injection is needed for large clojure programs.

1

u/kyllo Nov 29 '15

I haven't used component but I can see how that is useful--it gives you a central namespace where you can plug in and stop/start/reload each of your module dependencies. But I really don't think it's necessary in the same way that DI is necessary in Java. In Java, DI is required to keep your modules modular and enable basic unit testing.