DEV Community


Discussion on: Do you have a process for naming things?

jeikabu profile image
jeikabu • Edited
  • Follow existing convention where reasonable, otherwise pick something sane (IDE default, defacto standard for the language/framework, etc.)
  • Most obvious/expected, not too generic or clever or obscenelylongeither
  • Consideration proportional to visibility (public API is important, locals/privates less so)
  • Should be enforced by IDE/tooling, not long list of arcane rules nobody remembers
  • Avoid duplicating language features: namespaces, variable types, etc.
  • Remain open to renaming/refactoring