Naming Conventions
May 9, 2024
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:
- Medium: https://medium.com/@nhannguyendevjs/
- Dev: https://dev.to/nhannguyendevjs/
- Hashnode: https://nhannguyen.hashnode.dev/
- Linkedin: https://www.linkedin.com/in/nhannguyendevjs/
- X (formerly Twitter): https://twitter.com/nhannguyendevjs/
- Buy Me a Coffee: https://www.buymeacoffee.com/nhannguyendevjs