Choose names that lead with their primary purpose or category, followed by specific details. This makes code more discoverable and self-documenting by grouping related items and clearly conveying intent.
Choose names that lead with their primary purpose or category, followed by specific details. This makes code more discoverable and self-documenting by grouping related items and clearly conveying intent.
Key guidelines:
Example:
// Less clear:
func sanitizeGrpcHeaderValue(value string) string {}
func dashboardImageSharing() {}
// More clear:
func sanitizeHTTPHeaderValueForGRPC(value string) string {}
func sharingDashboardImage() {}
This pattern helps when:
Enter the URL of a public GitHub repository