r/java • • Nov 27 '15

Why I hate Spring

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

76 comments sorted by

View all comments

Show parent comments

1

u/superPwnzorMegaMan Nov 27 '15

Scala has compile time checks for dependency injection. This article describes three methods without using a library.

5

u/Scaryclouds Nov 27 '15

That's an issue with Java and its tooling, not with Sprig though. It's not as though you could hope to switch between languages over such an issue either (unless you work for a start up).

-2

u/superPwnzorMegaMan Nov 28 '15

Oh but you definitively can, since you can just use your Java code (classes libraries etc) in Scala. seamless integration. You just have to decide to stop writing Java and start writing Scala.

1

u/Scaryclouds Nov 28 '15

I realize Scala can be run on the JVM. Just that getting such a change approved in most larger organizations is difficult.