In this chapter, we looked at several practices borrowed from traditional software development that will help your scripting look more professional. These practices include things like using naming conventions for different types of PowerShell entities, breaking scripts down into smaller units, using version control consistently, and finally unit testing and mocking.
In the next chapter, we will look at using some of the built-in features of PowerShell to proactively create more trouble-free programs. These features include error handling (try
/ catch
vs trap), parameterization and pipeline input, parameter validation, parameter type transformation, and so on.