News

Designing PowerShell functions, like coding, is an art. There are lots of shortcuts and best practices that you will come up with yourself to make your coding easier over the long run.
Related They are nothing alike 5 PowerShell best practices to work even more efficiently A windows 11 laptop running a PowerShell script to install updates and rreboot Screenshot showing ...
Most eager PowerShell users over-build their functions or scripts to do too many things. You'd get more reuse from old code if your code was more granularly and tightly scoped.
Making code adaptable is a key skill for any coder. Here's a primer on how to stretch function parameters to fit a variety of situations.
Old-school script authors use if test <condition>, and you'll sometimes see that show up, but it's rare nowadays. This month, I want to finish this discussion by exploring how the return command ...
Recursion in Shell Script Functions The point of introducing the Towers of Hanoi puzzle, however, was to demonstrate a neat recursion trick within a shell script, so let's have a look at how that ...