Snake case
, which uses snake case for identifiers Snake case (sometimes stylized autologically as snake_case) is the naming convention in which each space is replaced with an underscore (_) character, and words are written in all lower case.[src] It is a commonly used naming convention in computing, for example for variable and subroutine names, and for filenames.[src] One study has found that readers can recognize snake case values more quickly than camel case.[src] However, "subjects were trained mainly in the underscore style", so the possibility of bias cannot be eliminated.[src] A variation is screaming snake case, where words are written in all caps (stylized as SCREAMING_SNAKE_CASE).[src] This convention is used for constants in programming languages like C/C++, Python, Java, PHP, as well as for environment variables.[src]
, which uses snake case for identifiers Snake case (sometimes stylized autologically as snake_case) is the naming convention in which each space is replaced with an underscore (_) character, and words are written in all lower case.[src] It is a commonly used naming convention in computing, for example for variable and subroutine names, and for filenames.[src] One study has found that readers can recognize snake case values more quickly than camel case.[src] However, "subjects were trained mainly in the underscore style", so the possibility of bias cannot be eliminated.[src] A variation is screaming snake case, where words are written in all caps (stylized as SCREAMING_SNAKE_CASE).[src] This convention is used for constants in programming languages like C/C++, Python, Java, PHP, as well as for environment variables.[src] ==See also== Camel case, more common in Java and C# Kebab case, with hyphens instead of underscores, more common in COBOL and LISP Naming convention (programming) ==References== ==External links== Snake case converter[src]
13 sentences · 13 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Snake case." encyclopegia.org, 2026, https://encyclopegia.org/wiki/snake-case. Accessed 27 November 2026.
Chicago
"Snake case." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/snake-case.
APA
encyclopegia.org. (2026). Snake case. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/snake-case
Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON