Skip to content

Exploratory hacking in TextMate

My first foray into screencasting:

Tis a little tutorial on a little bit of joy I use regularly. In TextMate, you can add xmp markers like so:


1 + 2 # => 
String.class # => 
%w{foo bar baz}.each { |w| w.upcase } # =>

Then if you hit Ctrl+Shift+Command+E, you get this:


1 + 2 # => 3
String.class # => Class
%w{foo bar baz}.each { |w| w.upcase } # => ["foo", "bar", "baz"]

This is a great way to do exploratory hacking. Plus, you don’t feel like you’re doing “printf” style debugging. And that makes everyone feel cooler!

2 Comments

  1. Jeff wrote:

    Excellent. Seems like there’s always one more thing I can learn about using TextMate. Thanks for the tip.

    Thursday, April 24, 2008 at 8:50 PM | Permalink
  2. Bill Burcham wrote:

    Nice Adam.

    Sunday, May 4, 2008 at 10:34 AM | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

Comments will be sent to the moderation queue.