On Jan 29, 2008 2:26 PM, Mike Orr <[EMAIL PROTECTED]> wrote: > Are there any other practical arguments for a REST-like > add/edit/delete, or is it all just academic ideology? >
IANARZ (I am not a REST Zealot) but... I noticed when I moved to Pylons (from Webware, fwiw) that one of the first things I did before writing any code was work out the URI-space. Then went to routes. I somehow stumbled through my own preferences on the same pattern that Ian mentions: /accounts --> list current accounts /account/8733 == /account/8733/view /account/8733/edit /account/new --> empty form /account/8733/view/attachments/2 (etc.) This is different from stock Pylons, which recommends: /account/view/8733 To me, viewing is a property of 8733, not vice versa. So, I switched 'em. That was easy in routes. It felt to me like this step made me write a better application; things landed in better places. I don't expect to ever have any kind of robot use these applications, and I bet never once will a user look at the location bar and think "gee, those are nice urls" but it helped me write better software, I think. That's worth something. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
