3 ms·
How is Rails compared to Django?
by bureaucrat 7y ago
How is Rails compared to Django?
- creyes 7y agoDifferent philosophies. I think the biggest difference is that Rails has a much bigger ecosystem and more developers than Django does. There are gem's out there that support almost everything you want to do and if there's not there are resources from people who have had to solve similar problems.
- hnarayanan 7y agoAnd by the same token, outside the context of "web stuff," Python generally has wider set of domain-specific packages (e.g. ML) you can easily incorporate into your web app.
- staz 7y ago> Rails has a much bigger ecosystem and more developers than Django does. [citation needed]
- qudat 7y ago> I think the biggest difference is that Rails has a much bigger ecosystem and more developers than Django does. Going to have to disagree with you there.
- chipotle_coyote 7y agoMore similar than different in a lot of ways, but I suspect the differences come out of their background. Rails was originally developed by a consulting company for both client work and their own apps, so it really emphasizes rapid development -- it pushes convention over configuration very hard, had database migrations from its first version (Django didn't get those for years, etc.). Django came out of a newspaper (the Lawrence-World Journal), and seems really optimized for building custom CMSes -- there's nothing I've found in any other system that's truly like Django's admin console, for instance. (Another sign of its newspaper heritage: it's the only template language I've ever seen whose date filter has extensions to match Associated Press style!)
- t0mbstone 7y agoActiveAdmin is just as good as Django's built-in admin system, if not better (in my humble opinion)
- t0mbstone 7y agoI used Rails for 4 years, then Django for 2 years, then back to Rails (now for another year). Programming with Ruby and Rails is like a breath of fresh air compared to Django. Working with Django was just so painful and awkward (especially if you are trying to write tests for things). I used to have a laundry list of a couple of pages worth of things that I hated about Python and Django when compared to Ruby and Rails, but I can't seem to find it right now.
- bureaucrat 7y agoCan you elaborate on that? These Ruby praises makes me want to know more as I know only Django.
- airstrike 7y agoAvailability bias. The Django praises are all in the Django threads. This is a Ruby thread after all ;-)
- cutler 7y agoRuby has unconstrained lambdas for a start and a much more composable, expressive syntax facilitating the creation of elegant DSLs. Rails, Chef and other Ruby projects lean on this feature. The goals of Ruby's creator, Matz, were more idealistic and artistic than those of Python's creator, Guido, whose values are more pragmatic and math-focused. Matz took inspiration from Perl, Smalltalk and Lisp whereas Guido set out to solve a much more local, project-based problem when he created Python.