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)