~/talk

The Incredible Extensible PSObject

slides:none on file

PowerShell objects accept live extension: use $obj.psobject.Members.Add (fastest with false) or Add-Member for single instances, and persist behaviors across a type with Update-TypeData vs types.ps1xml (types.ps1xml loads faster and prevents redefinition; Update-TypeData is debuggable). Examples include casting hashtables to PSCustomObject or ConvertFrom-Json, adding a script property that converts Markdown to HTML, giving ints a Double method, and creating a shapeshifting “man‑bear‑pig” by inserting and clearing PSTypeNames — all of which execute interactively.

AI-written summary · about

  1. 0:00Introduction
  2. 1:16PowerShell objects are amazing
  3. 2:41Stretching PSObject instances
  4. 5:13Pseudo objects in PowerShell
  5. 8:47Decorating with PSTypeNames
  6. 12:00Extending types and pseudo types
  7. 15:14Extending Markdown example
  8. 20:02Shape-shifting objects
  9. 23:14Man bear pig shape-shifting
  10. 27:44Why use extensible PSObjects & Q&A
~/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.