DEV Community

Nhan Nguyen
Nhan Nguyen

Posted on

Naming Conventions

Let's embark on a journey to explore where to employ conventions effectively:

āž– PascalCase šŸ‘‰ Classes and Methods

āž– camelCase šŸ‘‰ variable and function names

āž– snake_case šŸ‘‰ file names and variable identifiers

āž– kebab-case šŸ‘‰ HTML attributes and CSS classes

āž– UPPERCASE šŸ‘‰ CONSTANTS and ENUMERATIONS

āž– UPPER_SNAKE_CASE šŸ‘‰ CONSTANTS and ENVIRONMENT_VARIABLES

By understanding where each convention thrives, we empower ourselves to craft code that functions flawlessly and communicates with elegance and finesse.


I hope you found it helpful. Thanks for reading. šŸ™

Let's get connected! You can find me on:

Top comments (0)