<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Caio Andrade</title>
    <description>The latest articles on DEV Community by Caio Andrade (@caioertai).</description>
    <link>https://dev.to/caioertai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F234156%2F88af195e-c752-49a6-9f6f-d3939670b4e0.jpg</url>
      <title>DEV Community: Caio Andrade</title>
      <link>https://dev.to/caioertai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/caioertai"/>
    <language>en</language>
    <item>
      <title>Save us from this hell: how a magazine designer ended up in a Rails shop</title>
      <dc:creator>Caio Andrade</dc:creator>
      <pubDate>Wed, 18 Nov 2026 02:59:39 +0000</pubDate>
      <link>https://dev.to/caioertai/save-us-from-this-hell-how-a-magazine-designer-ended-up-in-a-rails-shop-6pn</link>
      <guid>https://dev.to/caioertai/save-us-from-this-hell-how-a-magazine-designer-ended-up-in-a-rails-shop-6pn</guid>
      <description>&lt;p&gt;I've worked with Rails since 2009. But I didn't get there as a developer. I got there as a magazine designer.&lt;/p&gt;

&lt;p&gt;Back then I was studying public relations at the Federal University of Maranhão, in Brazil, and thinking about switching to design. A few of us had started a student-run junior enterprise in the communications program, and through a mutual friend there, my design work ended up in front of Eduardo and Fabiano, two partners at a company called &lt;strong&gt;Corebit&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Facj5o8m5r2nhjwmse1hu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Facj5o8m5r2nhjwmse1hu.png" alt="Old Corebit Logo" width="332" height="110"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Corebit was a Rails shop, and those two were very early Rails adopters. They worked out of an office inside the university through a startup acceleration program, and they were pumping out small admin applications for companies around them, using Rails to deploy fast enough that the work still paid off at low prices. What they needed was someone to design those admin interfaces.&lt;/p&gt;

&lt;p&gt;So they called me in and asked if I wanted to work with them. I told them, "Well, I've never done web design, but I can look into it." I bought a few web design books, read as much as I could, went through case studies and examples of good practices, and thought, "Okay, I guess I can do this."&lt;/p&gt;

&lt;p&gt;I'd send them my designs as Illustrator files, PDFs, or a bunch of PNGs, whatever they asked for. Then they'd go through the very manual process of turning them into websites, which at the time pretty much meant slicing images. "Tableless design" (which is an expression no one needs anymore) was still new, so a lot of those early pages were still done with tables.&lt;/p&gt;

&lt;p&gt;After a few of my designs, they came back and said, "Look, we're willing to pay you more if you do the HTML and CSS for us. Just save us from this hell." That was more than 17 years ago, but that's the raw emotional memory that stuck. It was very annoying work and they didn't want to do it. I told them I didn't know how. They said, "No problem. Come over here and work at that table whenever you're doing anything for us. We'll help you with your first steps and teach you everything you need to get started."&lt;/p&gt;

&lt;p&gt;A few days later, I remember sitting down in their office, putting my notebook on the table, and installing everything we needed to get started. I didn't have a Mac and really didn't want to invest in one, so we installed Rails on Windows. Yes, Windows. And let me tell you, that absolutely sucked back then!&lt;/p&gt;

&lt;p&gt;Nothing worked on the first try, and installing any external library took a hundred Stack Overflow searches. And when you finally got it to work, everything was so slow that it was close to unusable for proper development. Many months later I moved to Linux, which was by far the best second option, and even that was still much harder to deal with than anything on a Mac. But at the time, Windows was the only option I had. They went through the whole installation with me, every annoying bit of it. Then I sat down with Fabiano, and he went through all the little details of basic HTML and CSS with me. He didn't even hand me links to read on my own. &lt;strong&gt;That absolute mad lad actually sat down with me and taught me the whole thing from scratch&lt;/strong&gt;, which, thinking back, is nuts.&lt;/p&gt;

&lt;p&gt;I got private lessons from a great, thoughtful Rails developer, and they were paying me for them.&lt;/p&gt;

&lt;p&gt;I spent a few more months like that, doing freelance designs for things they needed fast. Then they landed a really big project that needed someone full-time, and they hired me. That was 2009, and that's when I officially joined my first Rails shop.&lt;/p&gt;

&lt;p&gt;At first I was mostly doing HTML and CSS. JavaScript came in as a curiosity. The web was wild back then. People were trying very weird and unreasonable things, and you'd land on a website with some awkward animation and think, "How can I do that?" And someone would tell you that you needed JavaScript. Actually, not even JavaScript, you needed jQuery, because nobody was insane enough to learn raw JavaScript for front-end back then. It was pretty much a mess, years before ES6 cleaned things up.&lt;/p&gt;

&lt;p&gt;So I started working with jQuery, and that's when I looked at myself and thought, "Oh, I'm a front-end developer now, working in a Rails shop."&lt;/p&gt;

&lt;p&gt;And front-end in Rails is... very Rails-y. We were using Haml, so you'd be doing the usual Ruby in the template files: writing iterations in the views, touching Ruby classes, and figuring out how the controllers got things to the front-end. That's how I started writing a little Ruby and getting interested in Rails itself.&lt;/p&gt;

&lt;p&gt;I still talk to everyone I worked with at Corebit. We're all in the same WhatsApp group, and Fabiano and I have been playing World of Warcraft on and off since back then. Whenever a new expansion comes out, I still go play a little with him, tho it's been a while now. He just invited me to his wedding. I can't make it, but I already know what I'm picking off his gift list:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fscv3l857ph2b4c9hm096.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fscv3l857ph2b4c9hm096.png" alt="Gift list for the wedding" width="477" height="302"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We never lost touch, and I'm very, very grateful to them for getting me into this world of Rails.&lt;/p&gt;

&lt;p&gt;Life takes strange paths. Many years later, I became a Ruby on Rails teacher and got to travel the world teaching it on four different continents. That's a different story, tho. Everything started with the &lt;strong&gt;amazing patience of two great Rails developers&lt;/strong&gt; who somehow lived on the same small island way up north in Brazil as I did.&lt;/p&gt;

</description>
      <category>rails</category>
      <category>career</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>AI gave me spare time, and sprints don't know what to do with it</title>
      <dc:creator>Caio Andrade</dc:creator>
      <pubDate>Tue, 17 Nov 2026 03:12:40 +0000</pubDate>
      <link>https://dev.to/caioertai/ai-gave-me-spare-time-and-sprints-dont-know-what-to-do-with-it-ae4</link>
      <guid>https://dev.to/caioertai/ai-gave-me-spare-time-and-sprints-dont-know-what-to-do-with-it-ae4</guid>
      <description>&lt;p&gt;Ever since I started parallelizing a lot more of my work with AI, I've felt the need to go looking for side projects.&lt;/p&gt;

&lt;p&gt;Of course, I try to make sure those side projects are directly valuable to the company. And that's led me to things like exploring potential refactors in some of our classes, speeding up certain scripts, investigating slowdowns in our APM, and looking into our testing infrastructure to see if I can help there.&lt;/p&gt;

&lt;p&gt;That's just me as a developer, sitting there and thinking, "How can I better help this company?" And I can definitely find plenty of valuable things to do, between what I see in the code and my general understanding of the company's mission, its direction, and what matters most to our clients right now.&lt;/p&gt;

&lt;p&gt;But even with that, my view is never the complete picture. A manager or a stakeholder sees things from a different angle and knows about plans and priorities I might not. So what I pick might not be the best use of my time.&lt;/p&gt;

&lt;p&gt;I could be refactoring an area that's about to change for reasons nobody has announced yet. Or I could be speeding up a feature while the company's real focus is somewhere else entirely. So I do welcome a little bit of steering. I'd still like to keep some time for free exploration for sure, but it makes sense to let the people with the bigger picture point some of it.&lt;/p&gt;

&lt;p&gt;So the side projects aren't wasted time, and the system isn't completely broken. But I think there's a better way to handle this. For years, a lot of managers have prepared tickets in an almost sequential way. You work on one thing at a time and don't pick up the next task until the first one is done or about to be done. The only time you'd start something different is when you're waiting on something async, like a PR review or an answer from someone.&lt;/p&gt;

&lt;p&gt;With AI, though, a lot of the time you hand the agent a task for one ticket, and all of a sudden you need to find something else to do. That gives you plenty of time to go look at PRs or share some updates with the team, which is great. But sometimes that's not enough. You finish the PRs, you send your messages, and you're still waiting for the agent to come back.&lt;/p&gt;

&lt;p&gt;I think sprints make this especially awkward. Every time I wrap up my sprint tasks early, I have to go looking for the next ones to pick up, and that ends up messing with the numbers people are tracking behind the scenes. Which is fair, they plan around those numbers. But it shows how poorly the sprint model fits this new way of working.&lt;/p&gt;

&lt;p&gt;I'm not trying to come out strong against sprints or managers, and I'm not here to sell a new process either. I just think the way we plan work needs to be rethought. It needs to be a bit more flexible, and it needs to make room for the fact that I want to, and very reasonably can, work on three separate things at the same time now.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>career</category>
      <category>agile</category>
    </item>
    <item>
      <title>AI made fixtures unfair to factories</title>
      <dc:creator>Caio Andrade</dc:creator>
      <pubDate>Mon, 09 Nov 2026 22:55:31 +0000</pubDate>
      <link>https://dev.to/caioertai/ai-made-fixtures-unfair-to-factories-29b5</link>
      <guid>https://dev.to/caioertai/ai-made-fixtures-unfair-to-factories-29b5</guid>
      <description>&lt;p&gt;I've been thinking a lot about one of the oldest discussions we've had as Rails developers: factories or fixtures?&lt;/p&gt;

&lt;p&gt;At some point, I think we reached a consensus. &lt;strong&gt;Factories are easy for devs to manage&lt;/strong&gt;. They're familiar and simple, and that's good. But they have a lot of problems, especially with deep nesting. &lt;strong&gt;Factories get slower and slower if people aren't careful&lt;/strong&gt;, and let's just admit it, people very often aren't.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fixtures have always been annoying to manage&lt;/strong&gt;. They're written in a very data-heavy way, so they read more like data than objects. That brings its own problems, and they're annoying to write. &lt;strong&gt;But fixtures have always been super fast to run&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In a world where AI exists, I think fixtures now have such a massive edge over factories that it's not even fair anymore. The annoying part of dealing with fixtures is gone. You can just outsource it to AI.&lt;/p&gt;

&lt;p&gt;That's what I've been doing at my current job. I've been going through specs that spend pretty much 90% of their time in factories and changing them to fixtures.&lt;/p&gt;

&lt;p&gt;And then with very little cost those specs got generally 10x faster, sometimes even more. 8x is a certainty. 15x on a nice case.&lt;/p&gt;

&lt;p&gt;And most of this has been me telling an AI, &lt;em&gt;"Just rewrite this shit with fixtures."&lt;/em&gt; Goodbye.&lt;/p&gt;

&lt;p&gt;It's such a massive win for a really low cost.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>rails</category>
      <category>ruby</category>
    </item>
    <item>
      <title>Rails i18n - translation_missing class style in development</title>
      <dc:creator>Caio Andrade</dc:creator>
      <pubDate>Thu, 01 Oct 2020 22:36:19 +0000</pubDate>
      <link>https://dev.to/caioertai/rails-i18n-show-translationmissing-class-style-in-production-only-5f5c</link>
      <guid>https://dev.to/caioertai/rails-i18n-show-translationmissing-class-style-in-production-only-5f5c</guid>
      <description>&lt;p&gt;The &lt;code&gt;translation_missing&lt;/code&gt; class can be pretty useful in development to expose every missing &lt;code&gt;i18n&lt;/code&gt; key in your app. Rails adds a &lt;code&gt;&amp;lt;span class="translation_missing"&amp;gt;&amp;lt;/span&amp;gt;&lt;/code&gt; around every use of the &lt;code&gt;t&lt;/code&gt; helper that does not have a matching key in the YAML for the current locale.&lt;/p&gt;

&lt;p&gt;To help the team spot those, we recently started using a simple CSS rule:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.translation_missing&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;outline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1px&lt;/span&gt; &lt;span class="n"&gt;solid&lt;/span&gt; &lt;span class="n"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So we could all see red outlines on every missing key:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fd4ngahv3jm2pal6v5ho1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fd4ngahv3jm2pal6v5ho1.png" alt="Image of red outlines on missing translations" width="497" height="82"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The issue
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;This would also show those outlines in production! 😱&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most of the solutions I found on Stack Overflow were either outdated or too complex to trust.&lt;/p&gt;

&lt;p&gt;I decided to read how Rails creates those span classes and look for a fix. After my third monkey patch to Rails’ &lt;code&gt;ActionView&lt;/code&gt;, I realized a simpler approach might be in order.&lt;/p&gt;

&lt;h2&gt;
  
  
  The simple fix
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Create an &lt;code&gt;error_styles&lt;/code&gt; helper&lt;/strong&gt; that returns a &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; tag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="c1"&gt;# app/helpers/errors_helper.rb&lt;/span&gt;
&lt;span class="k"&gt;module&lt;/span&gt; &lt;span class="nc"&gt;ErrorsHelper&lt;/span&gt;
  &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;error_styles&lt;/span&gt;
    &lt;span class="n"&gt;tag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;style&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&amp;lt;~&lt;/span&gt;&lt;span class="no"&gt;CSS&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;translation_missing&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="n"&gt;outline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1px&lt;/span&gt; &lt;span class="n"&gt;solid&lt;/span&gt; &lt;span class="n"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="no"&gt;CSS&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
  &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And add it to your application layout:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight erb"&gt;&lt;code&gt;&lt;span class="c"&gt;&amp;lt;!-- app/views/layouts/application.html.erb --&amp;gt;&lt;/span&gt;
&lt;span class="cp"&gt;&amp;lt;%#&lt;/span&gt; &lt;span class="nc"&gt;Somewhere&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;head&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="cp"&gt;%&amp;gt;&lt;/span&gt;
&lt;span class="cp"&gt;&amp;lt;%=&lt;/span&gt; &lt;span class="n"&gt;error_styles&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nc"&gt;Rails&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;development?&lt;/span&gt; &lt;span class="cp"&gt;%&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>rails</category>
    </item>
    <item>
      <title>An ELI5 version of REGEX and NFA</title>
      <dc:creator>Caio Andrade</dc:creator>
      <pubDate>Thu, 06 Aug 2020 03:20:15 +0000</pubDate>
      <link>https://dev.to/caioertai/an-eli5-explanation-to-regex-and-nfa-2eaf</link>
      <guid>https://dev.to/caioertai/an-eli5-explanation-to-regex-and-nfa-2eaf</guid>
      <description>&lt;p&gt;Regex engines often talk about NFAs: &lt;strong&gt;nondeterministic finite automata&lt;/strong&gt;. That name is a mouthful, so here is the plain idea. An NFA is a little machine with a finite set of states. It reads input one character at a time and moves from state to state. “Nondeterministic” means that at some points more than one move is legal, or a move can fail and the machine still has other attempts to try. A lot of how a regex “tries” a pattern against a string is that kind of walk: advance when a piece matches, and when it does not, back up and try from another place.&lt;/p&gt;

&lt;p&gt;The rest of this piece is one concrete, slightly silly picture of that walk.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Automaton
&lt;/h2&gt;

&lt;p&gt;You have a robot (our automaton) that walks the REGEX dungeon door by door. Each door is one piece of the pattern. The string is the belt of keys the robot carries, used in order, one character at a time.&lt;/p&gt;

&lt;p&gt;To open the next door, the robot must spend the next key (or keys) that that door accepts. If it reaches the last door and gets through, the pattern matches. If it hits a key that cannot open the current door, it fails that attempt: it is sent back to the first door of the pattern and starts again from the &lt;em&gt;next&lt;/em&gt; character in the string. Progress on the previous attempt does not carry over.&lt;/p&gt;

&lt;p&gt;So with the string &lt;code&gt;"budega"&lt;/code&gt;, if an attempt fails on &lt;code&gt;"b"&lt;/code&gt;, the next attempt starts with &lt;code&gt;"udega"&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Literal doors
&lt;/h2&gt;

&lt;p&gt;For the dungeon &lt;code&gt;/there/&lt;/code&gt;, there are five doors in a row: &lt;code&gt;t&lt;/code&gt;, &lt;code&gt;h&lt;/code&gt;, &lt;code&gt;e&lt;/code&gt;, &lt;code&gt;r&lt;/code&gt;, &lt;code&gt;e&lt;/code&gt;. Each needs exactly that key, in that order.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;"there"&lt;/code&gt; works. The robot uses every key and exits the dungeon.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;"here"&lt;/code&gt; never opens the first door. It tries &lt;code&gt;"here"&lt;/code&gt;, then &lt;code&gt;"ere"&lt;/code&gt;, then &lt;code&gt;"re"&lt;/code&gt;, then &lt;code&gt;"e"&lt;/code&gt;, and leaves sad.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;"then go over there"&lt;/code&gt; looks promising at first. The robot opens &lt;code&gt;t&lt;/code&gt;, &lt;code&gt;h&lt;/code&gt;, &lt;code&gt;e&lt;/code&gt;, then stalls on &lt;code&gt;"n"&lt;/code&gt; because the next door wants &lt;code&gt;r&lt;/code&gt;. That attempt dies. It restarts from &lt;code&gt;"hen go over there"&lt;/code&gt;, fails the first door over and over, until it finally tries from &lt;code&gt;"there"&lt;/code&gt; and gets through.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Doors that accept more than one key shape
&lt;/h2&gt;

&lt;p&gt;Some doors take a choice of characters (ranges) or a flexible count (quantifiers).&lt;/p&gt;

&lt;p&gt;In &lt;code&gt;/[hm]el+ow?/&lt;/code&gt;, the five doors are: &lt;code&gt;[hm]&lt;/code&gt;, &lt;code&gt;e&lt;/code&gt;, &lt;code&gt;l+&lt;/code&gt;, &lt;code&gt;o&lt;/code&gt;, and &lt;code&gt;w?&lt;/code&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;"hello"&lt;/code&gt; matches. The first door accepts &lt;code&gt;h&lt;/code&gt; or &lt;code&gt;m&lt;/code&gt;. The &lt;code&gt;l+&lt;/code&gt; door takes both &lt;code&gt;l&lt;/code&gt;s. The &lt;code&gt;o&lt;/code&gt; door takes &lt;code&gt;o&lt;/code&gt;. The last door &lt;code&gt;w?&lt;/code&gt; accepts zero or one &lt;code&gt;w&lt;/code&gt;; here it takes zero and the robot still passes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;"mellow"&lt;/code&gt; matches for the same reasons. At &lt;code&gt;w?&lt;/code&gt; the robot spends its one &lt;code&gt;w&lt;/code&gt; and walks out.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I had a lot of fun painting this in bright colors. I hope the map still helps when the metaphor gets loud.&lt;/p&gt;

</description>
      <category>regex</category>
      <category>eli5</category>
      <category>nfa</category>
    </item>
  </channel>
</rss>
