DSimon comments on Coding Rationally - Test Driven Development - Less Wrong

25 Post author: DSimon 01 October 2010 03:20PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (82)

You are viewing a single comment's thread. Show more comments above.

Comment author: DSimon 05 October 2010 02:18:08PM 0 points [-]

I tend to work on small projects, and because of the way I'm wired (i.e. because I haven't rewired myself out of it), when I'm working on something larger, I can't really keep many pieces of it in my head at once. When I try to, bits which aren't drawing my attention right now will fall out of my brain, and sometimes those bits were important. So I have to focus on small pieces at a time[...]

Ye hairy gods, do NOT attempt to rewire yourself out of this. :-)

I don't know of any programmers who are able to productively hold very large chunks of implementation in their head at once. Writing in small pieces with frequent result checking is nearly always a good idea even if your result checking isn't regressive or automated. You should be happy you started out with this habit instead of having to force yourself into it.

Comment author: Relsqui 05 October 2010 05:37:48PM 0 points [-]

wnoise summed it up well. I'm very pleased to have the habit (and am occasionally confused by people who don't do it). But it's frustrating to have that mental limitation. It makes me feel a bit dumb when I'm talking to Real Actual Programmers. :)

Comment author: wnoise 05 October 2010 03:23:27PM 0 points [-]

The habit is very good. The necessity of it is bad. Larger working memory is incredibly useful for a programmer.