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,...May 24, 2025 · 8 min readohofone.hashnode.dev
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...Mar 10, 2025 · 6 min readohofone.hashnode.dev
AIphobiaI really don't understand the aversion to AI from people in industry. Everyone from software engineers, artists, IT people, writers, film makers, and so on, seem to be heading for the hills over their fear of AI. I've come across this more frequently...Mar 3, 2025 · 5 min readohofone.hashnode.dev
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...Feb 24, 2025 · 6 min readohofone.hashnode.dev
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...Jun 22, 2024 · 3 min readohofone.hashnode.dev