Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is how simple Django is for CRUD apps. The author could go even sparser. Love them or hate them, the views could have been replaced with class based model views for even less lines of code.


Fewer lines of code, perhaps, but in terms of explicitness, clarity, and ease of maintainability I find myself strongly favoring the functional approach for this case.


Just for kicks I ran `git log | grep "Author: Simon" -C 20 | tail -n 50`

``` commit 53eddd4a0f8786e23f511a653d8d7ffa947ad8db Author: Simon Willison <simon@simonwillison.net> Date: Mon Apr 23 21:24:41 2007 +0000

    Added HTTP_HOST example header

    git-svn-id: http://code.djangoproject.com/svn/django/trunk@5063 bcc190cf-cafb-0310-a4f2-bffc1f526a37
```

There are earlier references as well, but I think the author was making pretty deliberate choices.


Yes, Simon Willison was part of the Django core development team very early on, when he was ungodly young. Absurdly talented guy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: