RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Play! Framework....Rails for Java is finally a reality

Thought I’d share my thoughts on play! with you. I have around 10 years exp with Java, and around 4 with Ruby/Rails. I love Rails, but it does cause heartburn at times. The inability to easily track behavior definition, especially when plugins and Rails itself monkeypatches things, can make life difficult.

Comments

And no, I’m not associated with the project, just an excited newbie user. Keep an open mind and take a look.

Mix it in with Duby and you could have something approaching a fast RoR :)

Had a look at the file used for generating a new app. Struck me as weird that a Java framework uses Python to do that. Can’t it be done in Java? Guess Java is too much bother!!

Eli, from the FAQ:

We need a lot of scripts to manage Play applications, like creating a new application, running it, launch a browser, etc… Of course we could write these in Java directly. But running a Java VM for simple tasks like project creation is very slow. And Java itself is very limited when it comes to OS interaction.

Python allowed us to write these scripts in a completely portable way. It’s fast to run, easy to write and available out of the box on most systems. It’s not on Windows, that’s why we bundle a Windows Python binary with the framework.</i>

Plus, Eli, that’s a very mature, open-minded attitude.

Way too long on the FP. Here are the paras I’ve snipped:

That's why I'm extremely excited by play. It offers simply all of the features (that's right...I haven't found one missing [yet]) that Rails does, but in Java. This means the speed is wonderful, the code navigation is perfect, and the code clarity is high. Yes, sometimes java and clarity don't go hand in hand, but play goes to great lengths to prevent this (generating getters/setters, etc). If you came to ruby from java for Rails, or if you simply like new technologies, give Play a look. It mirrors Rails very closely. If Java isn't your thing, it supports Scala too.

Peter, then why not set your 1000 char limit lower? :-)

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in