Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring alternative for Scala or Spring?

I recently moved from Java world to to Scala and migrating/rebuilding many of our projects to Scala. I wanted to know is there any framework similar to Spring available for Scala(spring-security, spring-mvc, spring-data, dependency injection etc). Or Still Spring is the better option so that I should stop looking for alternatives?

like image 888
Ashok Krishnamoorthy Avatar asked Aug 20 '16 07:08

Ashok Krishnamoorthy


1 Answers

No!

Now personally I am of the view that this a testament to Scala and a huge negative against Java. That massive frameworks are built to overcome fundamental flaws in the language to substitute for features that should be part of the core language or at least the core platform.

That's my opinion and you can take or reject it as you see fit, but what is certainly true is that Scala is much less framework orientated. The Scala way is most certainly to favour libraries over frame works. We see this with the new Akka-Http module: one of their primary goals is to get out of the way so to speak and let you structure your code as you want, rather than forcing you to structure your code and your project according to the dictates of the framework.Because Scala is powerful and feature-full it allows greater dependency injection just using the language. The power of Scala is its strength, but also a weakness. Because its is so much easier to "roll your own", that has allowed Scala to get with out providing libraries / frameworks for quite fundamental programming tasks, notably the lack of a proper io library, although hopefully this is finally going to be rectified.

like image 186
Rich Oliver Avatar answered Oct 31 '22 00:10

Rich Oliver