Do not repeat the resource name in identifier names. This form of stuttering makes code less readable and inconsistent. Instead, use simple, descriptive identifiers without redundancy.
Do not repeat the resource name in identifier names. This form of stuttering makes code less readable and inconsistent. Instead, use simple, descriptive identifiers without redundancy.
For example:
Id
instead of VpnGatewayId
for a VpnGateway resourceName
instead of ReportName
for a ReportDefinition resourceWhen necessary, include a memberName
attribute to map the simplified identifier to the actual API field name:
"identifiers": [
{
"name": "Id",
"memberName": "VpnGatewayId"
}
]
This approach creates more concise and consistent identifiers throughout the codebase while maintaining the correct mapping to external API representations.
Enter the URL of a public GitHub repository