<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data-Oriented Design on Shai Asher</title><link>https://slow-is-smooth.io/tags/data-oriented-design/</link><description>Recent content in Data-Oriented Design on Shai Asher</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Fri, 27 Nov 2026 07:30:00 +0200</lastBuildDate><atom:link href="https://slow-is-smooth.io/tags/data-oriented-design/index.xml" rel="self" type="application/rss+xml"/><item><title>Behaviour as Data</title><link>https://slow-is-smooth.io/blog/behaviour-as-data/</link><pubDate>Fri, 27 Nov 2026 07:30:00 +0200</pubDate><guid>https://slow-is-smooth.io/blog/behaviour-as-data/</guid><description>&lt;p&gt;A modifier is a row in a table. The difficulty curve is a header of constants. Almost every line the invaders say is a &lt;code&gt;constexpr&lt;/code&gt; array. Two things in this game that a lesser codebase would express as control flow are instead expressed as data: the &lt;strong&gt;wave modifiers&lt;/strong&gt; (the comedic per-wave twists) and, more quietly, all the &lt;strong&gt;tuning&lt;/strong&gt; and the &lt;strong&gt;jokes&lt;/strong&gt;. Logic reads that data at fixed hook points and never hard-codes any of it.&lt;/p&gt;</description></item><item><title>One Struct, Many Functions</title><link>https://slow-is-smooth.io/blog/one-struct-many-functions/</link><pubDate>Fri, 27 Nov 2026 07:00:00 +0200</pubDate><guid>https://slow-is-smooth.io/blog/one-struct-many-functions/</guid><description>&lt;p&gt;There is no &lt;code&gt;EntityManager&lt;/code&gt;. There is no &lt;code&gt;GameState&lt;/code&gt; interface with virtual &lt;code&gt;enter()&lt;/code&gt; and &lt;code&gt;exit()&lt;/code&gt;. There is no component registry. There is one struct that holds everything, a pile of free functions that operate on it, and a &lt;code&gt;switch&lt;/code&gt;. That&amp;rsquo;s the whole design, and it is a design — the simplicity is load-bearing, not accidental. The invaders find the lack of hierarchy demeaning. They had hoped, at minimum, for a middle-management layer. They got a flat &lt;code&gt;struct&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>