30 points · by javinpaul · 14y ago · 33 comments
It shouldn't, if the artifacts are in your company repo. (You have a company repo, right?)
My final note was "You don't need this crap".
Oracle didn't take over Sun in 2009; the takeover started when Java EE started taking hold. It's given the cool little language Java a bad rap and I'm glad to see some efforts to bring Java back to its roots as a lightweight and easy language in the Web development sphere.
Go for for EE web profile, which the lean version for pure web stuff.
All you really need is JPA, some ejbs and a front end(mvc framework or something) and that's it. Add in jax-rs, add some annotions to your ejb and you will have a rest api for you application for free basically.
EJB, however, manages to be even a bigger crime-in-progress than JPA. Which is a feat. Making immutable bean classes, and then providing a pleasing API for using them, is an exercise in futility. (And this may sound dogmatic, but I don't really care: immutable-by-default is the only acceptable practice. Embracing EJBs means you probably don't care about that, and that I want nothing to do with your code.)
People take the immutable route, then some other guy tells you your being silly. Trust me I've been programming long enough.
Besides you don't need Mutability for ejb. The majority of ejbs are just used to access the db.
Why do we need another Java framework?
People like to hate on DHH and rails, but remember the "make a blog in 15 minutes" video. That's a compelling story for a web developer. Compare that to this.
http://jodd.org/doc/jerry/index.html
Interesting use of $ as a method name in Java as well.
(Although to be fair, it is pretty and neat.)
Jodd looks like a very 'old-school' Java framework. This is not a compliment--it looks like a few tools that sit on top of Servlets, and that's just terrible. Wire-up appears to be XML (bad developer, no cookie) and it just doesn't look better than any other Servlet-based library. (Personally, I am convinced that there are no good Servlet-based libraries, and this doesn't help change that.)
The various libraries they keep touting on their various pages are a little scary. I'm pretty well-versed in the Java ecosystem, but I don't know what "Petite", their dependency injection library, is. I know what Guice is, and I know what Spring (barf) is, but this thing is new, and by default shifty and untrustworthy.
"Props" - looks terrible compared to HOCON; gross syntax, no importing, etc.
Their database library touts itself as "better than JDBC", but looks almost identical and makes that little voice inside whisper, "it's a trick - get an axe."
I'm not trying to harsh on them, because they clearly spent a lot of time on this framework, but this is enterprisey as hell.
-Play 2 is uncomfortable and vaguely user-hostile if you want to use Java. More than most Java apps, that is. It's fairly obvious that the Play team considers Scala to be The Way To Do It, so you'd better be on-board or you're probably going to hate using it. (I'm OK with Scala, though as I've said before I find it troublesome[1]. I hear eventually Kotlin is supposed to be supported though.)
-Play is all SBT. You may find that you love SBT, in which case this won't be a problem for you, but it has been a while since a build tool made me yearn for the days of ye olde makefile. There's a lot of "magic" involved and there's little coherent documentation for either SBT or Play's use of it.
-Play's DEV mode pins a core on my laptop and turns it into a campfire on my lap. A ticket asking what's up with this has gone unanswered.
-Play 2 is designed for single projects and trying to build sane multi-project systems (like, a frontend app, a common code library, and a backend app) can be an exercise in frustration. This has gotten less bad over time, but it's still not great. I literally don't remember the last time I wrote a web app that wasn't at least three separate pieces, so for me this is very nearly a game-breaker.
-The developers are apparently pretty insular. It seems like they are more than happy to have you fix their bugs, but adding features that you need--not so much. Sample size of one, so apply all necessary caveats, but I've found that offers of help and requests for guidance for making what you want to do fit into their plans for Play seem to get ignored[2]. I want to help make it better, so let's talk and see how to do that, yeah? (Lack of good communication isn't just a Play thing, but seems common throughout the Typesafe stack of libraries.)
-The community isn't really a community at all. If you look at their Google Group, it's mostly the same five questions over and over again and nobody seems to really stick around. I look at something like Rails--which I can't stand working with, but they have the "active, good community" part absolutely nailed--and you see a lot of newbie questions, but you also see a lot more people sticking to the community and, IMO, that bodes a lot better for the platform.
.
Honestly, Play isn't that bad, if your needs line up closely to the Play developers'. Mine don't, so for me it's a very frustrating experience. If you're just rapidly iterating on something small I have to think it'd be great - hot reloading works great (although compiling templates seems like it'd turn off designers) and I would believe that, once over the initial hurdles, you can probably Get Stuff Done very effectively. But every time I work in Play I start getting a little bit crabby and want to go write a better web framework (with blackjack! and hookers! in fact, forget the blackjack!) but I know I don't really have the time to do it justice. As such, my projects mostly end up being a set of libraries bolted together on top of Jetty (a handler, a regex dispatcher, etc.). Maybe at some point I'll codify them into an actual for-realsies "library". It'd be a good reason to learn how to do Java class reloading...
[1] - http://news.ycombinator.com/item?id=4051556
[2] - https://play.lighthouseapp.com/projects/82401/tickets/502-mo...
Take a look at the Play framework page. Starts with an elevator pitch and as you work your way down the page, you get more more details (without going into a lot of detail), enough to get a nice overview.
There's a time and place for heavy css/js effects, but I'm thinking this is not one of them.