HomeDigital Marketing

Available Naming Convention

Like Tweet Pin it Share Share Email

It is part of best practice to follow a standard across organization/company to keep things on same page.

Following a standard is always good in terms or readability and look too.

My personal choice is camelCase or PascalCase but there are many from where you can choose and follow. Refer to the table below.

FormattingNames
twowordsflat case
TWOWORDSupper flat case
twoWords(lower) camelCase, dromedaryCase
twoWordscamelCase
TwoWordsPascalCase,Upper Camel Case,StudlyCase
two_wordssnake_case, pothole_case
TWO_WORDSSCREAMING_SNAKE_CASE, MACRO_CASE, CONSTANT_CASE
two_Wordscamel_Snake_Case
Two_WordsPascal_Snake_Case
two-wordskebab-case, dash-case, lisp-case
two|wordsdoner|case
TWO-WORDSTRAIN-CASE, COBOL-CASE, SCREAMING-KEBAB-CASE
Two-WordsTrain-Case,HTTP-Header-Case
Multiple-word identifier formats

Feel free to share your thought in comment section below which one you prefer and why?

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.