Writing Reusable Code

In the previous chapter, we talked about more advanced coding techniques, such as accessing RESTful web services, and we saw how to efficiently work with loops and filtering methods, and how to subscribe to events in your scripts.

This chapter will show you how to create professional, reusable code with PowerShell. The implementation of code in modules will be explained in depth, capturing all of the important topics, such as standardization, commentary and help files, signing, the creation of efficient modules, version control, and PSScriptanalyzer, to ensure good code quality. These skills are prerequisites for writing production-ready scripts that can be used in an enterprise environment.

The following topics will be covered in this chapter:

  • Best practice guidelines
  • Functions
  • Comments
  • Help files
  • Signing
  • Modules
  • Version control
  • PSScriptAnalyzer
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.15.94