Skip to content

Instantly share code, notes, and snippets.

@dhl
Created October 24, 2018 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhl/c394c8f23fec4b85b66c1a0bed34bca8 to your computer and use it in GitHub Desktop.
Save dhl/c394c8f23fec4b85b66c1a0bed34bca8 to your computer and use it in GitHub Desktop.

Naming Conventions in Code

Verify

Tests if some subject (object or data) passes the correctness definition for some type. Returns true if the test passes, and false otherwise.

Validate

Tests if some subject (object or data) passes the correctness definition for some type. Throws an exception if the subject did not pass the test. The test is not required to return any meainingful value if the test pases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment