Ensure consistent naming patterns across related components and configurations. When naming properties, methods, or identifiers that relate to the same concept, use the same form (singular/plural, casing, terminology) throughout the codebase.
Ensure consistent naming patterns across related components and configurations. When naming properties, methods, or identifiers that relate to the same concept, use the same form (singular/plural, casing, terminology) throughout the codebase.
This prevents confusion and maintains predictability for developers working with related features. Inconsistent naming can lead to errors and makes the API harder to learn and use.
Example of inconsistent naming to avoid:
# Inconsistent - mixing singular and plural forms
provider:
websockets: # plural form
useProviderTags: true
functions:
handler:
events:
- websocket: # singular form (event name)
Correct approach:
# Consistent - using singular form throughout
provider:
websocket: # matches the event name
useProviderTags: true
functions:
handler:
events:
- websocket: # singular form (event name)
Always check that related components use consistent naming conventions, especially when they reference the same underlying concept or feature.
Enter the URL of a public GitHub repository