<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>undefined behavior</title><link>http://undefinedbehavior.co.uk/</link><description>Recent content on undefined behavior</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sun, 14 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="http://undefinedbehavior.co.uk/index.xml" rel="self" type="application/rss+xml"/><item><title>Comments</title><link>http://undefinedbehavior.co.uk/posts/1-5-comments/</link><pubDate>Sun, 14 Jun 2026 00:00:00 +0000</pubDate><guid>http://undefinedbehavior.co.uk/posts/1-5-comments/</guid><description>Single-line vs multi-line comments, why over-commenting is its own bug, and commenting out code for debugging.</description></item><item><title>Statements and the Structure of a Program</title><link>http://undefinedbehavior.co.uk/posts/1-1-statements-and-the-structure-of-a-program/</link><pubDate>Mon, 01 Jun 2026 00:00:00 +0000</pubDate><guid>http://undefinedbehavior.co.uk/posts/1-1-statements-and-the-structure-of-a-program/</guid><description>Starting from zero — what a statement is, what a function is, and why every C++ program needs exactly one main().</description></item><item><title>About</title><link>http://undefinedbehavior.co.uk/about/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://undefinedbehavior.co.uk/about/</guid><description>&lt;p>I&amp;rsquo;m Dan — a QA engineer at Jagex by day, currently teaching myself C++ by working through &lt;a href="https://www.learncpp.com">learncpp.com&lt;/a> and &lt;a href="https://www.youtube.com/@TheCherno">The Cherno&amp;rsquo;s&lt;/a> C++ series on YouTube.&lt;/p>
&lt;p>This is the log of that process: what I read, what I watched, what clicked, and what didn&amp;rsquo;t. Lessons are numbered where they map onto learncpp.com so you can follow along or skip straight to the topic you care about.&lt;/p>
&lt;p>Undefined behavior, for the uninitiated, is what happens when C++ code does something the standard doesn&amp;rsquo;t define the outcome of — the compiler is allowed to do &lt;em>anything&lt;/em>, including working perfectly, right up until it doesn&amp;rsquo;t. Felt like an honest name for a blog documenting the process of learning a language full of sharp edges.&lt;/p></description></item></channel></rss>