Kindness City Blog

Posts tagged "literate":

Why don't we inline our tests with our code?

15 Jan 2023

One of my favourite things about TDD is that our tests act as documentation for our code. If I'm reading an unfamiliar codebase, and I know that it was properly TDDed, the first place I look is the tests. Well written tests tell me what the intent of some code is. Then if I'm interested in getting into the weeds of how it works, I can always read the code itself later.

(...)
Tags: python programming tdd xp literate testing
Other posts

There's no comments mechanism in this blog (yet?), but I welcome emails and fedi posts. If you choose to email me, you'll have to remove the .com from the end of my email address by hand.

You can also follow this blog with RSS.

Other posts