Joel Bennett

Results 399 comments of Joel Bennett

First of all, as far as `using module ` -- that _actually works_. Given two modules with `Get-Number`, `using module` works, the same as `Import-Module` (but also imports the types),...

I can't think where to put this, but it's worth discussing ... and documenting.

On the up-side: Join-Path fixes path separators for you. The good news about this is that you can combine it with any of the other methods to normalize all the...

This is a great question! I hope some others will pitch in thoughts ... From my point of view, it seems that very few of these types of command will...

Needless to say, I think you're wrong -- I've been bitten by the "why doesn't `-` work" problem too many times (especially when working with other people's code). I agree...

Yeah, hang on a sec. This isn't a series of laws or mandatory practices. But the fact that you can come up with an exception to a rule doesn't mean...

@nightroman That there is ... well, combine that with your where-even filter function, and I'd say you're in violation of at least three or four best practices. Testing args and...

I agree with @li-so here, but just to be clear: Nothing in this guideline is meant to prevent people from leaving things out on purpose. You can write code however...

I don't know @rkeithhill -- that's definitely conditional on which parameter it is -- the built-in cmdlets never do that for InputObject, for instance, and you should only do it...

Yeah, I'm still upset that commands like Format-\* and Out-\* and ConvertTo\* and Sort/Tee/Select don't work properly with arrays :angry: but since Microsoft has stated that enumerating an array passed...