views:

586

answers:

5

Would it be possible to translate the Ruby on Rails code base to Python?

I think many people like Python more than Ruby, but find Ruby on Rails features better (as a whole) than the ones in Python web frameworks.

So that, would it be possible? Or does Ruby on Rails utilize language-specific features that would be difficult to translate to Python?

Thanks,

+3  A: 

I think one of the things that people like about RoR is the domain-specific language (DSL) style of programming. This is something that Ruby is much better at than Python.

Ned Batchelder
Careful not to start a flamewar
Kugel
+3  A: 

This previously asked question may add some insight: Why is ruby more suitable for rails than python?

ghoppe
+11  A: 

Many of the methodology used in Rails has been translated into Django. Have you tried it?

http://www.djangoproject.com/

Josh
Yes, thanks you.
Juanjo Conti
@Juanjo: Then you'd know it answers your question entirely, since it's practically a Python Rails in most regards -- right?
Jed Smith
+2  A: 

I know that Rails does not necessarily = MVC per se, but I think a lot of what makes Rails productive is that it enforces (well, strongly encourages) MVC development, so you might find something similar if you look for Python MVC, such as this previous post here on Stack: http://stackoverflow.com/questions/68986/whats-a-good-lightweight-python-mvc-framework

There are lots of Python MVC frameworks out there, but I keep hearing a lot about Django (http://www.djangoproject.com/) so that should definitely be on your list of things to check out IMO.

Chirael
Two other frameworks worth mentioning are Pylons (http://pylonshq.com/) and TurboGears (http://www.turbogears.org/)
Chirael
A: 

This is a great blog post. Rails developers chose a framework, and coding in Ruby is the afterthought.

Python developers chose the language for the language, not the framework. On the other hand, that made a lot lower bar to entry for frameworks.

Dean J