It’s 10 O’Clock. Do you know where your servers are?

Ok…that’s a strange title, but let me finish before you decide its lame. (On a side note, I’m a dad, so my humor tends to run in that direction naturally). I see lots of examples in books and on the web about how to use pipeline input to functions. I’m not talking about how to …

Continue reading ‘It’s 10 O’Clock. Do you know where your servers are?’ »

PowerShell-Specific Code Smells: Building output using +=

Before I cover this specific code smell, I should probably explain one thing. The presence of code smells doesn’t necessarily mean that the code in question isn’t functional. In the example I gave last time (the extra long method), there’s no reason to think that just because a method is a thousand lines long that …

Continue reading ‘PowerShell-Specific Code Smells: Building output using +=’ »

PowerShell Identity Function (revisted)

One of my earliest (posts was about implementing an “identity function” in PowerShell to assist in typing lists of strings without bothering with commas. The function I presented was this: I recently saw (in a Scripting Games entry) that you don’t need to define your own function for this. write-output works just fine. For example: …

Continue reading ‘PowerShell Identity Function (revisted)’ »