Archive for the 'Development' Category

gedit plugins

Tuesday, November 4th, 2008

Recently I discovered small, but powerfull editor called gedit. I tried to code RoR app with it and I’m satisfied with how it performs. Here you can find missing features :)

Taskboard

Tuesday, October 14th, 2008

Writing new project is always exiting, especially when you can use technologies you want and organize work the way you want. There is such project here in company already on the table, we called it ‘Taskboard’. Our goal is to replace not so user friendly spreadsheets, with usable digitalized storywall (or just taskboard). Hope all agilers will understood what it’s all about :) We are using Rails, JQuery, Juggernaut, Gruff and of course RSpec. The only complain is Windows XP. Productivity while working with Rails is really low, in case you used to use bash command line before. There are also plenty of errors around MySQL driver and all gems with native extensions. Maybe it is possible to configure fully featured Rails development environment on Windows, but it’s really time consuming. Will switch to Linux soon. Going to write some code now, fingers crossed :)

Little success story

Thursday, June 12th, 2008

I got some free time lately, so I sat down trying to figure out how to make pagination of tagged entities. I’m using acts_as_taggable_on_steroids plugin for tagging and will_paginate for pagination of some standard queries.

Pagination plugin allows you to replace ‘find’ method with ‘paginate’ one:

Game.find(:all)
Game.paginate(:all, :page => 1)

Tagging plugin allows ‘tagged_with’ suffix to any ‘find’ method call:

Game.find_tagged_with('tsumego')

It’s easy to find out, that all I needed was:

Game.paginate_tagged_with('tsumego', :page => 1)

This is the power of dynamic languages. Pretty simple and really useful. All those small magic tricks makes writing software in RoR really exiting!

Plugin of the day!

Thursday, June 12th, 2008

Todays winner is: gemsonrails.

Plugin of the day!

Wednesday, May 28th, 2008

RoR of course, here it is: has_finder.

?

Thursday, April 10th, 2008
  • Anyone knows how in Eclipse I can jump from any file to appropriate test that belongs to it?
  • Why (!@#!?@) there is no getter for driver in SQLExec Ant task?!?
  • Why enhanced CD format breaks my DVD player at home?
  • Why I cannot finish baduk.pl project?
  • Why ATs is loosing to pocket threes while on bubble?

In case you know some answers, please make my life easier and send me an email. Cheers :)

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…

Next weird thing…

Wednesday, July 25th, 2007

http://camping.rubyforge.org/

Rails IDE

Tuesday, July 17th, 2007

I finally found one! Enjoy! http://dima-exe.ru/rails-on-emacs

Gruff

Monday, May 21st, 2007

While developing my new secret RoR project I’ve found really useful chart library for Ruby. It’s called Gruff and is really worth trying. More details here.