News for hackers. Stuff that matters.
Re:Spring vs. Java EE by gbersac on Sunday April 09, 2017 @04:24PM (#14074183)
Same here, Scala rocks ! Too bad play 2 is now using guice and promots runtime dependency injection like in Java world. Compile dependency injection is much better, I fear they'll try to mimick spring more and more in order to attract java crowds.
Re:Spring vs. Java EE by wsargent on Monday April 10, 2017 @02:39PM (#14081314)
Hi, I'm on the Play team. We've got a number of projects showing compile time injection:

Java compile time DI:

https://github.com/playframework/play-java-compile-di-exampl...

Java compile time DI using Dagger 2:

https://github.com/playframework/play-java-dagger2-example

Scala compile time DI:

https://github.com/playframework/play-scala-compile-di-examp...

Scala compile time DI with Macwire:

https://github.com/playframework/play-scala-macwire-di-examp...

Thanks!

Re:Spring vs. Java EE by raphaelj on Sunday April 09, 2017 @04:34PM (#14074236)
I got the same feeling here. Implicits in Scala can act as statically checked dependency injection, I don't know why they are going for this runtime dependant injection instead.
Re:Spring vs. Java EE by merb on Sunday April 09, 2017 @06:49PM (#14074749)
Play supports static DI aka cake pattern or macwire aswell.
Re:Spring vs. Java EE by edem on Sunday April 09, 2017 @04:29PM (#14074214)
Until you start working with Clojure or even Kotlin. Then Scala feels like a baroque behemoth.