Created
December 7, 2012 10:36
-
-
Save bittercoder/4232393 to your computer and use it in GitHub Desktop.
Babysteps rules (with git hints)
This file contains hidden or 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
Grab git from here if you don't have it (and don't have another SCM you want to use instead): | |
http://git-scm.com/downloads | |
Initialize a git repository. | |
mkdir session3 | |
cd session3 | |
git init | |
... work for up to 3 minutes on a test and associated code, saving your code in the folder where you initialized the git repository. | |
If you get your test passing in under 3 minutes, then: | |
git add . | |
git commit -m "tests passing" | |
Otherwise, revert your local changes and remove all the unstaged files (doh!) | |
git clean -df & git checkout -- . | |
Once you have your tests passing, start the clock again and spend up to 3 minutes refactoring - if at the end your tests are still passing, commit, otherwise revert your refactoring. | |
Only while the clock is running do you get to discuss the problem, you can talk between timers, but not about the tests/implementation! | |
If you fail to complete the step, you must try again (so if you fail to complete refactoring in 3 minutes, revert changes, set the clock for 3 minutes, and repeat the refactoring step again,, don't skip to implementing your next test). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment