Created
March 29, 2011 01:09
-
-
Save chrislloyd/891648 to your computer and use it in GitHub Desktop.
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
# I'm just working on a quick script... | |
true_positives = ... | |
false_negatives = ... | |
# Using printf debugging I'd normally do this | |
p true_positives | |
p false_negatives | |
# and end up having to disambiguate the output by remembering the order or by | |
# putting in extra comments | |
puts "true_positives = #{true_positives.inspect}" | |
# I could use a debugger, but it would be much easier to do something like | |
# this: | |
pv true_positives | |
#=> true_positives = ... | |
pv true_negatives | |
#=> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment