News for hackers. Stuff that matters.
Re:The best Web Framework - what makes Lift different by bad_user on Friday January 21, 2011 @10:40AM (#2127631)
I've been using Django for a lot of projects, but have recently converted to Rails 3 for a personal project.

What I like about Rails is that plugins are mostly pieces of infrastructure, not ready-to-use mini-applications that are hard to customize. And Rack plugins (pieces of middleware, done in a standard/reusable way, contrary to Django's middleware) are just awesome.

I also like about Rails that authentication and admin are not built-in. Lots of plugins available for a quick-and-dirty job anyway.

I also like that defining models and even querying has been abstracted away in different interfaces, and that you can use MongoDB in a similar way as you would use a relational database.

Also, in case you need to decouple the request validations from the models (i.e. forms in Django) without HTML-rendering logic attached (useful at times, but completely getting in your way once you try doing anything complicated); in Rails you can, and it looks and feels cleaner because the field types don't have to be related to stuff you're rendering in the HTML response (i.e. field = forms.MultipleChoiceField(widget=CheckboxSelectMultiple)).

Django is awesome in case you ever thought about using Drupal for a project: much more flexible and dev friendly. But it completely got in my way so many times that I actually thought about writing my own Python web framework; which I shouldn't because people have been working on web-related stuff for the past 20 years.

Re:The best Web Framework - what makes Lift different by jasonwocky on Friday January 21, 2011 @11:29AM (#2127802)
>And Rake plugins (pieces of middleware, done in a standard/reusable way, contrary to Django's middleware) are just awesome.

I think you mean Rack plugins (noted b/c Rake is something entirely different in Ruby parlance).

Re:The best Web Framework - what makes Lift different by bad_user on Friday January 21, 2011 @11:52AM (#2127890)
Yes, thanks: it's a common misspelling that I make.
Re:The best Web Framework - what makes Lift different by code_duck on Friday January 21, 2011 @09:34PM (#2129739)
You're not forced to use the Forms class in Django. You can process and output forms manually; that part never felt natural to me so I just skipped it and work with them like I do in PHP.
Re:The best Web Framework - what makes Lift different by itsnotvalid on Tuesday January 25, 2011 @07:17AM (#2138778)
Agreed that things like forms in django really steps in when more customization is needed. You with have it useful for you or you need to completely throw the whole stack away. In rails you can have them separated and just use a bit of the magic (well rails used to have the magical prototype + script.aculo.us, but they managed to rip that away)
Re:The best Web Framework - what makes Lift different by zeemonkee on Friday January 21, 2011 @12:03PM (#2127928)
> But it completely got in my way so many times that I actually thought about writing my own Python web framework; which I shouldn't because people have been working on web-related stuff for the past 20 years.

You could always try Flask or Pylons.

Re:The best Web Framework - what makes Lift different by parfe on Friday January 21, 2011 @09:10PM (#2129703)
Pylons is dead. The authors moved on to Pyramid after declaring Pylons core too difficult to maintain. The upgrade path to Pyramid is "Run your pylons app inside pyramid as you rewrite it from scratch [into our new shiny framework we promise not to abandon]!"
Re:The best Web Framework - what makes Lift different by didip on Friday January 21, 2011 @01:06PM (#2128200)
Pylons is in maintenance mode, Pyramid is succeeding it.
Re:The best Web Framework - what makes Lift different by mickeyben on Friday January 21, 2011 @11:40AM (#2127843)
And Rake plugins (pieces of middleware, done in a standard/reusable way, contrary to Django's middleware) are just awesome.

I think you're talking about rack middlewares. Rake is the Ruby make.