Featured

The posts I'd point you to first. Each one takes a single idea and works through it step by step.

Introduction to Huffman Trees

How Huffman coding trees compress data, and how to build a small compression tool with one in Python, from counting characters to writing the bits to a file and reading them back.

  • 7 min read
  • Python

Testing Tips: Avoid sleep in tests

Waiting with sleep makes a test suite slower with every test you add. Poll with a timeout instead, shown with a small Go example of a tip from Software Engineering at Google.

  • 3 min read
  • Go

Improving the throughput of a Producer ✈

Four ways to speed up a Go service that sends Kafka messages to an HTTP sink. Request batching alone took it from 100 to about 4,000 messages a second.

  • 3 min read
  • Go

Context Managers and Cross Cutting concerns in Python

Python context managers work a lot like decorators, which makes them a neat way to add caching, logging and error handling around code without mixing those concerns into it.

  • 3 min read
  • Python

Looking for something else? Browse every post by category or start from the newest posts.