AI Snips
Chapters
Transcript
Episode notes
Avoid Naked Returns
- Avoid naked returns (using "return" without values) in Go functions.
- Use explicit return values for clarity and to avoid potential bugs, even with named returns.
Decorated Comments Annoyance
- Carl Johnson finds overly decorated comments (with ASCII art, stars, etc.) annoying.
- Changing these comments is tedious as they become uneven, which outweighs their visual appeal.
Avoid Panics
- Avoid panics in production Go code.
- Handle errors gracefully instead, reserving panics for unrecoverable programmer errors.


