Recent posts

Git: Effective branching using workflows

August 20, 2017 | 2 minute read

In the Getting started with git we learned about local and remote branches (master and origin/master respectively), and in Git: Keeping in sync we learned how to keep the two branches in sync. This is all great stuff, but if you’re working in a team and/or on a serious project, using only the master branch is not a good idea. The reason being th...

Getting started with git

August 19, 2017 | 7 minute read

What is git? Wikipedia has a great answer for this question: Git is a version control system for tracking changes in computer files and coordinating work on those files among multiple people. It is primarily used for source code management in software development, but it can be used to keep track of changes in any set of files. As a distribute...

Testing your code with pytest

August 13, 2017 | 3 minute read

If you’re fairly new to coding chances are you’ve run into an issue where you make a minor change in one place, and then end up breaking your script in another place. In order to find out what went wrong you start adding print statements all over the place to debug your code. While it sound like a good idea, what you’re actually doing is relyin...

Allure2: A GUI for your code tests

August 13, 2017 | 4 minute read

In my previous post I touched on the basics of how you can use pytest to test your code. In this post I’ll be covering how you can use Allure2 to prettify your pytest results. Allure2 Adapter for pytest The first thing we need to is install the Allure adapter for Pytest. As the documentation states, this repository contains a plugin for py.tes...

Python: Shadowing

July 17, 2017 | 2 minute read

In my previous post, Python: Scope, I touched on the topic of Shadowing. In this post I’ll be delving deeper into it. As Wikipedia says, variable shadowing occurs when a variable declared within a certain scope (decision block, method, or inner class) has the same name as a variable declared in an outer scope. There are some interesting debate...