Create Searchable Names

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

Last updated