Tag Archives: datamapper

RubyTapas Freebie: Gem Love Part 2

I have a few ongoing miniseries in RubyTapas. In this, the second installment of a miniseries chronicling the creation of a Rubygems plugin and an associated server, I touch on a number of topics including acceptance testing, the shellwords standard … Continue reading

Posted in Ruby, RubyTapas Samples, Screencasts | Tagged , , , , | Leave a comment

Fowler on Rails

Projects using Ruby on Rails often lack strong distinctions in two main areas: The model/record conflation: Seeing “models” as strictly DB-backed resources. The view/template conflation: failing to draw a line between view objects and HTML templates. The conflations are encouraged … Continue reading

Posted in Ruby | Tagged , , , , , , | 18 Comments

Hello, Red Dirt Ruby!

I’m really enjoying Red Dirt Ruby Conference so far! Love the single-track, short-talks format. Also, I got free jerky from Jerky.com, which is awesome. If you’re coming in because of my DataMapper talk, here are some notes: Slides: http://avdi.org/talks/datamapper-rdrc-2011/ Rate the … Continue reading

Posted in Conferences | Tagged , , , | Leave a comment

Linkdump #6

agile/db_branch – GitHub I’d been looking for a way to manage databases for multiple branches of an app, and this is one of the (many) suggestions. tags: development database ruby rails git Rails plugin to play nice with git branching … Continue reading

Posted in Links | Tagged , , , , , , , , , , , | Leave a comment

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

Posted in Rants | Tagged , , , , , , | 3 Comments

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

Posted in Ruby | Tagged , , , | 3 Comments

Looking for a new NullDB maintainer

I love Open Source. NullDB, a weekend hack that I barely touched after its first version, continues to attract periodic forks and patches. For a long time I’ve been meaning to sit down and roll in all the contributions that … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

The State of SimpleDB Clones

Over the past couple weeks I’ve been updating the DataMapper SimpleDB adapter for DataMapper 0.10, an effort which yesterday culminated in the release of version 1.0.0. Testing against Amazon SimpleDB can be an excruciatingly slow process – not only can … Continue reading

Posted in Uncategorized | Tagged , , , , | 10 Comments

NullDB for DataMapper

The first Ruby library I ever released, and still the one I get the most emails about, is NullDB. NullDB is an ActiveRecord database adapter which simply turns every database operation into a no-op. It is useful for speeding up … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment