Reading Code: Python's requests library

In preparation for the latest PizzaPY I browsed the code of Python's requests library. (You've got to love open source.) I'm of the opinion that must read lots of code in order to be able to write decent code yourself. The more diverse you read, the better for you. Basically …

Static Type Checking with MyPy

This Tuesday saw the 23rd gathering of the the PizzaPY Pythonistas in Cebu City, Philippines. The topic was “Static type-checking with MyPy”, which I presented.

The presentation and the demo files are on GitHub. All you need is a UNIX, Docker and Git—the rest Docker and Bash scripts do …

Switched: Detect state changes in pipe

I am sitting in a café and the internet is flaky. The wifi is stable, though, so my dumb Xubuntu thinks that all is well, while a sturdy ping in a terminal window tells me otherwise.

This sucks.

A few minutes (cough) later, I am getting Desktop notifications when the …

A Jupyter Notebook for Python's Behave

This is about a quick hack I did during PyCon Philippines 2016 and which I presented as a Lightning Talk.

Writing tests is daily bread for a software engineer these days. (We're going to be a real engineering discipline one day!) For example, in Python there's the basic unittest module …

Uploading files with PhantomJS, GhostDriver and Python

For a while, our Selenium tests could not upload files to PhantomJS. That's a problem, if you want to test a platform for making phone calls easy — you do need to upload mp3 files. The tests would be stuck, or simply fail to upload the file without complaint. Now, after …