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
Top comments (0)