Learning Python Decorators by Example

Decorators are a sometimes overlooked feature and they might be hard to grasp for beginning Pythonistas. I agree with Aaron Maxwell that mastering them “can massively magnify the positive impact of the code you write”, so make sure you add them to your toolkit if not done so already. In this article I explain what they do, why you want to use them and give some practical examples.

Building a Karma Bot with Python and the Slack API

We love Slack! But what if we can make it even cooler? Imagine: you are geeking out with your fellow developers on Slack and you want to give them credit. Or you can write “stupidsubject–” and it automagically shows “stupidsubject’s karma decreased to -2”. Enter Karma Bot. This is nothing new but building one myself was a great learning exercise and a fun tool we use on our Slack now.