~/talk

The Zen of Powershell - PowerShell for the C# dev

Talkat NDC London 2017 · 2017-01-16..01-20· [devops-and-delivery]
links:none on file
slides:none on file

A practical guide for C# developers showing concrete PowerShell behaviours and fixes: parameter parsing treats commas create arrays while flags use spaces, .NET method invokes want bracketed argument arrays, and return writes to pipeline so assign or pipe to capture values; distinguish Write-Host vs Write-Output, use Verbose/Debug preferences or CmdletBinding for switches, and watch variable scope requiring script: scope needed for cross-function assignments. Demonstrates Pester tests with mocks, the TestDrive filesystem, code coverage, custom Format XML and a C# PSModule/PSCmdlet integration; demos run after stepwise fixes.

AI-written summary · about

  1. 0:00Start
  2. 9:10write some output out to the outside world
  3. 21:49run all the tests
  4. 26:04invoke casper from the command line
  5. 34:50passing in an array of ingredients
~/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.