company-logo

Live Ruby: Testbed, part two

In [Part 1][p1] of this post, I started a to demonstrate using Ruby Metaprogramming to implement a potentially useful testing API: testbed "call my test function" do |input| subject = MyObject.new(input) subject.method_to_test end verify_that(1).returns("fred") verify_that(2).returns(3) verify_that(0).raises(Exception) Last time we covered...
Read More

Live Ruby: Testbed, part 1

In this series of posts, I’m going to walk through the implementation of an interesting Ruby problem, namely, using metaprogramming to create a small DSL-like syntax for specifying tests. Here’s the problem as I notice it in my own unit...
Read More

Agile Publishing

I'm currently working on my third technical book (Professional Ruby On Rails, available in February, wherever fine technical books are sold). Each one has had a slightly different process, in chronological order... I submitted each chapter on completion directly to...
Read More

Switching Back and Forth

You'd expect that a blog post titled 7 reasons I switched back to PHP after 2 years on Rails would generate some controversy. Derek Sivers wrote just that on O'Reilly's Ruby blog last week, summarizing his experience as follows. I...
Read More

Rails, Ajax, RJS, and Testing

As promised, today’s entry is Agile and Ajax. Also, it’s a dessert topping. Ajax in Rails The initial support for Ajax calls in Rails was centered on two framework methods called link_to_remote and remote_form_tag. The basic functionality of these methods...
Read More

Agile, The Control Paradox, and the Boring Software Manifesto

I'm probably not getting the quote quite right, but supposedly at one point during the C3 payroll project where XP was created, a developer said that it was so easy to make changes to C3 that they could turn it...
Read More

The Rails Edge: Notes

Some thoughts and comments on the goings-on at Pragmatic Studio's Rails Edge conference last week: There seemed to be a general sense among all the speakers that Rails is starting to mature -- at least in the sense that nobody...
Read More

The Rails Edge: Quotes and Notes

Last week I attended Pragmatic Studio’s “The Rails Edge” conference in Skokie, IL. I’m going to do a couple of posts on this. For the first post, I thought I’d present some of the best quotes that I noted from...
Read More

Test-Driven Development As Part of the Process

About a year ago, I wrote this post about test-driven development, which has some tips for TDD from a developer point of view. I thought I’d augment that a little bit by offering some thoughts about TDD from the larger...
Read More