PokekYoke Mistake-Proofing your PowerShell scripts and functions
summary
Concrete Poka‑Yoke patterns for PowerShell with runnable techniques: use CmdletBinding and strong types plus validation attributes to block bad input, add argument completers and ValidateSetValueGenerator for predictive tab completion, and capture errors with a structured write‑error‑information payload so users can paste diagnostics. Regression tests and PSScriptAnalyzer run in PR pipelines prevent regressions. Code examples and module snippets live in repo jacolelops2025 (private now, planned public).
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:56Pokayoke mistake avoidance
- 4:05PowerShell design for prevention
- 8:45Concrete examples
- 18:40Preventing personal mistakes
- 21:34PDCA cycle for improvement
- 25:49Design tools and docs
- 28:21Detecting and reporting mistakes
related talks
47mTempting Fate: Patterns & practices for shareable scripts and functions
45mBullet-proofing Patterns & Practices
01h 37mMore Game Breaking PowerShell
01h 45mWriting Award Winning PowerShell Functions and Script Modules
51mDon't do that, do this instead: PowerShell worst practices and..
48mUnexplained phenomena: powerful tricks you likely didn't know were even possible
40mCode Writing Code, say what now! Meta Programming and PowerShell
45mInteractive Enhancements to PowerShell
