<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adrian Guzman on Medium]]></title>
        <description><![CDATA[Stories by Adrian Guzman on Medium]]></description>
        <link>https://medium.com/@adrian1217guzman?source=rss-e3a3af47fe2a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*o2JVLBRBXMC5SrzyysSnLg.jpeg</url>
            <title>Stories by Adrian Guzman on Medium</title>
            <link>https://medium.com/@adrian1217guzman?source=rss-e3a3af47fe2a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:41:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adrian1217guzman/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Survived My First PR Comments on the Spaghettiest Code of My Life]]></title>
            <link>https://medium.com/@adrian1217guzman/i-survived-my-first-pr-comments-on-the-spaghettiest-code-of-my-life-21d62ef8d0bd?source=rss-e3a3af47fe2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/21d62ef8d0bd</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[humor]]></category>
            <category><![CDATA[comedy]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[tech-career]]></category>
            <dc:creator><![CDATA[Adrian Guzman]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 09:05:29 GMT</pubDate>
            <atom:updated>2025-11-07T18:09:40.619Z</atom:updated>
            <content:encoded><![CDATA[<p>Is it normal to write so much convoluted code for <em>one</em> event listener? Of course it is, says my sentient <em>spaghetti alla bottarga</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XR2t1vAE-c-26JaIAvFR8g.png" /><figcaption>“In many ways, [spaghetti alla bottarga] encapsulates the Italian philosophy of cooking, its essential idea: Get a very few excellent ingredients, then proceed to <strong>not</strong> fuck them up.” — Anthony Bourdain</figcaption></figure><p>Not to outdo the all-powerful all-knowing deity of <em>Pastafarianism</em>, but my wiggly, horrifying spaghetti code flails into action the moment a button is clicked on a recipe page — changing the image, text and hyperlinks without the use of a second HTML page — and transforms into another recipe entirely. <em>Praise Their Noodly Appendage!</em></p><p>My first project at Techtonica, a tech apprenticeship for women and non-binary adults, is a recipe page.</p><p>I lean into Halloween’s stomach-churning by making a recipe page for a <em>Peanut Butter Pickle Tuna Smoothie</em> (1 tablespoon of warm clam juice optional).</p><p>Something tells me not everyone wants to have gooey ooze descending their esophageal sewer, so I save gag-conscious users with an I-don’t-feel-like-throwing-up button that, once clicked, transforms the page into an <em>Açai Bowl</em> recipe. (Should this be too appetizing, users can refresh the page).</p><p>What I did without quirky prose: one button click replaces the entire page’s recipe — images, text, links and all — without loading a new HTML page.</p><figure><img alt="a disgusting button that activates horrifying code to switch to another recipe" src="https://cdn-images-1.medium.com/max/297/1*ls3ybdu0usuk4M6CarjFoQ.png" /><figcaption>What lurks behind this button is more chaotic than an air traffic controller’s radar display at the end of Thanksgiving weekend.</figcaption></figure><p>A Techtonica mentor offered to look at my PR on their own time, half-joking about having to put their baby down to look at my code. (Sorry little one, but I need to get my button code reviewed more than you need to develop a secure attachment.)</p><p>I waited for the PR comments with the anxiety of a chain smoker waiting for a lung X-ray.</p><p>Per the mentor’s feedback, I should rely more on CSS classes and toggle them in JavaScript, instead of spaghetti’ing styles directly with DOM manipulation to create and add styling — major <em>no bueno</em> as far as separation of concerns goes.</p><figure><img alt="my JavaScript code that violates separation of concerns" src="https://cdn-images-1.medium.com/max/750/1*JE3x2UcQ6tyRsRkhEoShPQ.png" /><figcaption>The <strong>major <em>no bueno</em> </strong>code in question. Fun fact: <strong><em>Major No Bueno</em> </strong>was the official moniker of the most ruthless military figure in Francoist Spain (citation needed).</figcaption></figure><p>Next time, I’d start by planning which CSS classes to toggle and break the logic into smaller functions instead of one giant event-listening hydra.</p><figure><img alt="Indecipherable JavaScript" src="https://cdn-images-1.medium.com/max/1024/1*8xSHgJOqzv_QRM1w8JzlMA.png" /><figcaption>*Unleashed hydra noises* — Where’s Hercules?!</figcaption></figure><p>Why does this matter? Mixing JS logic with styling is like using Ancestry.com as a dating app. Sure, it works. But does it honor separation of concerns?</p><p>The mentor went on: leave out comments about code that doesn’t exist; class names for links should be specific — <em>youtube-link</em> tells you far more than <em>second-link</em>.</p><figure><img alt="mentor giving feedback on html link naming conventions" src="https://cdn-images-1.medium.com/max/1024/1*X12ZSwibCGJleMOxR3_sNA.png" /><figcaption>Getting roasted in the PR comments.</figcaption></figure><p>They love my code comments! My green texts are like small warnings of an avalanche ahead. You’ll still die, but at least you’ll know when and why.</p><figure><img alt="mentor giving feedback on me writing good comments in my code" src="https://cdn-images-1.medium.com/max/479/1*LZPV0BTnPSMR9isYWFYhbg.png" /><figcaption>“And I looked, and behold a button: and its name that sat on it was Death, and spaghetti code followed it. (Noodelation 6.8, King Kraft Version)”</figcaption></figure><p>I worked on one event listener for an entire Sunday afternoon and even with all that time and effort it still looks like freshly digested spaghetti.</p><p>But I’m accepting the fact that making bad code is the path to making good code.</p><p>And that I lean too hard on spaghetti metaphors.</p><p>For my next article: ramen or udon metaphors?</p><figure><img alt="bowl of ramen" src="https://cdn-images-1.medium.com/max/760/1*qWuaxeTTpMdjm-VBLFHmkw.jpeg" /><figcaption>Sorry for the spoiler.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21d62ef8d0bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>