~/talk

Tempting Fate: Patterns & practices for shareable scripts and functions

slides:none on file

Concrete rules for shareable PowerShell code: always wrap Begin/Process/End blocks in try/catch around Begin/Process/End blocks and rethrow by default so callers can handle errors; log rich data with write-information that logs full exception objects so logs include stack and can be exported (Export-Clixml) and rehydrated; design parameter names to match pipeline property names (use aliases), prefer specific names like FilePath or TimeoutSeconds, and structure modules so pipeline input hits Process for performance.

AI-written summary · about

  1. 0:00Intro
  2. 0:15Who am I
  3. 1:50What makes code shareable
  4. 6:00Error handling
  5. 7:38Trycatch
  6. 14:53Logging
  7. 20:46Summary
  8. 24:13Interfaces
  9. 25:11Brainstorming
  10. 26:12Writing examples
  11. 26:53Writing synopsis
  12. 28:24Tests
  13. 29:40Parameters
  14. 33:51Parameter Names
  15. 35:42Distinct
  16. 36:53Consistency
  17. 37:55Writing a process block
  18. 39:16Optimizing the process block
  19. 40:30Customizing output
  20. 42:04PS typing
  21. 42:36Dash Computing vs ComputerName
~/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.