Common Convention

Snake Case vs Camel Case
Camel case and snake case stand at opposite ends of the variable naming convention spectrum.
    When multiple words are used to form a variable, camel case joins those words together, without any white space, and delineates the start of each new word with a capital letter.
      In contrast, snake case uses an underscore between words to create separation. Variable names cannot contain spaces, which reduces readability when multiple words must be used to describe a variable's purpose. The underscore in a snake-cased variable tries to minimize this shortcoming.


      Snake case examples
      The following variable names follow the snake case naming convention:

      • this_is_snake_case
      • build_docker_image
      • run_javascript_function
      • call_python_method
      • ruby_loves_snake_case


      Camel case examples
      The following are examples of variables that use the camel case naming conventio

      • FileNotFoundException
      • toString
      • SpringBoot
      • TomcatServer
      • getJson

      Comments

      Popular posts from this blog

      Java : Variables Declaring

      SQL Self JOIN

      SwiftUI - BUTTON