~/talk

Writing Better Go: Lessons from 10 Code Reviews

Talkat GoLab 2025 · 2025-10-05..10-07· [go]
slides:none on file

Ten recurring code-review categories surface actual rules: handle errors explicitly, log or return, never both, wrap errors for context, avoid ambiguous result+error returns, prefer concrete types first then accept interfaces return concrete types, simplify concurrency with errgroup/waitgroup instead of fragile channels, use in-memory test helpers like MiniRedis or in-process gRPC fakes, declare vars close to use, favor flat control flow, and write comments that explain intent not implementation.

AI-written summary · about

  1. 0:00Introduction and context
  2. 3:38Effective error handling
  3. 6:36Interfaces in Go
  4. 13:43Concurrency best practices
  5. 17:33Variable declaration patterns
  6. 20:34Preventing runtime panics
  7. 23:25Minimizing code complexity
  8. 24:49Organizing code structure
  9. 26:27Order and naming conventions
  10. 28:01Naming and documentation
  11. 30:22Conclusion and Q&A
  12. 34:00Q&A session
~/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.