问题
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?
回答1:
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.
回答2:
Many of the methodology used in Rails has been translated into Django. Have you tried it?
http://www.djangoproject.com/
回答3:
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.
回答4:
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: What's 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.
来源:https://stackoverflow.com/questions/1794179/python-on-rails