Re: [Puppet-dev] Re: Thoughts on Module Namespace Conflicts

2015-02-10 Thread Heck, Walter
Hi Henrik,
On Tue, Feb 10, 2015 at 9:30 PM, Henrik Lindberg <
henrik.lindb...@cloudsmith.com> wrote:

> On 2015-10-02 19:52, Walter Heck wrote:
>
>> I'm personally more of a fan of what some programming languages call
>> interfaces; a sort of contract if you will that a module implements.
>>
>>  Yes that is good - does not solve the issue of modules having the same
> name though - either the module name must change, or modules must be
> installed with both author and name and then referenced the same way.
>
But with this you wouldn't need to have more then one module with the same
name? All you'd need is a single module that satisfies all the interfaces
the rest of your code asks for. I would think that if this was implemented,
the community would gravitate towards a single IMysql interface which can
then be implemented by different mysql modules in different ways.

cheers,
-- 
Best regards,

Walter Heck
CEO / Founder OlinData

- Open Source Training & Consulting

Check out our upcoming trainings


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CAOfYMj4uk2OUtQ5tbG6waX0K4FQRfUST8Q2hf-sfp5Pz%3DsADJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet-dev] Re: Thoughts on Module Namespace Conflicts

2015-02-10 Thread Heck, Walter
Hi Trevor,
On Tue, Feb 10, 2015 at 9:17 PM, Trevor Vaughan 
wrote:

> Walter: This would be nice, but variables are the...uh...variable here.
>
> Many people only expose the variables that they need while others expose
> every variable they can find. It would be an interesting experiment to see
> if it would work though.
>
Well, in for instance Delphi interfaces could also have properties, so I
don't think that needs to be a problem. The interface wouldn't determine
the value of the property though, just that it should exist in a class
implementing that interface.

See for some Delphi examples here:
http://www.delphibasics.co.uk/Article.asp?Name=Interface

-- 
Best regards,

Walter Heck
CEO / Founder OlinData

- Open Source Training & Consulting

Check out our upcoming trainings


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CAOfYMj6_psV4F9xQ5KcFrVcQsstTwsRyz4-jBu%3D15ebOjHKxVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.