[02:02:46] theBrettman (~theBrettm@184.17.159.51) left irc: Ping timeout: 244 seconds [03:59:55] DracoBlue (~Adium@dslb-088-075-066-254.pools.arcor-ip.net) joined #rest. [04:07:59] Wombert (~Wombert@2001:5a8:4:6d6e:3018:d185:e2bd:9204) left irc: Quit: Wombert [04:33:17] Hakon|mbp (~hakon1@193.137.202.84.customer.cdi.no) joined #rest. [04:37:40] DracoBlue (~Adium@dslb-088-075-066-254.pools.arcor-ip.net) left #rest. [05:58:30] Gracenotes (~person@wikipedia/Gracenotes) left irc: Read error: Operation timed out [05:59:35] Gracenotes (~person@wikipedia/Gracenotes) joined #rest. [06:47:22] Blazeix (~Blazeix@71.74.190.197) left irc: Read error: Operation timed out [07:01:33] Blazeix (~Blazeix@71.74.190.197) joined #rest. [07:16:13] darrelmiller (~darrelmil@bas1-montreal08-1279564619.dsl.bell.ca) joined #rest. [07:24:57] darrelmiller (~darrelmil@bas1-montreal08-1279564619.dsl.bell.ca) left irc: Quit: ~ Trillian Astra - www.trillian.im ~ [08:16:01] aGHz (~Adium@modemcable153.0-178-173.mc.videotron.ca) joined #rest. [09:05:35] sbanwart (~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net) joined #rest. [09:08:32] steveklabnik (~steveklab@184-221-241-197.pools.spcsdns.net) joined #rest. [09:08:36] Action: steveklabnik waves hello to everyone [09:09:19] hi there [09:09:46] how's the last day of the year? [09:09:57] steveklabnik: what do you think about collection/item blocks in rails controllers? [09:10:23] collection/item blocks? [09:10:32] i'm not 100% sure what you're referring to [09:10:40] collection { def get;...;end; def post;...;end } [09:10:49] item { def get;...;end; def post;...;end } [09:11:16] you're suggesting a new api? [09:11:21] i'm not famillair with that. [09:11:38] nothing concrete just trying to figure out how all this patch stuff is going to fit in [09:11:43] ahhh [09:12:01] honestly. they really just want a action that maps to the verb. [09:12:08] right [09:12:11] that's what I meant [09:12:30] if you have a collection and item block you can still have CRUD for set of resources in one controller [09:12:49] but map to HTTP verbs for collection and item routes [09:13:20] yeah, i'm really down on rails at the moment. heh. [09:13:26] :) [09:13:40] did you happen to catch my blog post and the resulting shitstorm? [09:13:49] which one the cukes one ? [09:13:54] naw, the one yesterday [09:14:02] http://blog.steveklabnik.com/posts/2011-12-30-active-record-considered-harmful [09:14:10] ruh roh [09:14:13] :) [09:14:36] sbanwart (~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net) left irc: Remote host closed the connection [09:14:39] so yeah, one of the assertions that i make is that i think we're reaching the design limits of MVC. [09:14:47] so i've been trying to think about what to do instead [09:14:57] sbanwart (~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net) joined #rest. [09:15:43] steveklabnik: I've worked on a couple of frameworks basically built from rack components [09:15:57] the router just routes one URI pattern to a resource handler [09:16:21] a resource handler just takes a rack request and dispatches to the corresponding method [09:16:49] only 'issue' with that is (from a rails pov) you don't have collection and items handled in the same 'controller' (i.e. resource handler) [09:17:32] steveklabnik (~steveklab@184-221-241-197.pools.spcsdns.net) left irc: Read error: No route to host [09:17:40] stevekla1nik (~steveklab@184-221-241-197.pools.spcsdns.net) joined #rest. [09:17:44] zomg internet screwup [09:17:49] :( [09:17:51] I missed any reaction of yours, mikekelly [09:17:53] if any [09:18:10] I've worked on a couple of frameworks basically built from rack components [09:18:10] mikekelly [09:18:11] the router just routes one URI pattern to a resource handler [09:18:13] mikekelly [09:18:15] a resource handler just takes a rack request and dispatches to the corresponding method [09:18:17] 17:16 mikekelly [09:18:19] only 'issue' with that is (from a rails pov) you don't have collection and items handled in the same 'controller' (i.e. resource handler) [09:18:30] have you seen webmachine [09:18:48] well I've seen the overview but I haven't actually used it [09:19:11] same. [09:19:28] I like rack as a model [09:19:45] it's layered, so it's HTTP'ish [09:19:51] yeah. [09:19:56] rack is also reaching the limits [09:19:59] rack 2.0 will be different. [09:20:09] really the only issue with MVC is C shoudl really be R for resource [09:20:22] and V possibly representation [09:20:26] but basically MVC is fine [09:20:36] i'm not sure it maps to http well [09:21:04] well that's what I mean - if you swap controller for resource and view for representation [09:21:07] you're pretty much there [09:21:21] and it's possible to build a framework which treats them both that way [09:21:43] I hacked Zend Framework (for PHP) to work that way, and people seemed to dig it [09:22:13] i used zend long ago [09:22:18] horrible framework [09:22:21] heh [09:23:26] but basically if you just have one controller per URL pattern [09:23:35] and your controller 'actions' just map to HTTP verbs [09:23:44] hmmm [09:23:49] you're basically there [09:24:18] but that would blow rails people's minds cos now you have 2 diff controllers for /widgets and /widgets/:id [09:24:34] Action: stevekla1nik nods [09:24:43] but you could implement a collection controller [09:24:53] and have collection/item blocks within that [09:25:36] and your routing dsl would just have "collection" instead of rail's "resources" [09:26:30] but for me it's also about how the framework delegates under the hood - basically I believe the router should just figure out the controller and then pass the rack request along [09:26:49] I don't think it should delegate to the action [09:27:23] mmm [09:27:28] ... have you seen all this DCI stuff? [09:27:32] ? [09:27:50] http://en.wikipedia.org/wiki/Data,_context_and_interaction [09:29:19] nope, looks intriguing [09:29:28] there are some dudes that are trying to bring it to rails hard. [09:29:38] http://andrzejonsoftware.blogspot.com/2011/02/dci-and-rails.html [09:33:34] sbanwart (~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net) left irc: Ping timeout: 276 seconds [09:35:44] that's related to keeping big apps clean then? [09:35:59] yeah. [09:36:20] i met with the dude who's writing the 'dci on rails' book last night. he says it's helped his legacy code soooo much. [09:36:23] i'm not totally sold yet. [09:40:37] I do find it kind of bizarre that rails is meant to be the defacto HTTP-slash-REST framework, but it doesn't really have a concrete concept of a resource further than the language of the routing DSL [09:41:55] and we have controller with actions that handle requests for specific methods.. but the naming conventions for those actions don't correspond to the methods they're mapped with [09:42:53] everything else with rails I'm pretty much down with - I tend to strip out active record immediately anyway [09:43:30] to be fair that is a fairly big part of rails.. ¬_¬ [09:45:09] mikekelly: sounds like you're ready for CherryPy :) [09:45:13] I spent a while worrying about the imperfections of rails from REST/HTTP perspective but then managed to convince myself that ignoring my pedantry was worth it considering there was a tonne of benefits to working with rails [09:45:25] fu-manchu: or sinatra. ;) [09:45:31] fu-manchu: or padrino or sinatra [09:45:39] mikekelly: since it's the poster child, changin it is worth it. [09:46:16] well I'd be happy to try and point out where it diverges from HTTP and how you could fix it [09:46:50] but tbh the fixes don't really add much they just clean everything up a bit and potentially break a load of stuff [09:47:19] I did try and bring up the routing stuff a while ago before rails 3 got released [09:47:27] it didn't go down very well. [09:48:25] heh. [09:48:29] it happens. [09:48:57] stevekla1nik: pretty funny how hard it's going to be to make full PUT work as expected with rails [09:49:12] and how weird and confusing the routing is going to end up [09:49:44] wrt. that Pull request the other day I mean [09:52:09] I can see a train wreck in the distance there [09:52:46] yeah. [09:52:49] it won't end that well [09:52:54] luckily.... my talks are getting accepted [09:53:04] i'm doing at least two conference talks this spring about 'real rest' [09:53:08] based off of that twilio talk. [09:53:18] so i'll be soliciting feedback from this room, of course. :) [09:53:30] sweet. [09:53:44] I really need to finish off a first pass at this template DSL for HAL [09:54:48] checked out that roar gem this week.. thought about using the presenter pattern instead [09:54:55] not sure atm [09:57:04] yeah. [09:57:08] have you seen draper? [10:04:26] stevekla1nik (~steveklab@184-221-241-197.pools.spcsdns.net) left irc: Ping timeout: 240 seconds [10:33:21] theBrettman (~theBrettm@184.17.159.51) joined #rest. [10:44:33] RestBot (~RestBot@66.220.2.180) left irc: Ping timeout: 252 seconds [10:44:48] RestBot joined #rest. [10:44:55] Hakon|mbp (~hakon1@193.137.202.84.customer.cdi.no) left irc: Ping timeout: 252 seconds [10:45:21] `0660 (olli@oosny.net) left irc: Ping timeout: 252 seconds [10:46:27] Mike_L (~leonhard@shevek.tamale.net) joined #rest. [10:46:54] `0660 (olli@oosny.net) joined #rest. [11:41:11] Wombert (~Wombert@client-gate.sfa.network.cynigram.com) joined #rest. [12:20:17] stevekla1nik (~steveklab@c-67-165-87-244.hsd1.pa.comcast.net) joined #rest. [12:27:40] stevekla1nik (~steveklab@c-67-165-87-244.hsd1.pa.comcast.net) left irc: Quit: Lost terminal [13:03:49] Hakon|mbp (~hakon1@193.137.202.84.customer.cdi.no) joined #rest. [13:05:51] Hakon|mbp (~hakon1@193.137.202.84.customer.cdi.no) left irc: Client Quit [14:07:26] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) left irc: Ping timeout: 240 seconds [14:15:18] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) joined #rest. [14:18:19] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) left irc: Client Quit [14:20:17] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) joined #rest. [16:21:54] mchineboy (~tyler@c74-196-86-125-abrn.pac.suddenlink.net) joined #rest. [16:28:02] aGHz (~Adium@modemcable153.0-178-173.mc.videotron.ca) left irc: Quit: Leaving. [16:48:43] mchineboy (~tyler@c74-196-86-125-abrn.pac.suddenlink.net) left irc: Quit: leaving [17:00:31] Wombert (~Wombert@client-gate.sfa.network.cynigram.com) left irc: Quit: Wombert [17:37:46] agorman (~andy@c-24-130-89-103.hsd1.ca.comcast.net) left irc: Ping timeout: 240 seconds [17:53:25] kennethreitz (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) left irc: Ping timeout: 276 seconds [18:19:56] Blazeix (~Blazeix@71.74.190.197) left irc: Read error: No route to host [19:21:36] Wombert (~Wombert@client-gate.sfa.network.cynigram.com) joined #rest. [19:24:50] Wombert (~Wombert@client-gate.sfa.network.cynigram.com) left irc: Client Quit [19:38:20] Wombert (~Wombert@client-gate.sfa.network.cynigram.com) joined #rest. [19:43:04] Wombert (~Wombert@client-gate.sfa.network.cynigram.com) left irc: Client Quit [19:44:23] Wombert (~Wombert@client-gate.sfa.network.cynigram.com) joined #rest. [20:47:48] Wombert (~Wombert@client-gate.sfa.network.cynigram.com) left irc: Quit: Wombert [21:38:20] Hakon|mbp (~hakon1@193.137.202.84.customer.cdi.no) joined #rest. [21:41:23] kennethreitz (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) joined #rest. [21:46:35] Hakon|mbp (~hakon1@193.137.202.84.customer.cdi.no) left irc: Quit: Leaving... [22:01:12] kennethreitz (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) left irc: Quit: Computer has gone to sleep. [22:01:51] kennethreitz (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) joined #rest. [22:02:23] kennethreitz (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) left irc: Remote host closed the connection [22:04:46] kennethreitz (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) joined #rest. [00:00:00] --- Sun Jan 1 2012