Monthly Archives: September 2009

rspec stub V should_receive

I have been pondering over the difference between the two aforesaid methods in rspec but it did not become apparent to me at first. Yesterday, whilst reading the RSpec Bible it all became crystal clear. I know some people might … Continue reading

Posted in Testing, rspec | Tagged , | Leave a comment

Ruby 1.9

I was looking for the hash syntax in Ruby 1.9 as I could recollect that it has changed but did not remember it exactly and discovered this site that has all the changes in Ruby 1.9 in one place and … Continue reading

Posted in Programming, ruby | Tagged | Leave a comment

I love metaprogramming

I have almost finished the 80% of ruby metaprogramming course and I am loving it. Really, writing a complete class without writing the code below. This is so old way of writing code…nah just kidding. class People end Also, declaring … Continue reading

Posted in Programming, ruby | Tagged , , | 1 Comment

Ruby software debt

Found ruby code smell detector, called Reek. Here’s a report for thughtbot’s clearance. Powerful stuff. Time to run it through my code.

Posted in app, ruby, software debt | Tagged , | Leave a comment

Clearance

My patch to refactor one of the modules in Clearance was merged into master today. I feel ecstatic.

Posted in Rails, gitHub, ruby | Tagged , , | Leave a comment

Serendipity

I had no idea of the gitHub shortcuts. A perfect Eureka moment.

Posted in gitHub | Tagged | Leave a comment

Linode v Slicehost

Internet is the most exciting invention of its times. Over the years it has saved me countless hours. Here is another example. I have been contemplating a move to VPS hosting and instantly Slicehost and Linode springs to my mind. … Continue reading

Posted in hosting, vps | Tagged , , , | 4 Comments

CLI for Javascript

No way… I do not believe you. What? There is a command line interface for Javascript which you can access as easily as your browser or any other app for that matter. I cannot believe that I did not know … Continue reading

Posted in Javascript | Tagged | Leave a comment