Snake and Camel Case Formatter
Format Snake Case to Camel Case or Vice Versa
Snake and Camel Case Formatter
What is Snake Case ?
Words or phrases in which the elements are separated by one underscore character _
such as snake_case
.
What is Camel Case ?
Words or phrases in which each word in the middle of the phrase begins with a capital letter such as camelCase
.
Usage of Snake Case and Camel Case.
Snake Case often found in Python (programming language) code as recommended naming styles, they refer it as lower_case_with_underscores
.
Camel Case often found in many programming language, such as Java, Golang, and C. This case save more space compared to Snake Case, but Snake Case has better readibility.
Example
- Snake case
get_long_array
have camel case ofgetLongArray
- Snake case
smart_monkey
have camel case ofsmartMonkey