Author

Bob Belderbos Avatar

Bob Belderbos

Latest articles

by

  • , ,

    6 Cool Things You Can Do With The Functools Module

    ·

    ·

    5 min read

    In this article let’s look at the functools Standard Library module and 6 cool things you can do with it (be warned, a lot of decorators are coming your way! 😍) … 1. Cache (“memoize”) things You can use the @cache decorator (formerly called @lru_cache) as a “simple lightweight unbounded function cache”. The classic example is […]


  • Introduction I recently re-engaged with one of my open source projects and it was a rewarding experience. 🎉 It was a Pybites project I had written the core for years ago, but thanks to some amazing Pythonistas in our community it became a way more mature tool so I had to get acquainted again. I […]


  • , , ,

    Debunking 7 Myths About Software Development Coaching

    ·

    ·

    11 min read

    If you give a man a fish, you feed him for a day. If you teach a man to fish, you feed him for a lifetime. Chinese proverb Transformative power of guidance 10 years ago I was overweight, maybe not more than +12 kg, but it definitely had a bearing on the quality of my […]


  • A challenge in software development is to keep things simple 🤯 For your code to not grow overly complex over time 😱 Simple is better than complex.Complex is better than complicated. Zen of Python 🐍 Simplicity in your code means fewer possibilities for bugs to hide and easier debugging when they do arise 📈 It […]


  • Anyone who’s worked with Python knows that modules can be a Godsend, saving you time, effort, and many lines of code. They even have namespacing built-in 💪 😍 To expand on this a bit: However, not all ways of using modules are equally beneficial. In this article, we will discuss why using import * can […]


  • Python allows you to use *args and **kwargs in function definitions to accept an arbitrary number of positional and keyword arguments, respectively. Here is a simple example: Different types of function arguments In the above example, the arbitrary_args function is defined to accept any number of positional and keyword arguments using the *args and **kwargs […]


  • In the world of programming, errors are inevitable. But how we choose to handle these errors can make the difference between a system that is robust and user-friendly and one that is fraught with ambiguous issues 😱 The Zen of Python famously states, “Errors should never pass silently.” This principle emphasizes the importance of addressing […]


  • ,

    How to better streamline your Python project using a Makefile

    ·

    ·

    1 min read

    Makefiles are awesome, and you can use them in your Python projects too (they are not only to compile and build C/C++ projects that is) 😎 They help you automate various tasks and streamline the development process overall 🚀 They allow you to: – Manage dependencies– Run tests– Build documentation– Format your code– Lint and […]


  • ,

    Why is Flat Better Than Nested? (Zen of Python)

    ·

    ·

    1 min read

    The short answer: deeply nested code can be hard to read and understand (and this not only applies to Python, but for any code really). Each level of indentation adds a level of complexity and an additional condition that the reader (which is often you!) has to keep in their head while trying to understand […]


  • ,

    5 tips to learn any new Python library faster

    ·

    ·

    4 min read

    This was a Pybites email first. To always get the latest and greatest content, subscribe here. Lately I have been learning some new libraries for weekly PDM Code Clinic demo sessions (e.g. PyScript, Flet, PySimpleGUI, Playwright, htmx, Redis, Leaflet, etc.) There is a general approach I take that makes this less painful and more fun. […]