3 ms·
(Opinion warning, as in "this works for me", not an absolute truth) I like Rails better because: * I like Ruby more than Python (no "self" in methods, Ruby's
by clyfe 16y ago
(Opinion warning, as in "this works for me", not an absolute truth)
I like Rails better because:
* I like Ruby more than Python (no "self" in methods, Ruby's list.map(func) vs Python's map(list, func), usable as a template language (ERB), open classes -> easy hacking)
* Rails `Books#has_one :publisher` vs Django `models.ForeignKey(Publisher)`
* Rails migrations + db reflection vs Django attr declarations `models.CharField(max_length=300)` (Yes I know about south, you still declare the attrs tough)
* Rails has Bundler http://gembundler.com/ http://gembundler.com/ , dunno about Py ...
* Django router http://docs.djangoproject.com/en/1.2/topics/http/urls/ http://docs.djangoproject.com/en/1.2/topics/http/urls/ vs Rails router http://guides.rubyonrails.org/routing.html http://guides.rubyonrails.org/routing.html (ie. declarative regexps vs executable well tought semantics)
* rails erb (haml etc) views vs django's-template-language because python can't do templates because of the indenting
* the list goes on but I'm bored
Ruby is beter at web stuff than Python.
Python has more science stuff (NumPy etc).
So I vote Ruby on Rails