~/talk

Java Devs Go! the Wrong Way 7 Times

links:none on file
slides:none on file

Seven concrete migration mistakes from Java to Go, with fixes and numbers: treating every error like an exception is wrong — return errors as values, reserve panic for unrecoverable cases; pointer misuse requires dereferencing and assigning to struct fields, not reassigning addresses; avoid Java-style getters/setters and needless pointer receivers; stop faking inheritance — prefer interfaces and composition; don’t call runtime.Gosched or copy Java threading idioms, use channels; using buffered channels cuts the example runtime from 10s to 5s.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:29Treating errors as exceptions
  3. 4:36Misusing pointers
  4. 5:41Overusing OOP design
  5. 7:50Imposing Java inheritance
  6. 9:39Misusing goroutines
  7. 10:43Java concurrency patterns
  8. 12:06Inadequate channel understanding
  9. 13:54Closing and resources
~/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.