Hacker News new | ask | show | jobs
by aivosha 3801 days ago
Funny you should mention Django, because its the magic framework in python land that does all those things you label Rails doing and it does it way way worse than Rails.
3 comments

That might plausibly have been true in the past, at least if you hadn't heard of Zope/Plone, but Django has been moving away from that for close to a decade:

https://www.djangoproject.com/weblog/2006/may/01/magicremova...

By now, it's hard to tell what you had in mind – something like contrib.admin or the global settings file?

Care to develop what he labeled and how Django is making does it worse than Rails? I have a hard time to see it knowing both Frameworks.
The only real magic left in Django is the metaclasses that ORM models use to turn class based fields into instance level descriptors.

  class Model(models.Model):  
      field = models.SomeField()  
rather than..

  class Model(models.Model):  
      def __init__(self, *args, **kwargs):  
          field = models.SomeField()  
          super(*args, **kwargs)  
Django is most certainly the framework that bundles a whole lot of choices together (similar to Rails), but the magic it performs on behalf of the user is extremely minimal.