Damus
Yo Soy Freeman · 14w
I just read the source code of a quite popular software and variables have no casing, like at all. thisisavariable i feel fear and respect for that person I see your game
Raptor :gamedev: profile picture
@nprofile1q... that's how I do it, II reserve casing for functions, definitions, classes, namespaces, etc. It helps to visually distinguish at a glance. I use underscore separators if needed for variable names.

specifically

ALL CAPS + snake case: macro/definitions/namespaces (eg. #define MAX_PRECISION 0.01)

all lower + snake case: variables, primitive typedefs (eg. fs::path default_config_path)

PascalCase: classes, structures, enums (eg. class ConfigFile)
1
Leonardo Giovanni Scur · 14w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq5lcwu7hqcyulkhs8ng4p93k3qfn7pmr5we8datmg3ppka0eksn6s7g68k2 nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq4yqjkzqkgv4a27egvq5xmh2ravemytg9g5kldqeqfts92uvh90sqq9wq0y but if I get ir right freeman is talking about the software having neith...