Skip to content

Instantly share code, notes, and snippets.

@wdhowe
Last active April 11, 2021 03:17
Show Gist options
  • Save wdhowe/f2a7a697cb96e0665e046c4a89610fac to your computer and use it in GitHub Desktop.
Save wdhowe/f2a7a697cb96e0665e046c4a89610fac to your computer and use it in GitHub Desktop.
debugging

Debugging

Notes from watching Stuart Halloway's "Debugging with the Scientific Method" from Clojure/conj 2015.

Overview

Clear problem statement: steps you took, what you expected, what actually happened.

Efficient hypothesis: bisect the problem.

Good experiments: reproducible, driven by hypothesis, small, change one thing.

Useful observations: understand all outputs, suspect correlations, use good tools.

Read the entire manual.

Write everything down

  • Problem statement
  • Hypothesis
  • What experiment should show
  • Why experiment even makes sense
  • Observations

Summary

Made Easy

  • Make a plan.
  • Write it down.
  • Do one thing at a time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment