Code Naming Conventions

The cluster focuses on debates and preferences for programming identifier naming styles, including camelCase, snake_case, kebab-case, Hungarian notation, and related conventions like prefixes for members or parameters.

📉 Falling 0.4x Programming Languages
3,379
Comments
20
Years Active
5
Top Authors
#619
Topic ID

Activity Over Time

2007
2
2008
12
2009
61
2010
75
2011
120
2012
207
2013
204
2014
142
2015
232
2016
204
2017
163
2018
209
2019
195
2020
195
2021
246
2022
246
2023
389
2024
245
2025
226
2026
6

Keywords

e.g PHP US IMHO ctx.arc SICP ctx.fill summary.html math.pi ORM hungarian notation ben naming identifiers fog code writing writing code idiom

Sample Comments

jp_sc • Jun 29, 2009 • View on HN

This is a case when "Hungarian Notation" is the solution.

MaysonL • Jan 24, 2013 • View on HN

That's Hungarian notation

skohan • Nov 11, 2021 • View on HN

What's wrong with camelCase? It's easier to type than snake

jjgreen • Jul 2, 2023 • View on HN

Perhaps try snake-case naming? [ducks for cover]

rezaprima • Feb 17, 2023 • View on HN

Another correct way to use Hungarian Notation, according to (iirc) Joel Spolsky

jgalt212 • Jul 25, 2021 • View on HN

How do you feel about Hungarian notation?

simonbrown • Feb 26, 2012 • View on HN

What's wrong with CamelCase names?

nick_ • Feb 9, 2025 • View on HN

Why is snake_case recommended? What advantage(s) does it provide?

moomin • Mar 7, 2014 • View on HN

Suspect they meant hungarian notation.

dc-programmer • Dec 15, 2021 • View on HN

Hungarian notation is what I was thinking of