Skip to content

Instantly share code, notes, and snippets.

@chadwhitacre
Created September 28, 2012 13:39
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 chadwhitacre/3799912 to your computer and use it in GitHub Desktop.
Save chadwhitacre/3799912 to your computer and use it in GitHub Desktop.
Crutches for when you're stuck
=================
Don't Forget To
=================
0. Test often. Test after every little change.
1. Listen to music.
2. Drink coffee.
3. Do chores.
=========
Process
=========
0. Write a bug report.
1. Browse to the point of failure in the source code.
2. Do science.
a) Make a hypothesis about what is wrong.
b) Devise an experiment to test the hypothesis.
i. console.log(); print
ii. debugger; import pdb; pdb.set_trace()
c) Conduct the experiment.
d) Analyze the result.
e) Repeat until a fixable problem has been discovered.
3. Fix the problem.
4. Clean up and commit.
============
BUG REPORT
============
STEPS TO REPRODUCE
------------------
EXPECTED RESULT
---------------
ACTUAL RESULT
-------------
=========
SCIENCE
=========
HYPOTHESIS:
EXPERIMENT:
RESULT:
ANALYSIS:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment