DEV Community

Discussion on: How JavaScript Variables Should Be Named

Collapse
fasani profile image
Michael Fasani

That may seem logical but perhaps not true, there was a research paper which showed:

An empirical study of 135 programmers and non-programmers was conducted to better understand the impact of identifier style on code readability. The experiment builds on past work of others who study how readers of natural language perform such tasks. Results indicate that camel casing leads to higher accuracy among all subjects regardless of training, and those trained in camel casing are able to recognize identifiers in the camel case style faster than identifiers in the underscore style.

cs.loyola.edu/~binkley/papers/icpc...

Collapse
ama profile image
Adrian Matei

Use what suits you best and be consistent...