in reply to Formatting variables
all lower case with an underscore sometimes between words
This is called snake case.
capitalising the first letter of each word other than the first
This is called camel case.
I'm wondering how you do it, why you do it that way and if you think it matter a great deal.
I use snake case because it is more legible to me. It doesn't matter overly so long as you are consistent within any one body of code.
🦛
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Formatting variable names
by stevieb (Canon) on Nov 29, 2020 at 15:32 UTC | |
|
Re^2: Formatting variable names
by Bod (Parson) on Nov 29, 2020 at 13:32 UTC | |
by davido (Cardinal) on Nov 30, 2020 at 03:51 UTC | |
by Bod (Parson) on Nov 30, 2020 at 17:30 UTC |