I think with a decent DSL, this'll be very useful.

*Rob Yurkowski*
Freelance Web Developer | Currently Available for Consultation
rob@yurkowski.net | @robyurkowski <https://www.twitter.com/robyurkowski> |
705 . 919 . 4476



On Sat, Mar 30, 2013 at 9:56 PM, Josh Adams <notifications@github.com>wrote:

> In delivery/backend/app/controllers/abc/backend/pages_controller.rb:
>
> >        def index
> > -        present Conductors::Pages::FetchesPages.new(params, :repositories => repositories)
> > +        present Conductors::Pages::FetchesPages.new(params, :repositories => repositories).call
>
> I like the way this pattern looks more and more now (#present is great
> imo), and with a factory of some sort to handle the di bits (like how
> obvious does it, other repository pattern projects I've seen) it would be
> un-verbose as well. Could eventually look like:
>
> present Conductors::Pages::FetchesPage # in the simple case
>
> I'm not advocating for this yet, and I don't think that's the
> end-all-be-all of the potential sugar for this, but I like that this
> pattern seems eminently shorthandable
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/grounded/afterburnercms/pull/83/files#r3595931>
> .
>