Choose names that clearly communicate purpose and scope rather than generic or overly broad terms. Names should be specific enough to accommodate future variants and descriptive enough to indicate their function without requiring additional context.
Choose names that clearly communicate purpose and scope rather than generic or overly broad terms. Names should be specific enough to accommodate future variants and descriptive enough to indicate their function without requiring additional context.
Avoid generic package names like “util” in favor of descriptive ones that indicate the specific functionality. When naming themes, configurations, or variants, include distinguishing characteristics to prevent conflicts with future additions.
Examples:
RegisterTheme("catppuccin", ...)
use RegisterTheme("catppuccin-mocha", ...)
to accommodate other Catppuccin variantsutil.NewFocusTracker()
use focus.NewTracker()
where the package name describes its purposeThis approach improves code maintainability, reduces naming conflicts, and makes the codebase more self-documenting.
Enter the URL of a public GitHub repository