Create Searchable Names

April 1, 2020 ยท View on GitHub

You will always use tools to do code lookup (grep, ack, GitHub).

Making them easier to find, increases their visibility.

Example: "unshareable" vs "unsharable"

Neither "unshareable" or "unsharable" are real English words.

unshareable:

unsharable:

Resolution: chose "unshareable"

  • Visually looks correct
  • Can be found when searching for "share"

References

  • Clean Code: Meaningful Names > Use Searchable Names