<commit_before>---
layout: section
title: How to Verify and Validate Research Code as You Work
---


Warmup discussion:

Validation v. Verification
How to test "correctness."
Why allow user error v. Writing highly detailed API? 

Testing

Before you compile:











Testing vs validation vs debugging.

Testing as a way to translate "this code does..." into formal description.  Thinking
with the end product in mind.

Debugging approaches.  Particularly, using IDE in browse mode.

Validating inputs - again, as a way of describe what code does.  Validation can
be thought of as documenting input parameters for a function.

How to have testing code integrated in source and not interfere w/ running.

All this in research setting, when outcomes often not explicitly specified.  How
to do testing given stochastic components.<commit_msg>Update testing.md<commit_after>---
layout: section
title: How to Verify and Validate Research Code as You Work
---


##Warmup discussion:

 - Validation v. Verification
 - How to test "correctness."
 - Why allow user error v. Writing highly detailed API? 

##Testing:

##Before you compile:











Testing vs validation vs debugging.

Testing as a way to translate "this code does..." into formal description.  Thinking
with the end product in mind.

Debugging approaches.  Particularly, using IDE in browse mode.

Validating inputs - again, as a way of describe what code does.  Validation can
be thought of as documenting input parameters for a function.

How to have testing code integrated in source and not interfere w/ running.

All this in research setting, when outcomes often not explicitly specified.  How
to do testing given stochastic components.
{'fraction_non_alphanumeric': 0.052230046948356805, 'fraction_numerical': 0.0, 'mean_word_length': 3.7625698324022347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3591433', 'n_tokens_mistral': 427, 'n_tokens_neox': 404, 'n_words': 244}