Skip to content

Clean Code

Meaningful Names

From Clean Code Ch.2.

  • use intention-revealing names
  • avoid disinformation
  • make meaningful distinctions
  • use pronounceable names
  • use searchable names
  • avoid encodings
  • avoid mental mapping
  • don't be cute
  • pick one word per concept
  • don't pun
  • use solution domain names
  • use problem domain names (when you cannot use solution domain)
  • don't add gratuitous context