Skip to content

Commit

Permalink
Add a tips+tricks section with a suggestion from Gordon Worley III
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Sep 27, 2011
1 parent 6ace78e commit 37dad80
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sections/tips_and_tricks.pod
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

=head1 Tips And Tricks

Z<tips_and_tricks>
X<tips_and_tricks>

=head2 Fake It Until You Make It TDD

Many people do not have the luxury of writing their tests before the
implementation, sometimes it is just not practical, or you have inherited a
large codebase. Let's say you just wrote a test and it passes, but it seemed
too easy. You aren't *really* sure that the test passes for the right reasons.
What to do? Break the code your test relies on (flip a conditional, return from
a function early, etc..) and run your test again, to make sure it fails. If
not, you have a not-so-great test that needs improvement.

0 comments on commit 37dad80

Please sign in to comment.