Kerry Buckley What’s the simplest thing that could possibly go wrong?

14 May 2007

Hi, I’m Ruby on Rails…

Filed under: Java,Rails — Kerry Buckley @ 5:02 pm

The guys over at Rails Envy have created an excellent J2EE vs Rails parody of Apple’s Get a Mac adverts:

Apparently there are more coming over the next few days.

6 May 2007

4-8-15-16-23-42…

Filed under: General nonsense — Kerry Buckley @ 6:38 pm

…09-F9-11-02-9D-74-E3-5B-D8-41-56-C5-63-56-88-C0.

29 April 2007

The Way of Testivus

Filed under: Agile — Kerry Buckley @ 6:18 am

From the slightly-odd The Way of Testivus, via InfoQ:

The pupil asked the master programmer:
“When can I stop writing tests?”

The master answered:
“When you stop writing code.”

The pupil asked:
“When do I stop writing code?”

The master answered:
“When you become a manager.”

The pupil trembled and asked:
“When do I become a manager?”

The master answered:
“When you stop writing tests.”

The pupil rushed to write some tests.
He left skid marks.

If the code deserves to be written,
it deserves to have tests.

28 April 2007

Are we spending more and more time writing tests?

Filed under: Agile,Rails,Ruby — Kerry Buckley @ 9:51 am

A while ago I wrote about testing trivialities, and claimed that no matter how simple the piece of code is, it still ought to have a test. I followed it up with some thoughts on using a helper to simplify writing specs for common validations. Even using the helper, the actual test code for a single validation outweighs the production code by a factor of more than three:

(more…)

25 March 2007

I hate British Summer Time

Filed under: Rants — Kerry Buckley @ 11:05 am

No, not the season – the clock change. The bizarre anachronistic ritual of spending six months of the year pretending that it’s an hour later than it really is.

(more…)

23 March 2007

Shutdown Day

Filed under: General nonsense — Kerry Buckley @ 4:14 pm

Shutdown Day Tomorrow is Shutdown Day.

Can you survive for 24 hours without switching on your computer?

[Update] I managed. Did you?

14 March 2007

Gratuitous rant

Filed under: Rants — Kerry Buckley @ 7:18 pm

Why on earth do politicians and the media keep banging on about “carbon emissions,” “carbon trading,” “carbon-neutral” and so on, when they’re actually talking about carbon dioxide? It drives me mad!

There, that feels better. I’m going to relax now with a nice glass of hydrogen.

13 March 2007

cruisecontrol.rb

Filed under: Agile,Java,Rails,Ruby,Software — Kerry Buckley @ 7:13 pm

In case you missed it, those nice people at ThoughtWorks released CruiseControl.rb yesterday.

(more…)

11 March 2007

DRYing out model specs

Filed under: Agile,Rails,Ruby — Kerry Buckley @ 9:10 pm

[Updated 14/3/07: corrected specify_attributes as per Paul’s comment]
[Updated 18/12/07: modified to avoid crazy RSpec errors]

A week or so ago I wrote about writing specs for simple pieces of functionality (particularly those that are arguably just configuration, like Rails validations). I argued that it’s important to test-drive even the simple things – however, the amount of test code can get out of hand.

(more…)

1 March 2007

Testing trivialities … and double-entry bookkeeping

Filed under: Agile,Ruby,Software — Kerry Buckley @ 9:04 am

From time to time I end up in a discussion (as often as not with myself) about the point at which something is so trivial that it doesn’t justify creating a unit test (or behaviour spec, in more BDD-like language).

(more…)

« Newer PostsOlder Posts »

Powered by WordPress