I've been reading Code Complete lately, based off of many references here and also by a friend, and had a naming question for the community. Should the prefix "Is" be used on boolean methods that determine whether an event was successful? Here is a code example of two different naming schemes I tried:
migrationSuccessful = CopyData();
if (VerifyCopyData())
migrationSuccessful = CleanupData();
versus:
migrationSuccessful = CopyData();
if (IsDataCopied())
migrationSuccessful = CleanupData();
Notice the difference between VerifyCopyData and IsDataCopied. To me IsDataCopied is more meaningful and makes the code flow in a more descriptive pattern.
Thanks for your thoughts!
EDIT: Based on some of the comments, I thought I'd clarify what the IsDataCopied method does. It loops through several directories and files and makes sure the source and destination directory/files match.