Ensure consistent terminology and naming conventions across the entire codebase. Use the same identifier names for the same concepts throughout all modules, files, and APIs. Avoid defining the same logical entity with different names in different places.
Ensure consistent terminology and naming conventions across the entire codebase. Use the same identifier names for the same concepts throughout all modules, files, and APIs. Avoid defining the same logical entity with different names in different places.
Key principles:
Example of inconsistent naming to avoid:
// Bad: Same concept with different names
const recipient = $page.url.searchParams.get("receiver")
const transferHash = await unionClient.transferAsset({
recipient: $recipient // Should be "receiver" to match URL param
})
// Good: Consistent naming
const receiver = $page.url.searchParams.get("receiver")
const transferHash = await unionClient.transferAsset({
receiver: $receiver
})
This prevents confusion, reduces cognitive load, and makes the codebase more maintainable by ensuring developers can rely on consistent naming patterns.
Enter the URL of a public GitHub repository