81 points · by redDragon · 14y ago · 35 comments
It should probably be noted that this is from 2005.
> The Lisp newsgroup, comp.lang.lisp, was upset about the switch that they’re currently planning to write a competitor to reddit in Lisp, to show how right they are or something.
Here's what became of that: http://www.cl-user.net/asp/new
"The Common Lisp Directory rewritten in Python" ;-)
An April fool's joke.
(Never using web.py and not being fully aware of Django's status in 2005) I see that overall they seem to have faired well. All you need is a settings.py file to run a Django app. The templating is slow performance-wise but pretty expressive.
I love that the Django community as a whole is pretty responsive to criticism. The 'Why Django Sucks' talk at DjangoCon is an example. My biggest complaint was the horrible User model (you cannot not have 'username' for a Django app using the User model). But they've fixed it now. The major complaint against Django is that it is monolithic, but the devs have worked hard to keep the system decoupled allowing one to replace most modules. But if you want something small Django is not the one for you I guess, and there is nothing wrong in it. One size fits all is never possible to achieve and not a good solution too.
If you're looking for a nice Python web framework, try Pylons/Pyramid
Pylons is loosely coupled. Not Django.
Django is not bad and it certainly makes it easier for 99% of projects out there (CMS style). But for the 1% it's a pain.
If you want to use an ORM, or have database backed sessions, or user logins, you need to write all that yourself. For example: http://flask.pocoo.org/docs/patterns/sqlalchemy/
Depending on what you're doing, that might be a good thing - but I find writing things which are already included in Django pretty annoying.
I like the mapping of a resource to class and method names to class method.s I am not sure I like Flask's method handling and having to do if ... elif .... else (maybe I just found some bad example, so please correct me).
Also url dispatching at the top makes it easier to understand what's going on rather than having it spread to each of the decorators somehow.
Django isn't loosely coupled by default, but it can be used in a relatively loosely coupled way. E.g. you can easily use your own SQL and templating engine. Yes you can't just hot swap in a new web framework without rewriting the core app code, but that's the case with every framework.
Several years ago I was doing a little cozy web questionary tool and after trying Django, PHP, Perl, etc I've come to web.py framework. It was pleasure to work with databases, web templates, etc in web.py environment. I really enjoyed making the tool and the result code was tiny, clean and easy for understanding. Though it was a tiny tool I was very proud and next time I used web.py for a bigger project (proprietary for internal use only) and it was pleasure again.
Recently I've read three parts of "raw nerve" articles and found them interesting. But I didn't even pay attention on author's name. Now reading "Rewriting Reddit" all the pieces has been bringed together and I'm thankful to Aaron for his web.py and "raw nerve" articles.
I'd be very interested in hearing which of the criticisms against Django are still relevant, and which have been fixed. I've been using Django for a few years, and love it, but I don't really know what the state of Django was in 2005 and many of the things mentioned seemed, to me, to no longer be present. Then again, I haven't used web.py, so maybe there is a better way than Django in some areas I'm not aware of.
Django has merged the magic-removal branch a long time ago, pre 1.0 and since the newforms branch (also merged aeons ago) it can generate forms and validation. The template language is limited by choice which might or not be a good thing. Personally I think the idea is good, just the execution is inferior to Jinja2. If you don't like it, you can replace it, that's what loosely coupled means. aaronsw things loosely coupled means it is a library. It is not, it has stayed a framework and that hasn't changed since 2005.
and a few years later flask started as an april fools joke.
This is beautiful and exactly what programmers need. I can't emphasize enough the importants of simple intuitive APIs. This, for example, is in my opinion the #1 reason why jQuery dominates web frontends.
Oh, and isn’t reddit’s real problem that they’re busy changing implementation languages (!) while digg is sorta kicking their butts? I don’t know which site is doing better financially (does either one even have a biz model? What might it be, one wonders), but digg seems more polished, has a more pleasent UI, seems more featureful, and more popular.
Setting aside the Python v. Lisp debate (which is so boring and pointless), I’d hate to be in what seems to be reddit’s position: serious, robust competition and remaking fundamental tech decisions.
Eek!
Among other things Digg got overly ambitious, and took what turned out to be too much funding in the subsequent years. In the meantime, Reddit was growing organically under Conde Nast without the pressure of VCs looking for a return. Digg was forced to take big risks, and we know how it turned out.