[LRUG] Conditional Style (was: To debug the impossible bug)
Graham Ashton
graham at effectif.com
Wed Aug 3 06:31:27 PDT 2011
On 3 Aug 2011, at 14:29, Simon Coffey wrote:
> I agree, eliminating the conditional with polymorphism would be hugely
> preferable, but it feels a bit wrong putting view stuff in the
> business logic. The other day I happened across[1] a project called
> Draper (https://github.com/jcasimir/draper) that implements
> Decorators/View-models for Rails apps, which looks interesting, and
> might be the sort of thing to fill this gap. Haven't had a chance to
> try it out yet, though.
I'm wondering if the presenter pattern might be useful? I've not spent too much time following how your objects are related to one another though, so maybe not...
More information about the Chat
mailing list