Monday, August 28, 2006

More on Test Driven Development and Agile Ideologies

My current employer is a supporter of "big design up front" (BDUF). If you have been developing for a while you know this method, usually associated with waterfall development, to be a bunch of people sitting in a room thinking things up until it seems like a great idea. Well not exactly, but you get the point. A requirements document has been gathered - imagine a single document containing, supposedly, anything and everything that a client wants (HAH) - and developers and architects (who can even make the distinction any more) come up with the ENTIRE structure of the application. Let me repeat that, the ENTIRE structure of the application.

Now, how many times have you developed software for a company? Go on, raise those hands - ok, so I can't see them, but I know they are out there. Now, those of you that have ever worked with a client that HAS NEVER changed the requirements document after sign off can put their hands down. Not many hands should drop - hopefully. Requirements are just as dynamic as a business and should be treated as such. Okay, so what does any of this have to do with TDD?

One of the beauties of TDD is the flexibility (read creativity) it allows a developer to have while building an application. As my previous post mentions (the one back in Sept. of last year), starting with implementation can be a big eye opener when it comes to design. You see your application take shape and you can either continue along or change it as you go. And, because you are building tests first, when requirements change, there is no need to worry. The tests should catch any breaking modifications.

However, the true power of TDD seems to take shape when it is coupled with Agile methodologies. The Agile community focuses on developing working software through extensive customer collaboration from all members of the development team (agilealliance.com). What?

From what I can gather, Agile development is about small iterative cycles that end in a product being released to the customer. This means that components of the end product can be delivered well before the end product is complete, giving the customer a chance to see pieces of the application. What a powerful concept! The client has an opportunity to make changes as early and as often as they like. And because they are getting to see things early on, positive and negative feedback can be given before pieces become embedded into the application increasing modification costs - although if you are using TDD as it is intended, this coupling should not be a problem.

Thursday, June 01, 2006

Dog Training: Positive Reinforcement vs. Negative Reinforcement

And so the saga continues...

Oh wait, there was never a saga introduced, so here it is...

We have two dogs, Bandit and Rascal - simple enough. We adopted Bandit first, and being our first dog, we wanted him trained. As a techie, the obvious resource choice is the web. I wanted to enroll him in a school ASAP, so after a quick directory search on dog trainers, I found one locally. My wife and I showed up for orientation and we were amazed at the behavior of the trainers' animals. There were approx. 50 or so people there for orientation and they had 3 dogs lying on mats chewing on bones or sleeping. Okay, so what, they were on mats, they could leave if they wanted to...not so!

The dogs got up a couple of times, but it was like watching a pantomime trapped in his invisible glass box. The dogs didn't go past the edge of their mats. Who can train their dog to do that? We were amazed and we signed Bandit up right away.

The first day of class was a little disconcerting as we were taught the true nature of the training - the leash correction. It started with being a simple leash jerk and progressed more aggressively for subsequent disobedience. Our initial thought was to give it time, perhaps the jerking would subside once the dog became used to the commands...

Wednesday, March 29, 2006

Blogging Not So Easy

Blogging isn't the easiest thing when you get busy, actually, it's not easy when you have free time!! I haven't been here in ages, not that anyone's listening. So I have decided to blog on technical topics and dogs!

Yeah, that's weird right? But my wife and I have two wonderful, adopted dogs and they are so interesting. I never realized how dynamic and social dogs are! I have started reading books on dog behavior and dog training, and learning tons. Check back soon for more.