~/talk

PowerShell Module Design Rules (and When to Bend Them)

links:none on file
slides:none on file

Concrete rules and tradeoffs: package everything in a folder with a PSD1 manifest and a tiny PSM1 loader, or face versioning and PSModulePath failures (PowerShell stops at the first matching name). Ship binary builds for both .NET2 and .NET4 when needed. Use standard verbs, prefix nouns to avoid collisions, and strongly type parameters (null constructor for hashtable remoting). Favor pipeline binding and matching parameter names to object properties; heavy edge options go in separate objects (one command with ~20 parameter sets for rare cases).

AI-written summary · about

  1. 0:00PowerShell module design intro
  2. 1:27Module anatomy
  3. 7:20Module files and folders
  4. 11:39Command naming rules
  5. 18:23Parameter design rules
  6. 26:31Parameter sets 80-20
  7. 29:21Pipeline binding design
  8. 36:44Wildcards and host features
  9. 38:10Demo: command structure
  10. 44:51Identity patterns in practice
  11. 49:37Public API design
  12. 51:01Binary module tips
~/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.