ZOMG: Domain-driven Test-assisted Production Rails Crisis Interventions

Rick Bradley (OG Consulting)
Location: Room 307 - 308 Level: Novice
Average rating: ****.
(4.11, 18 ratings)

This talk continues a series of legacy code rescue talks started with the popular “Flog << Test.new” talk from the 2008 Ruby Hoedown where we use detailed code-level snapshots to teach the process of transforming real-world code.

Here the technique goes a few steps further: flog was good code lacking tests, so we introduced a robust suite and did some minor BDD refactorings at the end; but here we are taking critically impaired production code with minimal (or no) tests, reworking the domain model, and using focused testing and refactoring to bring the code to the new coherent domain model, making improvements as we go. Feature behavior of the system is static but the code footprint shrinks, coupling drops, and maintainability takes a huge jump.

The examples given are from rescue missions on large footprint applications where bad software has become a critical hindrance to progress. See how to carefully but quickly make powerful changes to actively-developed production applications in serious need of rescue.

Photo of Rick Bradley

Rick Bradley

OG Consulting

Rick Bradley is fresh off a chapati-laden 6-month traipse around the Indian subcontinent, ostensibly as moral support for his wife (a natural dye artist with a serious indigo problem), but really because it seemed like a good excuse to be lazy about shaving (and other more critical hygiene matters). (co-)Author of whiskey_disk, object_daddy, larry, douche, etc., he enjoys camel rides on the beach, strong silent lingas, and programs much ruby as one of the founders of Nashville’s OG Consulting.

Comments on this page are now closed.


Keith Norman
06/11/2010 11:30am EDT

acts_as_ass still makes me chuckle haha.

Picture of Christopher Redinger
Christopher Redinger
06/10/2010 5:55pm EDT

Did a great job with the amount of code he covered.

Picture of Josh Crews
Josh Crews
06/09/2010 6:19am EDT

I thought it was great and makes me more willing to enter “mudfield” and “shantytown” projects with hope.

Picture of Greg Donald
Greg Donald
06/08/2010 4:33pm EDT

This was awesome. Fast, with lots of code. Totally enjoyed it.

co-presented by Ruby Central, Inc. O'Reilly
  • Engine Yard
  • Heroku
  • 8th Light
  • Blue Box Group
  • InfoEther
  • JetBrains
  • New Relic
  • Open Hosting
  • Rhomobile
  • WyeWorks
  • Linux Pro Magazine
  • Chargify

Sponsorship Opportunities

For information on exhibition and sponsorship opportunities at RailsConf, contact Yvonne Romaine at yromaine@oreilly.com.

Download the RailsConf Sponsor/Exhibitor Prospectus

Media Partner Opportunities

For information on trade opportunities with O'Reilly conferences or contact mediapartners@ oreilly.com

Program Ideas

Send us your suggestions for speakers, topics, and activities to rails-idea@oreilly.com.

Press and Media

For media-related inquiries, contact Maureen Jennings at maureen@oreilly.com.

RailsConf Newsletter

To stay abreast of conference news please sign up for the RailsConf newsletter (login required)

Contact Us

View a complete list of RailsConf 2010 contacts.