Choose names that clearly express intent and follow established conventions. Prefer explicit, descriptive names over abbreviations or ambiguous terms. Align with platform-specific naming patterns and maintain consistency with existing codebase conventions.
Choose names that clearly express intent and follow established conventions. Prefer explicit, descriptive names over abbreviations or ambiguous terms. Align with platform-specific naming patterns and maintain consistency with existing codebase conventions.
Key guidelines:
BREADTH_FIRST
over BFS
)reifiedTypeParameters
for properties, getReifiedTypeParameters()
for functions in Kotlin)argumentType
instead of typeArgument
)child
instead of inner
)Example:
// Incorrect
enum class WalkAlgorithm {
BFS, // Abbreviated
DFS // Abbreviated
}
// Correct
enum class WalkAlgorithm {
BREADTH_FIRST, // Explicit
DEPTH_FIRST // Explicit
}
Enter the URL of a public GitHub repository