Wash-First Cooking

Earlier today I stumbled across a TDD/test-first analogy that's worth sharing.

My dishwasher broke a while ago,  and for various reasons, we've been slow in replacing it. This means that my sink often has a few glasses and plates, waiting to hand-washed. Of course, that's gross and makes things look dirty, especially in a kitchen as small as mine. For a while I tried to always wash my dishes immediately after using them, but that proved beyond my discipline. I tried fighting instincts, but after I'm finished preparing and then consuming a meal, I just want to relax -- not spend 15 minutes scrubbing pots and pans. There's not much incentive to wash dishes right then.

But that means that the mess grows and after a few meals, I have to spend an hour or so washing dishes. Washing dishes isn't so awful by itself, but it has a way of permeating the rest of the your activities in the kitchen. For example, I cook a healthy meal at home much less often if there are any dishes waiting to be cleaned. Instead, I'll just have a bowl of canned soup, some crappy microwave dinner, or takeout. Altogether I was pretty unhappy with the situation and looking to expedite the process of getting a dishwasher installed.

So, I  developed a new tactic. When I decide to cook  a meal, I will force myself to wash an amount of dishes equivalent to the amount I'm about to use, i.e., if I'm eating a bowl of cereal, I'll at least wash a bowl/plate/glass and a utensil beforehand. It's been working fairly well.

In general, with wash-first I'm finding:

  1. The dishes actually get washed. Putting the incentive after the effort works much better.
  2. I often wash dishes immediately after using them, because I'm already in that washing mindset.
  3. As I plan out a meal, I try to minize the number of dishes I'll dirty; I keep washability in mind.
  4. I end up spending less time cleaning overall.
  5. I'm cooking more at home.
  6. My kitchen is cleaner.

So, let's tie this back into software. This past Thursday I went to the Meet and Code dinner in Richmond (now Richmond Software Craftsmanship Group). It was a very fun meeting with lots of good discussion about the challenges of the testing legacy code and just software development in general. With that experience lingering in my mind, I woke up this morning in the mood for pancakes. Oh, but that would dirty so many dishes! I set about washing a pan and so on, and I started ruminating that this wash-first methodology was working fairly well. I suddenly realized that I was applying TDD strategies to dishwashing!

In general, with test-first I've found:

  1. Tests actually get written. 
  2. My code is designed with testability in mind and thus more testable.
  3. I end up spending less time writing tests overall.
  4. I write more tests. 
  5. My code is cleaner.  
I'm not sure if this is a cool cross-domain application of development thought processes or just an amazingly geeky idea -- like my friend using Scrum to plan her wedding (ahem). Regardless, I found it as a nice affirmation that the logic behind TDD is founded in basic human psychology.

Comments

January 26. 2009 22:27

Ha ha, that is awesome. Definitely an interesting idea, I might have to try it!

Justin Etheredge

March 26. 2009 14:25

Normally I wouldn’t comment on posts but I felt that I had to as your writing style is really good. You have broken down a difficult area so that it easy to understand. I think that you would enjoy reading what another good blogger has to say on the subject.

Dirty messages

June 17. 2009 06:53

It's difficult to get used without your dishwasher, I should know because my dishwasher also broke without a warning. If you are an organized person into washing your dishes on a regular basis then braking up with your dishwasher is not that painful. It wasn't the case for me, in a month I got a new appliances, so now things are back to normal.

Maytag parts

June 25. 2009 13:25

Here's an idea. I ran into the same problem and when this happened to me, I threw away all of my forks spoons and knives except for four of each of them. Then I threw away all of my plates until I only had 4 of them. And so on and so fourth. The thing is I ran out of dishes and then I had to clean them. Well, then I just realized I didn't want to cook anymore so then I developed a microwave dinner habbit. Cool huh? lol

copper sinks

February 10. 2010 05:40

payday loans

If you want to achieve excellence, you can get there today. As of this second, quit doing less-than-excellent work.

payday loans

March 5. 2010 12:08

colon cleanse

He who angers you conquers you.

colon cleanse

March 20. 2010 06:55

payday loans fast

This is a great article thanks for sharing this informative information.. I will visit your blog regularly for some latest post.

payday loans fast

March 22. 2010 05:13

instant personal loans

my God, i thought you were going to chip in with some decisive insght at the end there, not leave it with ‘we leave it to you to decide’.

instant personal loans

March 25. 2010 01:08

quick personal loans

There is obviously a lot to know about this.  I think you made some good points in Features also.

quick personal loans

March 25. 2010 16:01

best bad credit loans

Aw, this was a really quality post. In theory I'd like to write like this too - taking time and real effort to make a good article... but what can I say... I procrastinate alot and never seem to get something done.

best bad credit loans

March 28. 2010 07:46

repair stretch marks

Me and my friend were arguing about an issue similar to this! Now I know that I was right. lol! Thanks for the information you post.

repair stretch marks

April 11. 2010 02:43

 quick car insurance quote

This is what the doctors  preach all the time lol

quick car insurance quote

April 14. 2010 19:17

us

Interesting read, thanks for helping keep me busy at work ;)

us

April 17. 2010 17:48

compact dryer

Really great information in your blog. Please write more so that we can get more updates in your blog. Thanks a lot!

compact dryer

April 27. 2010 08:34

Rapidshare

I\'m happy I found this blog, I couldnt discover any info on this subject matter prior to. I also run a site and if you want to ever serious in a little bit of guest writing for me if possible feel free to let me know, i\'m always look for people to check out my site. Please stop by and leave a comment sometime!

Rapidshare

May 11. 2010 04:00

Chef jobs

Nice information, many thanks to the author. It is incomprehensible to me now, but in general, the usefulness and significance is overwhelming. Thanks again and good luck!
      

Chef jobs

May 12. 2010 04:55

Edicion imagen

Nice information, many thanks to the author. It is incomprehensible to me now, but in general, the usefulness and significance is overwhelming. Thanks again and good luck!
      

Edicion imagen

May 17. 2010 17:05

quick personal loan

I keep listening to the news talk about getting free online grant applications so I have been searching around for the best site to get one.

quick personal loan

June 5. 2010 04:01

BettieWHITEHEAD20

I took 1 st <a href="lowest-rate-loans.com/.../mortgage-loans">mortgage loans</a> when I was 25 and it aided my business very much. However, I need the bank loan over again.

BettieWHITEHEAD20

June 13. 2010 23:42

Svitlana.Net.Ua

I would like to thank you for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now.

Svitlana.Net.Ua

June 16. 2010 23:22

няня

I would like to thank you for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now.
http://svitlana.net.ua/staff/category/3/ гувернантка, http://svitlana.net.ua/staff/category/5/ повар, http://svitlana.net.ua/staff/category/6/ садовник, http://svitlana.net.ua/staff/category/10/ репетитор, http://svitlana.net.ua/staff/category/4 домработница, http://svitlana.net.ua/staff/category/8/ семейная пара, http://svitlana.net.ua/pages/2/ работа няней.

няня

June 22. 2010 13:22

Проститутки-индивидуалки

Но, в тоже время, отдых невозможно себе представить без интим утех и прочих развлечений, которые могут подарить вам проститутки Сочи.  Наша машина плавно подъезжает к Адлеру и начинает  двигаться в глубинку, что бы могли насладиться полным одиночеством и воссоединением с природой. Как правило, у нас это редко получается, потому, что там где мы останавливаемся, всегда достаточно народа, которые предпочитают отдых не в гостиницах и пансионатах, а именно такой, дикий.

Проститутки-индивидуалки

June 22. 2010 19:05

Секс с проститутками

Такие чувства не передать словами, когда ты находишься в предвкушении отдыха, тебя не волнует больше ничего на свете и ни каких проблем или мыслей, даже проститутки Сочи тебя не интересуют, как раньше.  Ты полностью сосредоточен только на том, что бы провести свой отдых более качественно и отдохнуть, прежде всего, морально, что бы сбросить весь груз проблем, которые на тебя навалились.  

Секс с проститутками

June 22. 2010 19:57

e-pokeronline

You made fantastic nice points here. I performed a search on the issue and discovered almost all peoples will agree with your blog.

e-pokeronline

July 2. 2010 04:14

Магазин сантехники

I really loved reading your thoughts, obviously you know what are you talking about! Your site is so easy to use too, I’ve bookmark it in my folder :-D

Магазин сантехники

July 5. 2010 05:57

Индивидуалки Москвы

You have some honest ideas here. I done a research on the issue and discovered most peoples will agree with your blog.

Индивидуалки Москвы

July 9. 2010 11:37

Новинки сантехники

You made fantastic nice points here. I performed a search on the issue and discovered almost all peoples will agree with your blog.

Новинки сантехники

July 10. 2010 16:06

Проститутки

You gave nice ideas here. I done a research on the issue and learnt most peoples will agree with your blog. Certainly, these practices are unfair; but they say that most of their rules are only to apply to people who overdraw.

Проститутки

July 12. 2010 19:42

payday loans

It is a paradoxical but profoundly true and important principle of life that the most likely way to reach a goal is to be aiming not at that goal itself but at some more ambitious goal beyond it.

payday loans

Add comment




biuquote
  • Comment
  • Preview
Loading