Prompt
Choose names that reflect the semantic purpose rather than implementation details or temporal characteristics. Names should be consistent across the codebase and accurately represent their usage.
Key guidelines:
- Use semantic names that describe the purpose rather than implementation
- Maintain consistent naming patterns across related code
- Ensure type/interface names accurately reflect their usage
- Avoid encoding temporal or mutable characteristics in names
Example - Good:
// Semantic name reflecting purpose
const labelArchiveDelayed = "label_archive_delayed";
type EmailSummaryResult = z.infer<typeof schema>;
interface Message {
date: Date; // Required if always needed
}
Example - Avoid:
// Names tied to implementation details
const labelArchive1Week = "label_archive_1_week";
type AICheckResult = z.infer<typeof schema>; // Misleading purpose
interface Message {
date?: Date; // Optional despite being required
}