Created
September 28, 2012 13:39
-
-
Save chadwhitacre/3799912 to your computer and use it in GitHub Desktop.
Crutches for when you're stuck
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================= | |
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