Troubleshooting9 min
Why Moving $null to the Left Side Broke My PowerShell Script
The analyzer's fix is safe only where code meant a null check; this function relied on the array filter in ways only empty and nearly empty inputs reveal.
Readability, cognitive load, and the practices that hold up as a team grows.
3 articles
Troubleshooting9 min
The analyzer's fix is safe only where code meant a null check; this function relied on the array filter in ways only empty and nearly empty inputs reveal.
Guide6 min
Validation attributes stop a PowerShell script before it runs on bad input, but ValidateSet and ValidatePattern ignore case unless told not to.
Explorationupdated Sep 20268 min
Splatting forces every parameter of a long command to be named and laid out, which keeps it readable and safe to change years after it was written.