Re:Running GitHub on Rails 6.0
by bureaucrat on Monday September 09, 2019 @02:56PM
(#20921129)
How is Rails compared to Django?
[ Parent
| on HN ]
Re:Running GitHub on Rails 6.0
by chipotle_coyote on Monday September 09, 2019 @03:14PM
(#20921308)
More 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!)
ActiveAdmin is just as good as Django's built-in admin system, if not better (in my humble opinion)
I 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.
Re:Running GitHub on Rails 6.0
by bureaucrat on Monday September 09, 2019 @07:05PM
(#20923476)
Can you elaborate on that? These Ruby praises makes me want to know more as I know only Django.
Ruby 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.
Availability bias. The Django praises are all in the Django threads. This is a Ruby thread after all ;-)
Different 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.
Re:Running GitHub on Rails 6.0
by hnarayanan on Monday September 09, 2019 @03:15PM
(#20921318)
And 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.
> 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.