DEV Community

Discussion on: under_scores, camelCase and PascalCase - The three naming conventions every programmer should be aware of

Collapse
 
ovais profile image
Mohd Ovais

I believe it widely known as Kebab Case (kebab-case) instead of Underscore.

Collapse
 
prahladyeri profile image
Prahlad Yeri • Edited

No, kebab case is different. Its the dash or hyphenated case, so dashes are used instead of underscores (to-string instead of to_string). The only place where kebab case is used is perhaps css class names (main-div, navbar-div, etc.).

The popular name for underscore case is in fact, snake case.

Collapse
 
ovais profile image
Mohd Ovais

My bad, you are correct!

Collapse
 
mpmiszczyk profile image
mar

/kebab case/ as you call it is defacto standard naming convention in all Lisp's, starting room Scheme, trough Common Lisp, up to Clojure. It is phenomenon older than C and still going strong with her and current implementations.