SonicIQ Hiring! – UK, Ruby on Rails Developer Required

We are looking for a Ruby on Rails, XHTML & CSS Developer to join our team at “SonicIQ”:http://soniciq.com. Head over to “43folders job board to view our ad”:http://jobs.43folders.com/job/6a5255713e8351a5eb2efef7805b7629/?d=1. These are exiting times with projects like “Propel’r”:http://propelr.com in the pipeline, along with the ever-growing opportunities for new and interesting client projects. If you are a highly […]

Using Rcov to measure the test coverage of Rails plugins

To view the coverage of your plugins using Rcov, first install the rcov gem with sudo gem install rcov, then copy and paste the following onto the end of the Rakefile inside your plugin directory: require ‘rcov/rcovtask’ desc ‘Measures test coverage using rcov’ namespace :rcov do desc ‘Output unit test coverage of plugin.’ Rcov::RcovTask.new(:unit) do […]

Ruby Ternary operator re-written with Boolean operators

Just noticed something interesting (well not that interesting). Ternary operators in Ruby can be re-written using Boolean operators e.g. method = object.respond_to?(:foo) ? :foo : :bar would become… method = object.respond_to?(:foo) && :foo || :bar Simply replace ? with && and : with || I don’t know if there is any performance gain here, anyone […]