Maybe I’m to dumb to see, but I cannot figure out what is the meaning of the different subdirectories (e.g. t0, t1, t2, t3) in the code you can find on github. I cannot find any explanation to it in the README, either.
I am not sure if I understand your concern. I’ll take a stab at it anyway… The different subdirectories relate to the directories in the book. For example code-t0/ is from code/t0.
t0, t1, t2 are different points in time. Sorry if it is clunky.
it was my expectation, too, that the different directories refer to different “points in time”.
But I fail to map the t0, t1, and t2 directories to chapters in the book. And I do not understand what you mean with “directories in the book”? I’m reading the PDF version - is there perhaps some structure/directories in the other formats (mobi/epub) that aren’t in the PDF? Only thing I see when I search for “t0” or “t2” strings in the PDF is that on some “title bars” above code snippets you see that the given file location refers to these subdirectories. Is this what you mean?
I have seen books recently that use Git to capture the history of code snippets in the book. This method is especially useful when there is one central example which is expanded upon throughout the book. I have used it myself in traingins.
As a bonus, it is then possible to easily diff two versions of a particular code snippet.
Then again, that is quite a bit of work when doing new revisiouns (because you can’t have a Git repository of a Git repository), however, I found Git makes it relatively easy to pull up an entirely new branch with revisions all along the history.
By the way, it is a while since I worked through your book, and I did all the examples, but I gave up on the t0..tn thingie also.