Archive for April, 2009

Testing — a different take

Tuesday, April 14th, 2009

A few weeks ago I learned about an interesting technique one of my professors used when writing algorithmic code. He’d first write a very naive, straightforward implementation that wasn’t algorithmically smart but gave correct results. To create the optimal design, he’d use the naive one as a baseline to verify that the answers are correct.

Definitely interesting, gives a much larger input/output space then just doing something table driven.

Python Literate Programming Book

Wednesday, April 8th, 2009

As I was taking a shower, I thought of an interesting idea, creating a literate programming style book about either CPython internals or tinypy using Sphinx and RestructuredText. The most difficult part would probably be including snippets of the C code and keeping it updated with new code commits and changes.

It may be easier to create such a thing using LyX and noweb, I’ll have to investigate further…