12 February 2006

Why REST?

This is about Representational State Transfer not rest, verb.

Quote from ajaxpatterns:

" Witness the the debacle caused by the Google Accelerator interacting with non-RESTful services in mid-2005. The accelerator jumps ahead of the user and prefetches each link in case they should click on it (a non-Ajaxian example of Predictive Fetch). The problem came when users logged into non-RESTful applications like Backpack. Because Backpack deletes items using GET calls, the accelerator - in its eagerness to activate each GET query - ended up deleting personal data. This could happen with regular search engine crawlers too ... "


REST compared to RPC

08 February 2006

Where should define database schema?

Where should define database schema? in python (hint: django) or DDL.

Jonathan Ellis explain why schema definition belongs in the database. Yes, why reinventing the wheel create another database schema in .py (hint: django). Runtime introspection is good idea (hint: sqlalchemy, pydo).

After read Adrian Holovaty (hint: django) comment "Cache that, man. Cache it." my eyes wink wink ...

p/s: Nesting UnitOfWork in a Database Transaction seems more interesting compared to adodb CompleTrans()