~/talk

Things in Go I Never Use

Talkat GothamGo 2018 · on Friday, 2018-04-27· [go]
name:Mat Ryer
github:matryer
slides:none on file

Argues that actual code wins: avoid goto and labels except tiny local loops, prefer slices over arrays and skip premature capacity tuning, never use new — use literals, avoid panic in favor of returned errors (panic only to improve an already panicking message), flip ifs to eliminate else and keep the happy path, prefer http.HandlerFunc with lazy init via sync.Once for template setup, and never rely on unnamed struct-literal order or magic numeric capacities.

AI-written summary · about

  1. 0:00Introduction
  2. 2:10Unused Go features
  3. 7:28Go keywords I never use
  4. 10:48Avoiding else and labels
  5. 12:57Why avoid new and arrays
  6. 16:15Panics as errors
  7. 17:46Unnamed struct fields
  8. 19:57Prefering http.HandlerFunc
  9. 21:50Simplicity over sugar
  10. 23:38Invitation to Go devs
~/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.