Robust Testing of the Template Method Pattern in Python with Pytest and Abstract FactoriesIntroduction Testing abstract anything has been a challenge for developers since the dawn of object-oriented programming. The Template Method Pattern (TMP) is a common design pattern that allows you to define the skeleton of an algorithm in a method,...8 min read·ohofone.hashnode.devMay 24, 2025
On Nested Python FunctionsIntroduction There's a lot of opinions on nested (or "inner") functions in Python. RealPython.com already has a fantastic article about them, especially with respect to closures and decorators, so I won't reinvent the wheel by discussing those issues...6 min read·ohofone.hashnode.devMar 10, 2025
API Pagination with Python GeneratorsPython generators are an underutilized tool. In this article, we demonstrate how they can be used for pagination on API calls. What is a Generator? The best way to understand generators is in contrast to normal functions. In Python, you define a func...6 min read·ohofone.hashnode.devFeb 24, 2025
Local Perforce TinkeringI've been setting up Helix Core in preparation for some game dev work. I am not a centralized vcs kind of guy, I love me my git and git loves me (sometimes). But git LFS just didn't seem up to snuff for the large binary demands of game development, s...3 min read·ohofone.hashnode.devJun 22, 2024