Posts Tagged ‘ruby’
Posted by Rahoul Baruah on December 21st, 2009 under General, Ruby on Rails and Software Development Tags: activerecord, adaptive server anywhere, ruby, sybase, windows •
Comments Off
Just don’t ask why I know this. Please. It’s making me cry.
Install Ruby using the One Click Installer.
Install the ODBC module (by copying the SO files into the c:\Ruby\1.8\i386-mingw32 folder).
Install the ActiveRecord ODBC adapter (gem install activerecord-odbc-adapter).
Edit C:\Ruby\lib\ruby\gems\1.8\gems\activerecord-odbc-adapter-2.0\ lib\active_record\connection_adapters\odbc_adapter.rb – look for line 1588.
Change the line from elsif dbmsName =~ /SQLAnywhere/i [...]
Posted by Rahoul Baruah on October 5th, 2009 under Ruby on Rails and Software Development, Writing Reliable, Bug-Free Code Tags: Bug-Free Code, bugs, cucumber, logging, rails, ruby, Writing Reliable •
Comments Off
We just had some customers report a bug. Not good. We didn’t get an exception email. All the tests passed. We couldn’t see anything untoward in the log files. But it was there. We could reproduce it, both in staging and in production. Not good at all.
But the weirdest thing was we couldn’t [...]
Posted by Rahoul Baruah on August 21st, 2009 under General Tags: ruby, why the lucky stiff •
Comments Off
So _why has vanished off the internet.
I have no idea who he is or why he’s gone. But _why meant a lot to Ruby developers, myself included. He represented style and grace and art and weirdness – that Ruby was about more than just getting the job done in the most [...]
Posted by Rahoul Baruah on June 3rd, 2009 under General, Ruby on Rails and Software Development Tags: constructors, language, ruby •
3 Comments
Today, Caius made a discovery that shocked me.
He had a class, descending from ActiveRecord::Base, with a custom constructor (initialize method). To debug it, he had the constructor raise an exception. In the console, Thingy.new(params) raised the exception as expected. But wotsit.thingies.find_by_field(value) did not. Even though it was instantiating an [...]
Posted by Rahoul Baruah on April 22nd, 2009 under General, Ruby on Rails and Software Development Tags: coda, editors, espresso, mac heist, rails, ruby, textmate •
1 Comment
Tomorrow I’m actually going to do it.
I’m going to change the tools that I use to code in Ruby for the first time in four years. You see, I must be one of the very very few Ruby-programming Mac-users that doesn’t like Textmate.
This is pretty much heresy to most Rubyists. [...]
Posted by Rahoul Baruah on February 5th, 2009 under General, Ruby on Rails and Software Development Tags: gem, isitruby19, ruby •
1 Comment
You may have heard that Ruby 1.9.1 is now out and “production-ready”. This gives us a number of benefits, not least real threading and a general performance boost. However, there is “production-ready” and there is “production-ready”; in particular, Ruby alone isn’t much use without the many gems that we all depend upon also being usable. [...]
Posted by Rahoul Baruah on January 31st, 2009 under Beautiful Code, Designing Great Software, Smalltalk Tags: controllers, models, ruby, software design, views •
Comments Off
Any web-developer Rubyist knows about models, views and controllers. The MVC paradigm is embedded in the structure of Rails and Merb and encouraged by Ramaze and Sinatra. If you’re a Mac developer or an iPhone bod then MVC is common practice there as well. Same goes for Sproutcore and even Microsoft is [...]
Posted by Rahoul Baruah on December 27th, 2008 under Beautiful Code, Designing Great Software, General, Ruby on Rails and Software Development Tags: Beautiful Code, merb, rails, ruby •
8 Comments
I’m sure you’ve all heard the Rails 3 announcement. When I first found out my initial reaction was “fuck me“. But shortly after I was filled with a feeling of dread and general unease. And I didn’t know why ….
Firstly, a bit of history.
I first tried programming on a Commodore [...]
Posted by Rahoul Baruah on December 20th, 2008 under Designing Great Software, Ruby on Rails and Software Development, Writing Reliable, Bug-Free Code Tags: rails, ruby, software design •
Comments Off
I’ve recently been updating some old code – partly written by someone else, partly written by myself. At the time, I thought I had written this code really well; looking back on it now, it looks awful. Fair enough, I’ve learnt a lot – I want to look back on old code and [...]
Posted by Rahoul Baruah on November 21st, 2008 under Beautiful Code, Designing Great Software, Ruby on Rails and Software Development, Writing Reliable, Bug-Free Code Tags: cucumber, rails, rspec, ruby, software design, Writing Reliable, Bug-Free Code •
Comments Off
I’ve written up a new post at the Brightbox blog detailing how we are using RSpec and Cucumber to build acceptance tests for the next generation Brightbox systems.