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.