It's Christmas Eve 🎅 you've been working hard to help Santa prepare. You've written and refactored a lot of code.
Now you're wondering whether Santa will call on your services next year.
To be sure, you decide to make yourself indispensable by applying the
CDD
(Crappy-Driven Development) technique to the most critical code used to manage the delivery of toys.
Apply CDD
to make the code so crappy that no one will be able to understand it...
Follow the golden rules described below:
To be sure to work in baby steps and apply only one crappy idea at a time, we propose to use TCR
: Test && Commit || Revert
workflow.
We can automate commit
and revert
by using murex
TCR tool.
Documentation available here
We mix CDD
and TCR
for this exercise:
Here is the technique detailed:
You can run tcr
tool with this command:
./tcrw
Create a branch before running it:
Enjoy 🤗