[Nitro] xhtml builder in model?
james_b at neurogami.com
Wed Sep 7 09:04:12 EDT 2005
> On 9/7/05, James Britt <james_b at neurogami.com> wrote:
>>> class Writer
>>> def render( model )
>>> class Model
>>> def render( writer )
>>I don't know that I can offer a persuasive argument, but I prefer the
> I understand. I generally do too, but we program Ruby. Now if we were
> Lisp programmers, I have a feeling we' might have a different opinion.
Could you you explain that? I believe my choice sticks closer to a
"Tell, don't ask", approach, which seems pretty consistent with an OO style.
http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
More information about the Nitro-general