An alternative for controllers inspired by "Hexagonal Rails".
Video : http://vimeo.com/47242186
@damln@damlnwww.dln.nameDamian Le Nouaille
View Slide
Controllers, sucks.
MVC and the WEB‣ JavaScript 12764686 MV* Frameworks‣ All is not WEB‣ Server Side is now complex‣Architecture over frameworks
MVCHey showme thatCan hesee porn ?NO ! He’s old.Nope.
CAN you ZOOM ?‣ Route parameters‣ To a “Controller”‣ Check params (security)‣Do a transaction (ask Model)‣Render something, dependson the transaction‣Dance‣Make a better world‣Hang out with girlsHTTPLOGICWHAT YOU EXPECT
Add photoswith tagsphotos.save()Ok, done.photosBetter“Hey, somethingwant to addphotos”Yes it’s done, youcan render.
photos.save()Ok, done.Why ?“Hey, somethingwant to addphotos”Yes it’s done, youcan render.HTTPWorkersCommand lineCats
Can you do that,in Rails ?YESDEMO