<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on Ikwuka Okoye</title><link>https://ikwukao.dev/tags/python/</link><description>Recent content in Python on Ikwuka Okoye</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 11 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ikwukao.dev/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Building Asteroids with Python and Pygame: From Game Idea to Playable System</title><link>https://ikwukao.dev/journal/building-asteroids-with-python-and-pygame/</link><pubDate>Tue, 11 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/building-asteroids-with-python-and-pygame/</guid><description>&lt;h2 id="building-asteroids-with-python-and-pygame-from-game-idea-to-playable-system"&gt;Building Asteroids with Python and Pygame: From Game Idea to Playable System&lt;/h2&gt;
&lt;p&gt;Small games are deceptively useful engineering projects.&lt;/p&gt;
&lt;p&gt;They may contain only a few objects on screen, but those objects introduce many of the same problems found in larger software systems: state management, object lifecycles, input handling, timing, rendering, collision detection, and the need to keep individual components understandable as the codebase grows.&lt;/p&gt;
&lt;p&gt;The Asteroids project was built as an opportunity to explore those problems through a compact interactive system using Python and Pygame.&lt;/p&gt;</description></item><item><title>From Markdown to HTML: Designing the Static Site Generator Pipeline</title><link>https://ikwukao.dev/journal/static-site-generator-markdown-to-html/</link><pubDate>Tue, 11 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/static-site-generator-markdown-to-html/</guid><description>&lt;h2 id="from-markdown-to-html-designing-the-static-site-generator-pipeline"&gt;From Markdown to HTML: Designing the Static Site Generator Pipeline&lt;/h2&gt;
&lt;p&gt;A static site generator is fundamentally a transformation system.&lt;/p&gt;
&lt;p&gt;It takes source content, processes that content through a series of stages, and produces files that can be served directly to users.&lt;/p&gt;
&lt;p&gt;For my static site generator, the core transformation looks like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Markdown
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ↓
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Blocks
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ↓
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Block Types
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ↓
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Inline Text Nodes
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ↓
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;HTML Nodes
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ↓
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;HTML
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The value of this architecture is not simply that it works.&lt;/p&gt;</description></item><item><title>Building a Static Site Generator in Python: From Markdown to HTML</title><link>https://ikwukao.dev/journal/building-a-static-site-generator-in-python/</link><pubDate>Mon, 10 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/building-a-static-site-generator-in-python/</guid><description>&lt;h2 id="building-a-static-site-generator-in-python-from-markdown-to-html"&gt;Building a Static Site Generator in Python: From Markdown to HTML&lt;/h2&gt;
&lt;p&gt;A static site generator looks simple from the outside.&lt;/p&gt;
&lt;p&gt;You write some Markdown, run a command, and HTML files appear in an output directory.&lt;/p&gt;
&lt;p&gt;The interesting engineering work happens between those two points.&lt;/p&gt;
&lt;p&gt;Building a static site generator from scratch is a useful exercise because it exposes several concepts that are normally hidden behind frameworks and libraries: parsing, intermediate representations, tree structures, rendering, filesystem operations, and deterministic builds.&lt;/p&gt;</description></item><item><title>Converting Markdown Blocks into Semantic HTML</title><link>https://ikwukao.dev/journal/converting-markdown-blocks-into-semantic-html/</link><pubDate>Mon, 10 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/converting-markdown-blocks-into-semantic-html/</guid><description>&lt;h2 id="converting-markdown-blocks-into-semantic-html"&gt;Converting Markdown Blocks into Semantic HTML&lt;/h2&gt;
&lt;p&gt;Markdown documents are written as a continuous stream of text, but browsers consume structured HTML.&lt;/p&gt;
&lt;p&gt;Bridging those two representations requires more than replacing a few characters.&lt;/p&gt;
&lt;p&gt;A static site generator needs to understand the boundaries between blocks and determine what each block represents.&lt;/p&gt;
&lt;p&gt;That was one of the central problems in my Static Site Generator project.&lt;/p&gt;
&lt;h2 id="what-is-a-markdown-block"&gt;What Is a Markdown Block?&lt;/h2&gt;
&lt;p&gt;A block is a logical unit of Markdown content.&lt;/p&gt;</description></item><item><title>Parsing Markdown into an HTML Tree: Designing the Intermediate Representation</title><link>https://ikwukao.dev/journal/parsing-markdown-into-an-html-tree/</link><pubDate>Mon, 10 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/parsing-markdown-into-an-html-tree/</guid><description>&lt;h2 id="parsing-markdown-into-an-html-tree-designing-the-intermediate-representation"&gt;Parsing Markdown into an HTML Tree: Designing the Intermediate Representation&lt;/h2&gt;
&lt;p&gt;One of the easiest mistakes to make when building a Markdown-to-HTML converter is to think of the problem as string replacement.&lt;/p&gt;
&lt;p&gt;Replace &lt;code&gt;**text**&lt;/code&gt; with &lt;code&gt;&amp;lt;strong&amp;gt;text&amp;lt;/strong&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Replace &lt;code&gt;*text*&lt;/code&gt; with &lt;code&gt;&amp;lt;em&amp;gt;text&amp;lt;/em&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Replace headings with &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;At first, this seems sufficient.&lt;/p&gt;
&lt;p&gt;It quickly becomes difficult once documents contain nested structures.&lt;/p&gt;
&lt;p&gt;A more robust approach is to introduce an intermediate representation between Markdown and HTML.&lt;/p&gt;</description></item><item><title>Testing a Static Site Generator: Small Contracts, Reliable Output</title><link>https://ikwukao.dev/journal/static-site-generator-testing/</link><pubDate>Mon, 10 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/static-site-generator-testing/</guid><description>&lt;h2 id="testing-a-static-site-generator-small-contracts-reliable-output"&gt;Testing a Static Site Generator: Small Contracts, Reliable Output&lt;/h2&gt;
&lt;p&gt;A static site generator is a good example of a system where small bugs can propagate through multiple layers.&lt;/p&gt;
&lt;p&gt;A mistake in Markdown parsing can eventually appear as malformed HTML.&lt;/p&gt;
&lt;p&gt;A malformed text node can produce incorrect links.&lt;/p&gt;
&lt;p&gt;A block-classification error can cause an entire section of a page to render incorrectly.&lt;/p&gt;
&lt;p&gt;That makes testing especially important.&lt;/p&gt;
&lt;p&gt;The solution is not necessarily hundreds of large end-to-end tests.&lt;/p&gt;</description></item><item><title>Building Reliable Tool Use into an AI Agent</title><link>https://ikwukao.dev/journal/ai-agent-tool-use/</link><pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/ai-agent-tool-use/</guid><description>&lt;h2 id="building-reliable-tool-use-into-an-ai-agent"&gt;Building Reliable Tool Use into an AI Agent&lt;/h2&gt;
&lt;p&gt;The moment an AI agent needs to interact with something outside the language model, tool use becomes central to its design.&lt;/p&gt;
&lt;p&gt;A model can explain how to query a database.&lt;/p&gt;
&lt;p&gt;It cannot query the database unless the surrounding application gives it a mechanism to do so.&lt;/p&gt;
&lt;p&gt;That mechanism is the tool.&lt;/p&gt;
&lt;h2 id="why-tools-matter"&gt;Why Tools Matter&lt;/h2&gt;
&lt;p&gt;A language model operates primarily through generated information.&lt;/p&gt;</description></item><item><title>Designing the Architecture of an AI Agent</title><link>https://ikwukao.dev/journal/ai-agent-architecture/</link><pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/ai-agent-architecture/</guid><description>&lt;h2 id="designing-the-architecture-of-an-ai-agent"&gt;Designing the Architecture of an AI Agent&lt;/h2&gt;
&lt;p&gt;Building an AI agent is very different from building a simple application that sends a prompt to a language model and displays the response.&lt;/p&gt;
&lt;p&gt;A useful agent needs to do more than generate text. It needs to interpret a goal, decide what should happen next, use tools when necessary, maintain enough state to complete the task, observe the result, and recover when something goes wrong.&lt;/p&gt;</description></item><item><title>Making an AI Agent Reliable</title><link>https://ikwukao.dev/journal/ai-agent-reliability/</link><pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/ai-agent-reliability/</guid><description>&lt;h2 id="making-an-ai-agent-reliable"&gt;Making an AI Agent Reliable&lt;/h2&gt;
&lt;p&gt;The most impressive AI agent demo can still be a poor piece of software.&lt;/p&gt;
&lt;p&gt;A demonstration may work perfectly when the model responds as expected, every API is available, every tool succeeds, and the task is small.&lt;/p&gt;
&lt;p&gt;Real systems are not that forgiving.&lt;/p&gt;
&lt;p&gt;Models produce unexpected outputs.&lt;/p&gt;
&lt;p&gt;Networks fail.&lt;/p&gt;
&lt;p&gt;Tools time out.&lt;/p&gt;
&lt;p&gt;External APIs change.&lt;/p&gt;
&lt;p&gt;Users provide ambiguous instructions.&lt;/p&gt;
&lt;p&gt;An agent that cannot handle these conditions is not reliable.&lt;/p&gt;</description></item><item><title>Managing Memory and State in an AI Agent</title><link>https://ikwukao.dev/journal/ai-agent-memory-and-state/</link><pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/ai-agent-memory-and-state/</guid><description>&lt;h2 id="managing-memory-and-state-in-an-ai-agent"&gt;Managing Memory and State in an AI Agent&lt;/h2&gt;
&lt;p&gt;An AI agent becomes significantly more useful when it can maintain context across multiple steps.&lt;/p&gt;
&lt;p&gt;But &amp;ldquo;memory&amp;rdquo; is often used too loosely.&lt;/p&gt;
&lt;p&gt;For an engineer, it is more useful to distinguish between the different kinds of information an agent needs to retain.&lt;/p&gt;
&lt;p&gt;Some information belongs to the current execution.&lt;/p&gt;
&lt;p&gt;Some belongs to the conversation.&lt;/p&gt;
&lt;p&gt;Some may need to persist beyond the current session.&lt;/p&gt;</description></item><item><title>What Building an AI Agent Taught Me About Backend Engineering</title><link>https://ikwukao.dev/journal/ai-agent-lessons-learned/</link><pubDate>Sun, 09 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/ai-agent-lessons-learned/</guid><description>&lt;h2 id="what-building-an-ai-agent-taught-me-about-backend-engineering"&gt;What Building an AI Agent Taught Me About Backend Engineering&lt;/h2&gt;
&lt;p&gt;Building an AI agent initially appears to be an exercise in working with language models.&lt;/p&gt;
&lt;p&gt;In practice, much of the work quickly becomes familiar backend engineering.&lt;/p&gt;
&lt;p&gt;Requests need validation.&lt;/p&gt;
&lt;p&gt;State needs to be managed.&lt;/p&gt;
&lt;p&gt;External services need timeouts.&lt;/p&gt;
&lt;p&gt;Failures need to be handled.&lt;/p&gt;
&lt;p&gt;Operations need to be observable.&lt;/p&gt;
&lt;p&gt;Components need clear boundaries.&lt;/p&gt;
&lt;p&gt;The language model adds a new dimension, but many of the underlying engineering principles remain the same.&lt;/p&gt;</description></item><item><title>Building OpsPilot: Why I Started a DevOps Platform</title><link>https://ikwukao.dev/journal/building-opspilot/</link><pubDate>Tue, 04 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/building-opspilot/</guid><description>&lt;p&gt;OpsPilot started with a simple question: &lt;strong&gt;what would happen if I built the operational tooling I kept wishing I had?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;As I continued working across backend engineering, DevOps, and cloud-native infrastructure, I found myself repeatedly dealing with the same categories of operational work. Instead of treating those tasks as isolated scripts and commands, I wanted to explore what it would look like to bring them together into a coherent engineering platform.&lt;/p&gt;</description></item><item><title>Asteroids</title><link>https://ikwukao.dev/projects/asteroids/</link><pubDate>Sat, 18 Jul 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/projects/asteroids/</guid><description>&lt;hr&gt;
&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;p&gt;Asteroids is a classic arcade-style space shooter rebuilt from the ground up in Python using Pygame.&lt;/p&gt;
&lt;p&gt;The project focuses on the fundamentals behind interactive 2D applications: managing a real-time game loop, responding to user input, updating object state, detecting collisions, and rendering a constantly changing scene at a consistent frame rate.&lt;/p&gt;
&lt;p&gt;Rather than relying on a game engine to handle the underlying mechanics, the project provides a practical exercise in understanding how those systems fit together.&lt;/p&gt;</description></item><item><title>Static Site Generator</title><link>https://ikwukao.dev/projects/static-site-generator/</link><pubDate>Thu, 16 Jul 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/projects/static-site-generator/</guid><description>A Python static-site generator exploring parsing, AST-like structures, Markdown transformation, HTML generation, and clean software architecture.</description></item><item><title>BookBot</title><link>https://ikwukao.dev/projects/bookbot/</link><pubDate>Tue, 14 Jul 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/projects/bookbot/</guid><description>A Python CLI project focused on file processing, text analysis, dictionaries, iteration, and clean command-line application structure.</description></item><item><title>AI Agent</title><link>https://ikwukao.dev/projects/ai-agent/</link><pubDate>Fri, 10 Jul 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/projects/ai-agent/</guid><description>&lt;hr&gt;
&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;p&gt;AI Coding Agent is a command-line developer tool built to explore how modern AI agents can reason about software projects and assist with real-world engineering workflows.&lt;/p&gt;
&lt;p&gt;The project focuses on the practical foundations of an AI-powered coding assistant: understanding a repository, processing developer instructions, reasoning about available context, and producing useful actions or code changes.&lt;/p&gt;
&lt;p&gt;Rather than treating an LLM as a simple text-generation interface, the project explores the architecture required to turn language models into practical software-engineering agents.&lt;/p&gt;</description></item></channel></rss>