~/talk

Write Modules, Not Scripts

name:Ed Wilson
links:none on file
slides:none on file

A concrete five-step recipe: start from a single line, refactor into a function, add comment-based help, make a .psm1 and .psd1 manifest, install into the user module path and verify autoloading. Demonstration uses Get-CimInstance, an add-help snippet and a copy-modules installer, creates a Get-Bios module and installs it successfully in less than 15 minutes. Notes practical issues: module manifests carry version/metadata, binary assemblies cannot be unloaded from the CLR, and the uploader points out 229 scripts on the repo solving the same password-expiry problem.

AI-written summary · about

  1. 0:00Start
  2. 4:23OVERVIEW
  3. 4:37THE PROBLEM
  4. 9:27THE SOLUTION
  5. 14:51MODULE DESIGN
  6. 21:45MODULE STORAGE
  7. 24:56CREATE A MODULE
  8. 25:55UPDATE MODULE
~/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.