~/talk

Refactoring Go in Large Codebases

Talkat GopherCon Europe 2025 · 2025-06-16..06-19· [go, software-architecture]
slides:none on file

Argues against rewrites with three concrete reasons: hidden migration and maintenance cost, production edge cases encoded in messy code, and learning-new-tech risk that delays delivery. Lays out a systematic refactor checklist: add characterization tests, normalize error handling, break large interfaces, narrow dependencies with dependency injection, split API and DB models, and extract mutable business rules into services. Prioritizes work by impact versus effort and shows automation with the GitHub Copilot coding agent to create PRs for test coverage, error standardization, and mock-library swaps.

AI-written summary · about

  1. 0:00Introduction
  2. 2:55Why refactor, not rewrite
  3. 7:30Systematic refactoring
  4. 16:31Prioritizing technical debt
  5. 18:22Using AI for refactoring
  6. 21:45Recap and conclusion
~/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.