The Real Adam Always course correcting

Posted
24 April 2008 @ 6pm

In
Code

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

Posted by
Jeff
24 April 2008 @ 8pm

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


Posted by
Bill Burcham
4 May 2008 @ 10am

Nice Adam.


Leave a Comment

Comments will be sent to the moderation queue.

Reverse shoulder surfing Some language twins teach each other

Flickr View All » RubyConf Notes #3RubyConf Notes #2RubyConf Notes #1RubyConf Notes #0Dogs in the morningMy Day, YesterdayGetting aroundMolly loungingasdfjkl;