~/talk

Modularizing PowerShell: Making Code Portable

links:none on file
slides:none on file

Four-hour workshop that walks through taking copy‑pasted scripts and turning them into reusable PowerShell modules with concrete steps: move functions into PSM1 and module manifest, use commandletbinding, parameter sets and ShouldProcess for confirmation and pipeline-safe begin/process/end/clean blocks, lint with PSScriptAnalyzer and Test-ModuleManifest, set PSModulePath or profile, split monoliths into public/private files, generate an API key and successfully publish to the PowerShell Gallery.

AI-written summary · about

  1. 0:00Modularizing PowerShell
  2. 2:40Why modularize scripts
  3. 3:03Clean code formatting
  4. 11:16Parameters in scripts
  5. 16:41Functions in PowerShell
  6. 23:18Modules vs dot sourcing
  7. 24:31Comment-based help
  8. 29:24Module manifests
  9. 33:43Module paths
  10. 37:52Profiles for automation
  11. 39:51Alternatives to backticks
  12. 43:00Advanced function features
  13. 55:41Error handling
  14. 1:01:54Begin/process/end blocks
  15. 1:08:26Clean block for cleanup
  16. 1:09:38Publishing to Gallery
  17. 1:14:51Testing with PSScriptAnalyzer
  18. 1:21:46When to use functions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.