[Nitro] xhtml builder in model?

James Britt james_b at neurogami.com
Wed Sep 7 09:04:12 EDT 2005

TRANS wrote:
> On 9/7/05, James Britt <james_b at neurogami.com> wrote:
>>>  class Writer
>>>    def render( model )
>>>      do_this(model.x)
>>>      do_that(model.y)
>>>  class Model
>>>     def render( writer )
>>>         writer.do_this(self.x)
>>>         writer.do_that(self.y)
>>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 mailing list