logo       

Re: Template Nodes considered harmful: msg#00278

sysutils.puppet.user

Subject: Re: Template Nodes considered harmful

On Oct 25, 2007, at 8:00 PM, David Lutterkort wrote:

> 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.

I agree with your general point, but I didn't see that as being the
question being asked by sheeri, which to me said that s/he didn't
understand the difference between inheritance and inclusion.

I've already said I'd accept your patch that allowed multiple
inheritance. :)

--
The Microsoft Exchange Information Store service depends on the
Microsoft Exchange Directory service which failed to start because of
the following error: The operation completed successfully.
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


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

News | FAQ | advertise