~/talk

Fun with Functions

Talkat GoDays 2020 · 2020-01-21..01-23· [functional-programming, go]
links:none on file
slides:none on file

Shows concrete patterns: functions are used as values, sent over channels and executed (functions over channels), and tests embed locally defined helpers for clear input→output checks. Demonstrates the client option pattern for configurable timeouts, and uses small state machines where handlers return closures that capture state (closure-as-state), with handler funcs satisfying an event interface (handler func implements interface). Notes pitfalls: goroutines capturing context and waiting on closed channels can leak or block, and naive waiting for channel close hurts latency.

AI-written summary · about

  1. 0:00Introduction
  2. 2:39Function basics
  3. 6:13Function capture
  4. 10:41Function calls
  5. 13:34Filter functions
  6. 17:00Function interfaces
  7. 20:54Event handlers
  8. 24:30Function channels
  9. 28:16Context capture
  10. 30:53Error handling
  11. 33:17Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.