Author

Bob Belderbos Avatar

Bob Belderbos

Latest articles

by

  • ,

    Reflections on the Zen of Python

    ·

    ·

    5 min read

    An initial version of this article appeared as a Pybites email first. If you like it join our friends list to get our valuable Python, developer and mindset content first … How following the Zen of Python will make your code better, a lot better. This epic set of axioms (triggered by typing import this in the […]


  • ,

    Building a 500 line API regression test suite

    ·

    ·

    4 min read

    This article appeared as a Pybites email first. If you like it consider joining our friends list for weekly Python, developer and (!) mindset content … Last year I built a cool API to post code images using our pybites-carbon tool. It will store the tip code in a database and store the code image in an […]


  • ,

    5 ways I use GitHub Actions

    ·

    ·

    3 min read

    I am increasingly using GitHub Actions these days. If you’re new to this you might want to check out our article or video. In this article I will show you 5 cool ways I use it day to day. Run tests and linters The first and most obvious reason is to automate tooling. Although you probably want to […]


  • , ,

    How to create a self updating GitHub Readme

    ·

    ·

    2 min read

    It was about time to give my GitHub profile a nice intro so inspired by Simon Willison’s blog post I decided to make an intro Readme that auto-updates. First I made a GitHub repo called bbelderbos, my username. That’s how it works: GitHub defaults to showing the Readme.md of your username’s repo on your profile page. […]


  • Finding new and removed Python 3.11 modules in 8 lines of code

    ·

    ·

    2 min read

    In our TIL Slack channel AJ shared a cool new find: Today I learned about sys.stdlib_module_names: a frozenset of strings containing the names of standard library modules. … AJ on the Pybites Slack – TIL (today-I-learned) channel So I thought to give it a little test drive, specifically checking for modules that were added and […]


  • ,

    Tips for clean code in Python

    ·

    ·

    5 min read

    In this article I will give you 10 tips for cleaner code. Hope this helps improve your Python code. 1. Smaller units. Break long functions (methods) into multiple smaller ones that do one thing (SRP or “Single-responsibility principle”). This will make your code more modular and easier to test. For example, a function that parses […]


  • Single or double quotes in Python?

    ·

    ·

    3 min read

    Whatever you think about Twitter these days, it’s pretty handy for us developers to ask questions and get inputs 💡 Last week I asked about single vs double quotes in Python: I thought double quotes were a given, black – “The Uncompromising Code Formatter”, defaults to them and I personally find them pleasant to the eye. […]


  • ,

    A super simple Zettelkasten note taking system

    ·

    ·

    3 min read

    Yesterday I found this amazing gist that got me running with Zettelkasten in no time 💪 Check out this short YouTube video where the author demos this workflow: As the Zen of Python wisely taught us: Simple is better than complex – and this is so true for what can easily be an overwhelming task […]


  • ,

    Making plots in your terminal with plotext

    ·

    ·

    2 min read

    In this blog post a quick script to plot the frequency of our blog articles in the terminal. It’s good to see that we’re getting back on track 🙂 The code gist is here. First we import the libraries we are going to use. As always we separate Standard Library modules from 3rd party ones […]