logo       

Re: Template Nodes considered harmful: msg#00275

sysutils.puppet.user

Subject: Re: Template Nodes considered harmful

On Wed, 2007-10-24 at 12:20 -0500, Luke Kanies wrote:
> > (20:16:21) sheeri: certainly I can see the need for something being
> > both
> > a "webserver" and a "dbserver".......which I'd think multiple
> > inheritance
> > would be the way to go
>
> Inheritance only makes sense when you're talking about one class
> needing to modify another class, which is generally not the case.

The point of the above (or at list the pointy end I've run into) is that
you may want to create a class 'fooserver' by combining 'webserver' and
'dbserver', and give people the opportunity to modify resources coming
from either. That's not possible with single inheritance.

David


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise