Skip to content

Instantly share code, notes, and snippets.

@chrislloyd
Created March 29, 2011 01:09
Show Gist options
  • Save chrislloyd/891648 to your computer and use it in GitHub Desktop.
Save chrislloyd/891648 to your computer and use it in GitHub Desktop.
# 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