DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Snake Case or Camel Case? A Guide to Programming Naming Conventions

2 years ago blog.boot.dev

Summary: This is a summary of an article originally published by the source. Read the full original article here →

The following names are all valid variable names in nearly every programming language: dogName dog_name dog-name Snake case, also known as “underscore case,” uses underscores to separate words in a variable or function name.

Like camel case, Pascal case can be harder to read than snake case because of the lack of separators between words.

Some programmers prefer Pascal case for this reason, while others find it less readable than camel case or snake case.

However, some programming languages do not allow hyphens in variable names, so you may need to use a different naming convention if you’re working in one of these languages.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com