Skip to content
Learn with RV – Tech Blog
Learn with RV – Tech Blog

#testautomation #qa #programming #linux #devops

  • Home
  • Who am I?
  • 1-on-1 Mentoring
  • Test Automation Incubator
  • 24 Testimonials
  • YouTube
  • LinkedIn
  • Contact
Learn with RV – Tech Blog

#testautomation #qa #programming #linux #devops

naming-conventions
September 5, 2023September 27, 2024

Camel Case vs. Snake Case vs. Pascal Case vs. Kebab Case — Naming Conventions

Naming things when coding can be challenging when you have different naming conventions available (set of rules used for naming entities). These conventions are essential for code readability and maintainability.

In this article, I will explain the differences between the most widely used case types in programming.

When choosing a case style, keep in mind the best practices of the programming language you are using in your project and it is also very important to be consistent.

Camel Case

Start with the first word lowercase, then capitalize the first letter of each word that follows.

e.g. firstName 

Pascal Case

Start with the first word letter uppercase, then capitalize the first letter of each word that follows.

e.g. FirstName

Note: Pascal Case is usually used for naming classes

Snake Case

Separate each word with an underscore character (_)

e.g. first_name

Kebab Case

Separate each word with a dash character (-)

e.g. first-name

 

Commonly used for URLs or CSS class names

Conclusion

naming

Enjoyed this article? Make sure to subscribe to my YouTube Channel for more Test Automation tutorials, and follow me on LinkedIn and Twitter for regular insights.
Looking to accelerate your test automation journey?
I’ve designed a personalized 1-on-1 mentoring program tailored to boost your skills. Reach out at iamqarv@gmail.com for more details 🚀

Post Views: 514

Related

Share this article:
Programming

Post navigation

Previous post
Next post

Recent Posts

  • Understanding /* vs /** Patterns
  • NodeJS v20 added native support for reading environment variables
  • ‘selectors’ vs. ‘locators’ – what is the difference?
  • Internationalization (i18n) – in test automation
  • Appium v3 is here: essential changes

Recent Comments

  1. Paul on Web Accessibility: A step-by-step guide to Testing with pa11y
  2. Automated Tests for website Accessibility with Axe and TestCafe - Learn with RV - Tech Blog on How to generate E2E TestCafe Framework in seconds
  3. RV on Exploring Faker.js: A Powerful Tool for Generating Realistic Random Test Data
  4. Adrian Maciuc on Exploring Faker.js: A Powerful Tool for Generating Realistic Random Test Data
  5. Nick on Cypress vs Playwright vs Testcafe – which framework is faster?

Archives

  • February 2026
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • March 2025
  • February 2025
  • January 2025
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023

Categories

  • Linux
  • Programming
  • QA
  • Tools
  • Uncategorized
©2026 Learn with RV – Tech Blog | WordPress Theme by SuperbThemes