Finding lexical nesting for self in Ruby

While I have been working on code communicating with Google Data API I found that it would be very convenient to enclose components specific to particular Google service under same namespace, particularly because they could share common constants defined in...

Getting poisoned by Cucumber

Recently I’ve been working on quite large system implemented in Rails. Virtually every feature or requirement has an acceptance Cucumber test which is kind of great, ‘cause it gives a sense of confidence the things are not really broken. To...

Keeping a newrelic eye on Sinatra app

I’ve recently wanted to see what can I do about performance of my Sinatra app and decided to spend some time playing with New Relic RPM tool. I’ve found it useful although somewhat not exactly what I had been expected....

Debugging life simplified

Some people say you can live without a debugger. May be, proper logging and and tests definitely reduce number of times when you need to launch it, but I sometimes find myself using debugger a lot, for example, when developing...

Tagged Logger Introduction

If you want to log something then what do you do? If you are writing Rails code the answer is obvious - Rails#logger, but if it is something which could be potentially not a part of Rails application? Is that...