[Boulder-Denver Ruby Group] re-inventing components

ara.t.howard ara.t.howard at gmail.com
Mon May 21 13:25:17 EDT 2007


On May 21, 2007, at 10:51 AM, David Clements wrote:

>
> The only thing I have heard is that the duping is expensive, that  
> never made sense to me.  I don't have anything measurable and  
> concur that I don't se anything in the code that dive me concern.   
> The only response I ever see is that you should be able to chuck  
> your component and use helpers and partials.

ok good.  that really supports this

	http://drawohara.tumblr.com/post/2184032

>
> Didn't talk to anyone about it.
>

ok.  did any other ideas about where view patterns where heading emerge?

actually - those of us who didn't go would really appreciate a run  
down of the proceedings from you and others who went - maybe next  
ruby group?  marty?


>
> Maybe I am off the deep end but I can see any trivial examples  
> where the main content of a page does not have anything to do with  
> sidebar content.   One example that i have is a logout header at  
> the top of many my layouts.   There is information in the logout  
> header that I don't want my main pages to care/know  about at all.   
> I guess I could code around this in someway right and have a  
> LogoutHelper.init_instances and then render :partial =>  
> 'logout_header'.  That just seems ugly and heavy to me.  So I like  
> the direction you are going and have other examples I can show you  
> to help flesh out your use cases.
>
>

ok - i understand that.  it makes sense.  i'd love to see more examples.

>
> Yes,  but your approach might make more sense in these cases.  If  
> you could grab ahold of a Bar instance and initialize it with the  
> data for all the calls of render_component, then that would make my  
> life easier and I think it would be much cleaner.   Which makes me  
> think........   Why wouldn't you handle the main target controller  
> in the same way?  Every thing is a widget!
>
> Coffee and a whiteboard?
>

yes!  wednesday @ the cup - 8 am?  anyone else care to join?

>



> -a

> --
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama





More information about the Bdrg-members mailing list