About
Hi! I'm Avdi Grimm, and this is my software development blog. More...
Books and Screencasts
Objects on Rails
A developer notebook on applying classic Object-Oriented principles to Ruby on Rails projects.
-
Subscribe
-
Recent Posts
Archives
Categories
Meta
Monthly Archives: January 2011
Linkdump #1
Trying something new today. A linkdump from the past couple of weeks, with a little help from Diigo. A piece with a lot of screenshots about the close tab behaviour in Google Chrome | The Invisible When UX works this … Continue reading
Posted in Uncategorized
Leave a comment
Elegant Code » Book Review – Extreme Programming Explained
While it seems that Scrum and Lean are getting all the buzz in agile software development these days, why on earth would I want to pick up a book on Extreme Programming that has been written back in 1999? Well, … Continue reading
The happy developer
The programmer has a fixed amount of time and concentration that he can give every day. He must give a bigger piece of the pie to the bad technologies, simply because they require more. In other words, he ends up spending most … Continue reading
ActiveRecord association extensions and method_missing
The semantics of method calls in Ruby are simple: Call the named method; or If no method exists, call #method_missing() instead. Normally #send() obeys these rules as well. ActiveRecord association proxies mangle #send()‘s semantics, however, violating the POLS and potentially … Continue reading
Posted in Ruby
Tagged active, associations, extensions, method_missing, rails, ruby, send
12 Comments
I’m Speaking at Day Camp 4 Developers
Those who read me regularly probably know that my other passion, apart from writing great code, is building strong geographically dispersed teams. Well, today I’m very happy to announce that I’m going to be speaking on that topic at the … Continue reading
Posted in Presentations
Leave a comment
ActiveRecord Golf
So I was messing around with some scratchpad code today, investigating the use of with_exclusive_scope, and here’s what I had to write to come up with a minimal working ActiveRecord model: require ‘rubygems’ require ‘active_record’ ActiveRecord::Base.establish_connection( :adapter => “sqlite3″, :database … Continue reading
Roy Osherove on Test Construction
It’s quite easy to get caught up in the technique of TDD and not pay attention to the way unit tests are written: their naming, how maintainable or readable they are, and whether they test the right things or might … Continue reading
Programming is Catfish Noodling
Dan North, apparently irritated that no one showed him the secret programmer handshake, has constructed a (very neatly crafted) wall of words. He hits all the Serious Programming Thinkiness bullet points – talk about artists, talk about martial arts, talk … Continue reading
Glass Houses for Ruby
A little something for Giles et. al. who feel that private has no business in the Ruby language… # Privacy? We don’t need no stinkin’ privacy! module TSA def private # NOOP end def protected # NOOP end end class … Continue reading
Fast and Good
This is bullshit, but it’s popular bullshit, because it’s both funny and it makes programmers feel better about themselves. When I first learned to write code someone hammered it into my head that I should format my code neatly. Consistent … Continue reading




