Go Time: Golang, Software Engineering

Go code organization best practices

23 snips
Apr 14, 2022
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Premature Abstraction

  • Avoid premature organization and abstraction.
  • Start with a single package and refactor as needed, following the rule of three.
ADVICE

Copy/Paste Over Bad Abstractions

  • Copy and paste code multiple times rather than create bad abstractions.
  • Add abstractions later if necessary, as removing them is harder.
INSIGHT

Package Naming Heuristic

  • A good package name indicates reusability.
  • Avoid long, convoluted package names; keep code where needed.
Get the Snipd Podcast app to discover more snips from this episode
Get the app