Let's write a ring buffer in Python! OK, that's not particularly exciting.
Let's use test-drivent development, that should make things a bit more
interesting. In this blog post I will go over the individual steps and my
train of thought, because TDD requires a certain discipline and mindset. Why a
ring buffer? A ring buffer is not quite trivial to implement because it has a
couple of edge cases, but at the same time it is not hard to implement either.
This is a post to follow along at home, so grab your text editor and let's get
going.
Continue reading…