Topics

On this page

Last updated on Oct 23, 2024

Naming Convention Best Practices

Consistency in naming conventions is crucial across projects to enhance readability and maintainability. Here’s a structured approach to naming files and directories in a way that aligns with common standards while keeping the design consistent.

General Principles

PHP Files

JavaScript Files

CSS/SCSS Files

Block-specific Files

Template Files

Include Files

Asset Files (Images, Fonts, etc.)

Configuration Files

Version Control and Deployment Files

Documentation Files

Localization Files

Database Migration Files

By adhering to these naming conventions, developers can create a coherent structure that improves collaboration, code readability, and maintainability across projects.


Contributor

Shreya Agarwal

Shreya

Shreya Agarwal

Not Available