CamelCase? snake_case? Something else? And why?

  • @Vorthas@lemmy.ml
    link
    fedilink
    111 months ago

    PascalCase or camelCase (note the capitalization of the first letter, that’s the difference between the two) basically always.

  • @t_var_s@lemmy.ml
    link
    fedilink
    13 years ago

    snake_case for variable names because they seem to be holding something in their underscores. camelCase for functions because verbNoun looks good. PascalCase for classes because it looks like it’s a level above that needs to be instantiated before getting used.

  • ☆ Yσɠƚԋσʂ ☆
    link
    fedilink
    -13 years ago

    Kebab case hands down, it’s as readable as snake case, but easier to type. Unfortunately, it’s rarely seen outside Lisps.