News for hackers. Stuff that matters.
Re:Interview with Donald Knuth by swombat on Saturday April 26, 2008 @01:23PM (#174406)
Interestingly, especially looking at the BDD movement, I don't think that unit tests are opposed to Literate Programming. In fact, so long as the unit tests are written in the right language and with the same attention to the reader, they are, in effect, simply an executable version of the "literate" part of Literate programming.

One of the best things about BDD/TDD is not the fact that you have tests, but the fact that it forces you to think about what you're going to build and how you'll be interacting with it, before you actually start writing the code. That would seem to be the advantage with LP as well.

So it seems it all boils down to "think before you code". Maybe all those development methodologies revolve around that idea, and the desperate attempt to force programmers under time pressure to actually spend the time to think before they write code :-)

Daniel

There are no comments on this comment yet.