Steve Freeman Rotating Header Image

Tom White understands literate programming

Tom White shows that he understands the descriptive aspects of what we were trying to do with jMock

2 Comments

  1. Frank Carver says:

    When you read his examples the “eq” seems very hacky and bends the literate approach out of shape a bit.

    Why not add an extra method named something resembling “islike” as a synonym for the horrible eq, then you can say:

    assertThat(a, islike(“3″));

    or

    assertThat( theEndResult, islike( theDesiredExample ));

    More literate, hmm?

  2. Tom White’s Blog: Literate Programming with jMock

    Tom White’s Blog: Literate Programming with jMock: ” Posted by tomwhite on May 11, 2006 at 11:10 AM We’ve been using jMock at our company for some time now. We’ve found it great for test driven development and isolating our unit tests from the rest of the