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