4 ms·
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
by WD-42 3y ago
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.
- theptip 3y agoFewer 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.
- izak30 3y agoJust 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.
- deleted 3y ago[deleted]
- toyg 3y agoYes, Simon Willison was part of the Django core development team very early on, when he was ungodly young. Absurdly talented guy.