Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anyone transition from ASP.NET(MVC) to Play Framework

Been a long time user of the Microsoft stack and looking at other frameworks to learn and maybe transition to. I ran across the Play Framework recently and started working through some of the demos and really like it. Anyone from a .NET background transition to Play and if so what has been your experience so far?

like image 962
Todd Avatar asked Jul 12 '11 18:07

Todd


People also ask

Is ASP.NET MVC outdated?

ASP.NET MVC is no longer in active development.

Which framework is best for ASP.NET MVC?

If you are an expert at ASP.NET MVC, you need not to spend time on some other complex frameworks but ASP.NET WEBAPI is the best one for you. It works on the same lines as MVC – though it doesn't have System.

Which is better ASP.NET or ASP.NET MVC?

ASP.NET uses a more mature code-base and has a larger web control toolbox. It's more sensible to use ASP.NET if you are already relying on 3rd party UI controls. The main advantage of using MVC is its separation of concerns.


1 Answers

Ive mostly written projects using ASP.NET MVC/C#/SQL server but choose to experiment with Play/Java/Postgres in a recent project.

On the whole Im quite productive with Play, specific things I like include:

  • The way in which views are compiled which greatly helps spot typos
  • The futures and promise framework
  • Very easy to package and deploy, i.e. play stage
  • Ability to write and include plugins in just a few lines of code
  • The fact that caching is built in

Potential disadvantages

  • Can take a while to compile which can be annoying during development/testing
  • Documentation is not always as detailed or extensive compared with ASP.NET MVC
  • Availability of code samples
  • The fact that the http context is lost during async events (i think it has since been fixed in play 2.1)
  • I find the membership provider and config of role permissions in the web.config file easier to work with compared with the Play Secured class (then you dont need to specifically annotate each controller/method)
  • No LINQ within Java (Not a fault of Play itself) but if you use scala then you can use lamda expressions
  • -
like image 113
Philip Worrall Avatar answered Oct 12 '22 03:10

Philip Worrall