0

CamelCase? snake_case? Something else? And why?

top 3 comments
sorted by: hot top new old
[-] vodnik@lemmy.world 1 points 3 years ago

I really like kebab-case, because I’m a lisp aficionado

[-] t_var_s@lemmy.ml 1 points 5 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.

[-] yogthos@lemmy.ml 0 points 5 years ago

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

this post was submitted on 07 Feb 2021
0 points (NaN% liked)

General Programming Discussion

10018 readers
10 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 7 years ago
MODERATORS