~/talk

Developing with PowerShell Classes: Here be Dragons

links:none on file
slides:none on file

Dives into concrete PowerShell 5 class gotchas with demos from a real project PoshBot showing what actually breaks and how to work around it: classes must live in the PSM1 or they won’t be exposed, using module exposes types but Import-Module and RequiredModules do not, module versioning and import semantics behave oddly, class file order affects inheritance, and verbose/debug streams and hidden properties have surprising behavior. Several pragmatic fixes are shown (build-time concatenation, factory functions, runtime checks) but many are kludges not clean fixes.

AI-written summary · about

  1. 0:00Introduction
  2. 0:47Demos
  3. 1:04Agenda
  4. 1:58Examples
  5. 3:10Why use classes
  6. 12:20Remove Hard Dependency
  7. 12:33Remove Soft Dependency
  8. 16:40Importing Classes
  9. 18:49Hidden Properties
  10. 21:10verbose in debug
  11. 25:13requires module
  12. 30:13complex module
  13. 37:13abstract classes
  14. 40:43parameter validation
~/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.