« Twirc: 用 irssi 上 Twitter 的方法 | Home | Javascript's way to know the image size »
May 4, 2009
Writing Moose code with yasnippet
yasnippet is awesome Emacs mode that helps reducing the number of keystrokes. I personally can't code without it now, and I recommend everyone using Emacs give it a try.
As I started to wrote Net::Redmine with Moose (or really Any::Moose), I decided to extend my snippets to fit Moose's verbs. Here's what I have so far: http://gist.github.com/106480
I did this video that demonstrates how it feels. Noticed that yasnippet is able to mirror the attribute name and its associated builder function on the fly. Very neat feature.
No TrackBacks
TrackBack URL: http://gugod.org/mt/mt-tb.cgi/198
Leave a comment