Thanks for explaining that, it helps us all learn from you experience.
sent from my mobile phone
On Apr 30, 2010 12:08 AM, "Jorge Matos" <matos...@gmail.com> wrote:
Eric,
I found that I had a bug with nested builds and while I was fixing it I kept thinking about what you said about churn and adoption - and I thought why am I wasting my time if no one is really complaining about using a module?
There are some good reasons to use Modules:
1) You can enforce encapsulation by only exporting functions and variables that you want to make public
2) You can easily remove a module and all the variables that it defines go with it
3) You can treat a module as an object and query it's meta-data
Import-Module .\psake.psm1
$m = Get-Module psake
$m.ExportedVariables #should print out "psake"
4) The PowerShell team recommends modules as opposed to snap-ins, so I suspect support for modules will only grow in the future
Thanks again for your feedback Eric!
On Thu, Apr 29, 2010 at 10:48 PM, Eric Hexter <eric....@gmail.com> wrote:
>
> Jorge,
>
> Would you mind sharing what the considerations were for this decision. I think you...
> On Thu, Apr 29, 2010 at 10:41 PM, Jorge <matos...@gmail.com> wrote:
>>
>> I've reconsidered - p...
--
> You received this message because you are subscribed to the Google Groups "psake-dev" group.
> To ...
--
Jorge Matos
Senior .NET Architect, MCSD.NET, MCSD Visual Studio 6.0
(440) 666-3107
matos...@hotmail.com
Blog: http://jorgelmatos.blogspot.com
--------------------------------------------------------------------------------
"Any intelligent fool can make things bigger and more complex...
It takes a touch of genius - and a lot of courage to
move in the opposite direction."... - Albert Einstein
--
You received this message because you are subscribed to the Google Groups "psake-dev" group.
To post...