Naming: conflicting rules

When you have conflicting rules, you must take the following priorities:

  • first, you apply the rules of the community/ecosystem
  • then, the rules of the company/project
  • then, you own rules

Examples:

  • MyComponent.class and not My_Component.class assuming the language is Java
  • snake_case instead of kebab-case when naming files in the documentation of a project assuming it is applied to your company or this project