• RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Classes often have camelCase or PascalCase. Snake cases often are for variables or functions.

    I don’t remember the java standards, but it’s enough to get it

    • bassomitron@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      7 months ago

      In college and workplace, all java projects I ever worked with used camelCase. Whether that’s the official stance of Java or not, I don’t recall.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      The Java standard is ClassName, variableName, FINAL_VALUE_NAME.

      It’s derived from a popular C++ standard. (But C++ has many for you to pick.)

      Python is the one that likes snake_case, but it’s for variables, as you said. Classes are still PascalCase.

    • Cosmic Cleric@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      When you’re telling a joke to a bunch of computer programmer nerds, you got to tell them what programming language the joke is in, or else it just falls flat.