Skip to main content

Naming Conventions

Naming conventions are critical for maintaining clarity, consistency, and readability in software development. They provide a standardized approach to naming variables, functions, classes, and other components, making code easier to understand, navigate, and maintain. Consistent naming reduces cognitive load, minimizes errors, and promotes collaboration across teams. This section outlines best practices for naming conventions, ensuring alignment with architectural patterns and organizational standards. By adhering to these guidelines, teams can build systems that are intuitive and self-documenting.

Example do's and dont's:

getUserById()
Clearly describes the purpose of the function
gubid()
Ambiguous and does not convey purpose
transaction_outbox_table
Uses snake_case for database table names
table1
Generic and uninformative database table name.
is_active
Boolean variable with a clear meaning
temp
Vague variable name without context.
orderQueue
Descriptive camelCase for messaging components
generic
Lacks specificity in identifying the purpose as well as protocol