Writing Moose code with yasnippet

| No Comments | No TrackBacks

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://pub.gugod.org/mt/mt-tb.cgi/179

Leave a comment

About this Entry

This page contains a single entry by gugod published on May 4, 2009 10:35 PM.

Twirc: 用 irssi 上 Twitter 的方法 was the previous entry in this blog.

Javascript's way to know the image size is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.35-en