Select Page

Programming naming conventions (explained by a snake)

Cyberdime
Published: January 15, 2023

Snek: Unless you swallow the whole thing, which makes things a whole lot worse.

kebab-case is a variable naming convention where each word is in lower case, and separated by dashes. It is also known as dash-case, list-case, or spinal-case.

Examples: first-name, transactions-made, kebabs-eaten-today.

Commonly used in: COBOL, Lisp, Perl 6, CSS class names, HTML ids, Java and JavaScript REST endpoints.

If it’s your favorite case, what it says about you: You like alternative music over mainstream music, you probably work with websites, and now you’re hungry. Thanks, article.

Source: www.pluralsight.com