From: vruz Date: 2005-03-23T09:06:16+09:00 Subject: Re: Any guides for good coding in Ruby? > I can't decide if it's just the example or the whole section, but this > one just doesn't feel right to me. I would much rather have a class > rendering itself (who better qualified?), then providing accessor like > data for others to do it. Push, don't pull, right? I see what you mean, and I agree with you about that particular section. ( also, it's especially noted in the title that is not a specific Ruby idiom.) I believe that this pattern may well be domain-specific to a certain technique of graphics rendering, and that's probably not the best place to put that piece of code. (but it's a wiki, you know...) wrt that specific section, I would also argue that I can barely see the need for abstract classes like that in any Ruby code. > An excellent book on this topic is Holub on Patterns, if you're > interested. > Anyway, just wanted to share. I really did love the page. Thank you for the recommendation. cheers, vruz