~/talk

Unraveling Go Anti-Patterns

Talkat GopherCon Europe 2024 · 2024-06-17..06-20· [go, developer-experience]
links:none on file
slides:none on file

Recommends selective error wrapping using fmt %w and logging only useful context to avoid the measured CPU and memory overhead of excessive wrapping, uses error.Is and type assertions for comparisons instead of string matching, prefers returning errors over panic and shows using defer recover and os.Exit for graceful shutdown, advises strings.Builder and the stdlib strings package over + concatenation or custom joins for large workloads, and employs mutexes, context timeouts and a worker pool to limit goroutines and protect shared state.

AI-written summary · about

  1. 0:00Go anti-patterns intro
  2. 1:50Error handling in Go
  3. 5:49Panic usage in Go
  4. 8:51Error comparison techniques
  5. 11:07String handling pitfalls
  6. 14:34Intermission
  7. 16:40String concatenation performance
  8. 18:11Concurrency and shared state
  9. 20:23Context cancellation
  10. 21:12Channels for sequential processes
  11. 22:22Global state risks
  12. 25:22Generics in production
  13. 28:15Final thoughts
~/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.