TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Play Framework 2.0 Final released

206 pointsby cobrienabout 13 years ago

13 comments

latchabout 13 years ago
When I did a bit of Play 1.2 dev, I ran into two serious annoyances.<p>First, static actions make for untestable code. The only way to test this in 1.2 was to do full integration tests. You can't unit test controllers/actions, which to me is a horrible "opinion" to have. Looking at the docs, 2.0 [appears] to make an attempt via the callAction helper [1], but you still can't inject dependencies via a constructor and call instance methods. Static members in static languages make testing a real pain.<p>Second, JSON felt like a 2nd-class citizen. Dealing with JSON in either the request or the response felt barbaric. I don't see that they've improved things. Auto binding from a JSON request to an object should exist without having to write a bunch of custom JSON serializers...doubly so for outputting json.<p>[1] <a href="http://www.playframework.org/documentation/2.0/JavaFunctionalTest" rel="nofollow">http://www.playframework.org/documentation/2.0/JavaFunctiona...</a>
评论 #3698390 未加载
评论 #3698474 未加载
评论 #3698499 未加载
评论 #3698651 未加载
评论 #3698994 未加载
cmicaliabout 13 years ago
I am really excited about this but also a bit worried that Java will become a second class citizen for Play development.<p>The typesafe deal, use of SBT and other scala tools, and the overhead of maintaining docs and bindings for 2 languages all seems to point to an inevitable deprecation of Java at some point.<p>Hopefully not?
评论 #3699021 未加载
评论 #3700064 未加载
评论 #3699498 未加载
评论 #3698956 未加载
评论 #3698832 未加载
pvillegaabout 13 years ago
Sorry for being "rantish", but most of the "negative" comments I'm reading around here are from people who didn't spend a single second reading the manual.<p>Yes, I'm not partial, I'm invested on Play, but I am because it has a wonderful documentation that makes life really easy (that plus StackOverflow).<p>Most of the complains in here come from people with almost no experience in it. No, a small side project of 6 hours is not "experience". You just toyed around. You can't know about the real issues or benefits related to a framework.<p>Please, I know this is "the internet", but in a site like Hacker News, couldn't you try to talk only about things you know?
mrspeakerabout 13 years ago
It's also now part of the Typesafe stack - here's the release announcement from the typesafe blog: <a href="http://blog.typesafe.com/introducing-play-20" rel="nofollow">http://blog.typesafe.com/introducing-play-20</a>
评论 #3699049 未加载
ghusbandsabout 13 years ago
For anyone interested in its claim of being reactive, as I was, the Play framework does not appear to support reactive programming [1].<p>From their samples and documentation, it looks like an event-driven server without any reactive aspects. I'm fairly sure they're mistakenly calling typical event-driven programming "reactive". This is backed up by the statements of Typesafe's CEO on the subject in an interview [2].<p>[1] <a href="http://en.wikipedia.org/wiki/Reactive_programming" rel="nofollow">http://en.wikipedia.org/wiki/Reactive_programming</a> [2] <a href="http://www.infoq.com/news/2011/12/playframework-typesafestack" rel="nofollow">http://www.infoq.com/news/2011/12/playframework-typesafestac...</a>
评论 #3699062 未加载
yanabout 13 years ago
Can anyone talk about their experiences of using Play 2.0 and Lift, if they've used both?
评论 #3699329 未加载
lfischerabout 13 years ago
I find that testing has improved quite a bit since actions now return a Result object that you can inspect in your tests. It is true that you cannot inject a mock data repository, for example, but Controllers are meant to be simple HTTP response generators and you might want to make them call some domain object to perform anything complicated. You can then unit test you domain object to your heart’s content.
grenabout 13 years ago
give Play 2.0 a try guys, it's a fresh new framework, more robust than ever, and with awesome concept for handling Input/Output.
评论 #3698939 未加载
opensasabout 13 years ago
and a shiny new play framework site <a href="http://www.playframework.org/" rel="nofollow">http://www.playframework.org/</a>
sebcremeabout 13 years ago
and fucking crazy big doc <a href="https://github.com/playframework/Play20/wiki" rel="nofollow">https://github.com/playframework/Play20/wiki</a>
wiradikusumaabout 13 years ago
personal wish: this, with CRUD scaffolding and GAE support, will make Play my dream framework.<p>edit: this news announcement from Typesafe explains a bit more about Play 2.0: <a href="http://blog.typesafe.com/introducing-play-20" rel="nofollow">http://blog.typesafe.com/introducing-play-20</a>
kanwisherabout 13 years ago
Their beta was incredibly buggy, riddled with compilation performance performance, slow load times, was really not a fun experience. I've heard they finally got development load times in check. I hope they get their deployment process a bit better then creating a zip file and having to run nohup on their start script.
评论 #3699532 未加载
lhnnabout 13 years ago
Off topic a bit, but it's a good place to complain:<p>Typesafe,<p>Please don't be a tool. Take your "whitepapers" out from behind an email registration page.