Archive for September, 2007

Ruby researches

Monday, September 17th, 2007

Today, the evening was sponsored by heckle, rcov and ZenTest [applause!]


require 'autotest/redgreen'
require 'autotest/kdenotify'
require 'autotest/timestamp'

Rails IDE, part 2

Sunday, September 16th, 2007

Well, I have to be honest - I’m not the emacs guy and after a few tries of the editor I abandon the idea for emacs to become my Rails/Ruby IDE. The features looked yummy on the screenshots, but practicing Vim Zen is better :)

After being defeated by emacs, I focused on finding the best solution for old, good Vim. Here is what I found usable for RoR developer:

  • rails.vim - easy navigation between rails files, few additional powerful features too, must have!
  • snippetsEmu.vim - this is awesome plugin, makes TextMate like snippets possible inside Vim, powerful!
  • fuzzyfinder.vim - buffers explorer, works well with :A and :R from rails.vim, bind this as a shortcut for better usability
  • surround.vim - something additional found during research, for dealing with every kind of surroundings (like html tags for example), not required, but nice
  • SimpleFold.vim - well, if this is not working as described (folds are broken), while bugs free it will join my plugins bundle

Just paste each script name presented above here to find newest versions of them.

My additional snippets I found usable are:


exec "Snippet vn validates_numericality_of :".st."field".et.st.et
exec "Snippet vl validates_length_of :".st."field".et.", :maximum => ".st."max".et.st.et
exec "Snippet vc validates_confirmation_of :".st."field".et.st.et
exec "Snippet vp validates_presence_of :".st."field".et.st.et
exec "Snippet vu validates_uniqueness_of :".st."field".et.st.et

PS. I’m 10 kyu now and won today with 9 kyu with 25 points! I can do it! I will do it! :)
PS 2. supertab.vim is cool too :)
PS 3. I’ve got here vim-ruby of course too…