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

General Programming Discussion

7709 readers
1 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 5 years ago
MODERATORS
 

CamelCase? snake_case? Something else? And why?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 3 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.