Me
About
Gallery
Company
Girl


Projects
Ruby on Rails
Basecamp
Highrise
Backpack
Campfire
Ta-da List
Writeboard


More
Feed
Archives

January 03, 18:57

Test-driven vs test-first development

I've been a test-driven developer for quite a while, but I haven't really gotten into the religious test-first branch yet. Usually, I'm too impatient. I have a good idea and want to execute on it right away. Then, when I see it in code, I'll come back to do the tests.

I have done short spurts of test-first — some tasks just seem to invite it — but not as a regular approach over a longer and sustained period of time. I want to give that a try. For a month. Where I can't right any code until I've seen a test fail.

It's one of my 43 things.


Challenge by matthew on January 03, 20:28

with all this ruby / rails stuff going on, i have to ask if it's possible to run rails on windows?

Challenge by matthew on January 03, 20:35

okay, it seems to install fine. oh yeah, learning ruby is one of my 43 things.

Challenge by Giulio Piancastelli on January 03, 22:58

Please expand: I am lead to think that TDD prescribes tests to be written *before* any code; that, per definition, is a test-first practice. Indeed, I believe TDD is about letting tests guide the micromanagement of code design; so how can they help you drive your code if you write them *after* the code? How can that be possibly considered a TDD approach?!?

Challenge by Florian Weber on January 03, 23:34

one of the reasons why i do write the tests first: it's boring to write them afterwards. when you thinking that everything works, why would i write a test for it then?

Challenge by gabriele on January 04, 12:48

Giulio, you can write a test just after you design a small part of the stuff, write tests for it and refactor it in a more testable way if necessary. Then you go on with the work.

This way you work is still test driven, but not test first.
A Real Test Man would probably realize that if he'd designed the test before the part of the app he'd have saved time, but I think if someone is not trained enough in writing tests he'd find simple tdd easier than test first.

Challenge by Guan Yang on January 04, 13:15

I think writing tests after writing code can still be a help. They can help verify that the code still works after you have made changes, fixed bugs or implemented new features.

Challenge by John Wilger on January 04, 15:43

One good thing about writing tests first is that you get a feel for how you want to implement a modules interface before you actually go through the trouble of making the module functional. I've often had an idea in my head for how I want some module or class to be accessed. Then I start writing the tests, and I realize that the "great design" I came up with is crap when it comes to actually _using_ the interface. If I had coded the module before the tests, I might be several days into work that would never see the light of day. (Or worse---it _would_ see the light of day, and whoever used it would be forced to deal with a poor interface design!)

Challenge by kevin barnes on January 05, 17:47

Somebody may want to let them know the site is down at http://www.43things.com
At least it is for me.

Challenge by gabriele on January 05, 17:58

works fine now

Challenge by kevin barnes on January 06, 0:04

hmm... tried it at home and it comes up find, but not here at work. weird. anyways, i don't have 43 things _work_ related i want to do...

Challenge by abay on June 04, 12:06

Hi. This is my links.
free naked older women south indian mature women older women and younger men free naked older women mature bitches lyrics to older country songs mature bitches older moms mature women stories classic mature mature nud3 pics free naked older women older s3xy women free naked older women mature spunker mature ladies in lingerie older moms mature ladies in lingerie mature anal mature spunker lyrics to older country songs free naked older women free thumbnail pictures of older women mature ladies in lingerie mature anal mature nud3 pics mature living free thumbnail pictures of older women free thumbnail pictures of older women older women and younger men mature living free naked older women older women and younger men mature living mature living mature bitches older women and younger men older s3xy women mature spunker mature gallerys

Challenge by mary on June 05, 5:26

Sorry for my links
pantyhose chat girl panty pics russian pantyhose women feet in nylon feet in pantyhose pics men who wear pantyhose cum on panties nylon galleries boys in pantyhose pantyhose crossed legs mature pantyhose pictures girl panty pics pantyhose mpeg girl panty pics men pantyhose mature pantyhose pictures cum on panties free pantyhose thumbs pantyhose crossed legs boys in pantyhose pictures of crossed nylon legs girls in fishnet stockings girls in body stockings pantyhose and nylon feet and toes pantyhose chat girls in fishnet stockings cum on panties pantyhose chat pantyhose and nylon feet and toes girls in fishnet stockings men pantyhose girl panty pics nylon galleries pantyhose mpeg free panty thumbnail gallery feet in nylon pantyhose crossed legs girl panty pics free pantyhose thumbs pantyhose chat

Challenge by serge on June 06, 11:35

Hello. I am new here. It is very interesting.
thumbs gallery older women mature hardcore links older women stories older holland naked old women thumbs older black women how to meet older women black older ladies mature glamour thumbs gallery older women mature mistress naked old women thumbs mature pantyhose pictures mature pic gallery how to meet older women older black women mature glamour mature pantyhose pictures how to meet older women mature hardcore links mature nudists older women stories older holland older holland young girls older men mature asian women older women stories free older women galleries mature big tits black older ladies older women stories older black women older holland mature hardcore links mature women over 40 mature pic gallery mature women over 40 free older women galleries older black women how to meet older women

Challenge by mara on June 08, 0:35

Sorry for my links
girls in nylons hooters girls in pantyhose mature ladies in pantyhose free teen panties men's pantyhose girls in nylons office girls in nylons satin panty galleries cheerleader panty pics wet pantyhose panty thumbnails winnie-cooper pantyhose men caught wearing pantyhose panty thumbnails free teen panties panty post office girls in nylons celebrities in pantyhose mature women in pantyhose panty post girls in nylons men's pantyhose panty thumbnails winnie-cooper pantyhose free teen panties celebrities in pantyhose hooters girls in pantyhose men's pantyhose panty fetish wet pantyhose mature women in pantyhose satin panty galleries wet pantyhose office girls in nylons panty post mature women in pantyhose pantyhose images winnie-cooper pantyhose girls in nylons men caught wearing pantyhose

Challenge by juju on June 08, 4:27

Sorry for my links
teen panty pictures mature women in nylons teen panty pictures teen panty pictures teens in pantyhose pantyhose fetish free pantyhose pics free panty galleries pantyhose fetish pantyhose men pantyhose pic gallery teen panty pictures free pantyhose sites free panties panty girls bra and panty pics pantyhose fetish teens in pantyhose shiny pantyhose crotchless pantyhose pantyhose fetish free pantyhose pics pantyhose men pantyhose foot gallery pantyhose foot gallery free pantyhose pics silkies pantyhose crotchless pantyhose pantyhose men teens in pantyhose teen panty pictures free pantyhose pics teens in pantyhose free pantyhose sites mature women in nylons free pantyhose pics crotchless pantyhose teens in pantyhose teen panty pictures pantyhose pic gallery

Challenge by mary on June 08, 19:30

Sorry for my links
top mature t9p's free mature s3x pics mature content mature 1esbian free mature s3x pics older women pictures nud3 mature men victor mature nud3 mature s3xy mature women mature 1esbian meet older women free pics mature ladies free mature s3x pics nud3 mature men nud3 mature men mature cart00ns nud3 mature black women mature older t9p nud3 mature men meet older women mature older t9p mature s3x pics mature cart00ns s3xy mature women victor mature s3xy mature women victor mature older women pictures free mature movies bcn mature daily mature boobs mature older t9p free mature s3x pics victor mature victor mature mature personals mature 1esbian top mature t9p's mature content