3

This side question bothers me: Has_This_Case_A_Name?


Here is what I could find, but This_Case_Is_Missing:

+---------------------------------------+---------------+
|                 Names                 |    Example    |
+---------------------------------------+---------------+
| camelCase, lowerCamelCase             | thisIsACat    |
| UpperCamelCase, PascalCase, BumpyCase | ThisIsACat    |
+---------------------------------------+---------------+
| kebab-case, spinal-case, lisp-case    | this-is-a-cat |
| COBOL-CASE                            | THIS-IS-A-CAT |
| Train-Case                            | This-Is-A-Cat |
+---------------------------------------+---------------+
| snake_case                            | this_is_a_cat |
| SCREAMING_SNAKE_CASE, MACRO_CASE      | THIS_IS_A_CAT |
| ???                                   | This_Is_A_Cat |
+---------------------------------------+---------------+

Sources:

8
  • 1
    I've never heard of a name for the last case in 30 years of programming. But then I've also never heard of "snake case" or "train case". Jun 16, 2016 at 8:28
  • 4
    Since most of those names are made up and not actually used by a majority of programmers, feel free to make up another. Jun 16, 2016 at 8:31
  • 7
    Looking at the train case, you should call it the subway_case. Jun 16, 2016 at 8:34
  • 7
    @SteveChamaillard, it's more a big snake case, so Dragon_Case. Jun 16, 2016 at 8:49
  • 2
    Whilst you are at it, perhaps you could find/dream up a name for the unit test convention of using the form ForSomeSetup_WithATransaction_TheResultShouldBe, ie mixing _ with PascalCase.
    – David Arno
    Jun 16, 2016 at 9:34

1 Answer 1

7

This case is used in the programming language ADA:

WikiWand - Naming Convention # ADA

This convention is known as Mixed_Case_With_Underscores or Ada_Case.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.