~/talk

Workshop: Practical Go

Talkat GopherCon Singapore 2019 · on Friday, 2019-05-03· [go]
slides:none on file

Workshop lays out concrete rules: prefer use interfaces for behavior not concrete types, keep packages as the unit of encapsulation and avoid global state (use internal/constructors instead), prefer zero-values and clear var/:= choices, replace repetitive error checks with helpers like an error-writer or bufio.Scanner, and write table-driven subtests plus go-cmp diffs for failing cases. Examples include the kencc compiler rewrite, mention of 981 hours spent on a book, and practical tool guidance: go vet, go fmt, go test, and modules.

AI-written summary · about

  1. 0:00Workshop introduction
  2. 1:04Origins of the workshop
  3. 12:47Identifiers and naming
  4. 25:23Comments and documentation
  5. 48:44Functions and readability
  6. 1:12:47Package design principles
  7. 1:34:59Projects and libraries
  8. 2:01:06API design best practices
  9. 2:37:24Error handling fundamentals
  10. 3:01:03Reducing error handling
  11. 3:16:01Table-driven tests
  12. 3:35:04Q&A session
~/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.