DEV Community

Nhan Nguyen
Nhan Nguyen

Posted on

2

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:

šŸ‘‹ While you are here

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

šŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay