Consistency

Consistency means writing code that follows predictable patterns, standards, and conventions across a project or team. The reference may be public, and available throughout the community, or local, and specific to a project or a team.

Consistency ensures that:

  • Code behaves the same way in similar situations

  • Style and structure are uniform, making it easier to read and maintain

  • Team members can collaborate without confusion.

Related : Coding Conventions, Code Smell, Quality