Naming Conventions
Nhan Nguyen
Posted on 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
π πͺ π
π©
Nhan Nguyen
Posted on May 9, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.