~/talk

Code Golf - The Zen of Writing bad Code

slides:none on file

Live demo of concrete PowerShell tricks and the final score not rhetoric shows how to shrink real solutions on code.golf, using PowerShell 7 features and shell aliases to cut characters, replacing functions with scriptblock recursion, exploiting n++/++n behavior and pipeline assignment, and using numeric literal formats to win with a 47-character Collatz solution. Slides and terminal examples run on the code.golf site so code executes, errors appear, and the published recording is captured by Confreaks for replay.

AI-written summary · about

  1. 0:00Welcome
  2. 1:15Code golf for PowerShell
  3. 3:06Shrinking PowerShell code
  4. 10:14String and array tricks
  5. 12:47Variable hacks
  6. 15:33Assignment tricks
  7. 19:45Ternary operator
  8. 23:18Looping techniques
  9. 26:52PowerShell aliases
  10. 29:01Collatz conjecture
  11. 31:10Challenge with function
  12. 34:42Remove function
  13. 36:30Optimize loop logic
  14. 38:58Recursion for golf
  15. 41:49Nested ternaries
  16. 44:43Eliminating parameter blocks and extra syntax
  17. 46:27Final optimizations
  18. 47:32Community solutions
  19. 48:15Closing
~/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.