Code from TDD Kata 1 session last night

Most attendees reported having fun last night at the TDD Kata 1 session at SkullSpace, the latest Winnipeg PHP UG meetup. 😉

Here’s the code we produced last night, plus a very basic example of how to make functions throw exceptions in PHP that we did not get to last night.

Do you have an implementation I could learn from?

Does anyone in Winnipeg wanna get their feet wet with TDD in PHP?

There is a really cool intro to TDD “kata” on Roy Osherove’s website: TDD Kata 1. I’d be available to go through an implementation with PHP. It is a very nice way to get familiar with some ideas in test-driven development, because it is very beginner-level.

I just suggested this meetup on the Winnipeg PHP UG meetup page: http://www.meetup.com/Winnipeg-PHP/events/155430762/ . Please RSVP “Yes” if you’re interested – 2 RSVPs and it gets announced to everyone through the meetup group.

Sometimes it’s about attitude, or “You don’t really know the future”

I like the distinction between fellow Yugoslavian Gojko Adzic’s Specification by Example and fellow software developer Brian Marick’s Exploration Through Example.

Think about that for a minute.
The choice of exploration vs. specification captures something important and beautiful about the nature of software development. The discovery, learning, process of understanding… This aspect of software development is discussed in topics such as Emergent Design, and TDD.