Skip to content

Instantly share code, notes, and snippets.

@gardner
Last active October 16, 2026 00:47
Show Gist options
  • Select an option

  • Save gardner/b8a5c1b3f9179777755ee4bf36fe3a09 to your computer and use it in GitHub Desktop.

Select an option

Save gardner/b8a5c1b3f9179777755ee4bf36fe3a09 to your computer and use it in GitHub Desktop.

Package Managers

Use uv run main.py Use uv add <dependency> to always get the latest version

Perfer pnpm instead of npm where possible.

Static Code Analysis

To ensure code quality stays high and readable: Use strong types, code formatting, max-lines-per-file, and complexity detection. See: https://gist.github.com/gardner/22f2fb13cf2103f7a0197437dfa71bc8

IMPORTANT

  • Use TDD "Red, green, refactor" where possible. WRITE THE FAILING TESTS FIRST.
  • Optimize for code readability and long-term maintenance.
  • Write simple yet powerful code.
  • Keep things elegant.
  • Please make descriptive commits at reasonable intervals.
  • Conduct a code review at the end of a large work slice and resolve any issues identified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment