<?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 Noah Goodrich on Medium]]></title>
        <description><![CDATA[Stories by Noah Goodrich on Medium]]></description>
        <link>https://medium.com/@noah.goodrich?source=rss-8bd1468de264------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XTdfToBg1LH62zLXKWPgsA.jpeg</url>
            <title>Stories by Noah Goodrich on Medium</title>
            <link>https://medium.com/@noah.goodrich?source=rss-8bd1468de264------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:29:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@noah.goodrich/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[The Long Game, Part 3: The Architect’s Anchor]]></title>
            <link>https://medium.com/snowflake/the-long-game-part-3-the-architects-anchor-4a02f5788f11?source=rss-8bd1468de264------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a02f5788f11</guid>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[data-superhero]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Noah Goodrich]]></dc:creator>
            <pubDate>Mon, 09 Mar 2026 14:01:01 GMT</pubDate>
            <atom:updated>2026-03-09T14:01:01.801Z</atom:updated>
            <content:encoded><![CDATA[<h4>Building Systems That Remember Why</h4><figure><img alt="A 3D animated scene of a woman with glasses and a young boy leaning over a workbench together, studying a set of blueprints. The warm workshop behind them features hexagonal shelves lined with books and tools, a checklist on the wall, and a large arched window overlooking snowy mountains." src="https://cdn-images-1.medium.com/max/1024/1*I4RbtgSFPpvzqUpPdpnesw.png" /><figcaption>The best architects don’t just hand you the blueprint. They pull up a chair and show you how to read it.</figcaption></figure><p>My son was born six weeks early. Three pounds, fourteen ounces. He spent his first three weeks in the NICU, and I spent those three weeks learning how to take care of an infant inside a framework I didn’t know I needed.</p><p>The nurses taught me everything. Bottle feeding, diaper changes, reading the monitors. Every task had a procedure. Every mistake had a safety net. A nurse was always within arm’s reach, not to do the work for me, but to catch me before a mistake became a catastrophe. By the time we brought him home, I could handle him on my own.</p><p>The thing is, it wasn’t my first rodeo. Sixteen years earlier our first daughter was born. I didn’t realize then how hopelessly in over my head I was. Having never babysat, and with only one younger sibling two years my junior, I didn’t know the first thing about babies or their care. My wife, on the other hand, had been providing care for infants, toddlers, and small children for most of her life. And she tried to teach me. But I couldn’t absorb it because there was no shared context, no common framework or language for us to build from. When she was clearly better at something, my default became to step back entirely. The burden fell on one person.</p><p>So what changed with our son? The NICU nurses didn’t have better knowledge than my wife. They had a different delivery system. A structured, rigid environment where I could practice with real stakes and fail safely. Fixed schedules, standard procedures, common language. The nurses created a shared context between us. That’s why I could go home and operate on my own. The context transferred with me.</p><p>If you’ve ever been part of an organization where the same one or two engineers had to be on every outage call, where nothing got resolved unless a specific person was in the room, you’ve seen this same pattern. The knowledge exists. It’s just trapped in someone instead of encoded in something.</p><h3>Calm, Connect, Coach</h3><p>Our son is what researchers call a “spirited” child. The term comes from Dr. Mary Sheedy Kurcinka, whose work on temperament has helped millions of families. A spirited kid isn’t broken. They’re just running at higher settings: more intense, more sensitive, more persistent, more perceptive, more uncomfortable with change. These are traits we value in adults. They’re exhausting in a three-year-old.</p><p>Last Sunday at a birthday party, he hit the wall. Too many people, too much noise. He started screaming, then started tearing apart the balloon photo booth. We took him to a quiet room downstairs. He was still running hot, but gradually he came down. Found his equilibrium.</p><p>Kurcinka’s framework for moments like these is three words: Calm, Connect, Coach. Calm means you regulate yourself first, then help the child. Structure and routine are your primary preventive tools. Connect means you meet them where they are emotionally before you redirect. Coach means that once they’re calm and feel understood, then you teach.</p><p>The power isn’t in the complexity. It’s in the simplicity. I can remember three words at 2 AM on four hours of sleep. I don’t need a hundred tools for each step. Just one or two reliable ones. His favorite lullaby. Making sure he’s fed (we call him our little hobbit). And when nothing else works, just holding him and letting our calm heartbeat do what words can’t.</p><p>The framework didn’t make our son less spirited. But it gave my wife and me, two people with different temperaments and instincts, a shared context to operate from. The techniques vary. The sequence is the same. Inside those ground rules, there’s room for each of us to bring our own judgment.</p><h3>Shared Context in the Wild</h3><p>If you were building web applications in the mid-2000s, you probably remember what it felt like before opinionated frameworks existed. Martin Fowler’s <em>Patterns of Enterprise Application Architecture</em> had given us the vocabulary. We knew about Data Mappers and Active Record and Table Data Gateways. But knowing the patterns and consistently applying them in a codebase were two completely different problems. Every team reinvented the wheel. Every project had its own conventions, or worse, no conventions at all.</p><p>Ruby on Rails changed that. DHH took Fowler’s patterns, picked specific ones (Active Record, convention over configuration), and enforced them across every implementation of the framework. You could walk into any Rails project on earth and know where things lived on day one. The framework did the remembering so the developer could focus on the problem. That’s what shared context looks like at scale.</p><p>The same arc played out in cloud infrastructure. AWS released their Well-Architected Framework years ago. Azure followed. Every mature platform eventually recognizes that principles without opinionated implementation leave a gap. And that gap gets filled by whoever happens to be the most experienced person on the team, which means it’s fragile, inconsistent, and walks out the door when they do.</p><p>Snowflake is on the same trajectory. The company published their Well-Architected Framework in November 2025. But the community had been reaching for it long before that.</p><p>Data Superhero Keith Belanger talks about what he refers to as “<a href="https://www.cloverdx.com/behind-the-data/data-superheroes">popcorn architecture</a>,” teams without a real data strategy that just build technical debt on top of technical debt, each decision made in isolation, each fire fought without learning from the last one. His argument is that you need a business strategy backed by a data strategy, and then everybody operates under that shared understanding. Without it, every project is a new adventure in reinventing wheels that already exist.</p><p>Another Data Superhero, Sudhendu Pandey, in <a href="https://medium.com/snowflake/snowflake-well-architected-framework-unofficial-guide-1663f43619c6"><em>Snowflake Well-Architected Framework — Unofficial Guide</em></a> covers design principles and checklists for each pillar because the author was “searching for go-to resources to validate what we have done.” He was an experienced practitioner, looking for a shared reference point. Because he wanted the context codified so his team could operate from it together.</p><p>In early 2023, our Snowflake Solutions Engineer reached out with something I hadn’t asked for: a health assessment of our account. She’d gone through our environment and built a diagnostic picture of where we were versus where we should have been, organized around Snowflake’s own best practices.</p><p>That report taught me things I didn’t know. This was still early in my own Snowflake journey, and while I understood the basics of watching warehouse sizes and query runtimes, I didn’t have the context to evaluate things like disk spillage patterns or workload-to-warehouse mapping. She wasn’t just confirming what I already knew. She was creating shared context between Snowflake’s institutional knowledge and our specific environment. Manually. For one account. The same thing the NICU nurses did for me: taking expertise that existed somewhere and delivering it in a form that actually transferred.</p><p>The Snowflake community is in the same place web development was before Rails. We have the patterns (the Well-Architected Framework). What’s still missing is the opinionated implementation: a layer that picks specific checks, enforces specific conventions, and creates shared context that doesn’t depend on one person’s memory. Fowler gave us the vocabulary. Rails gave us the framework. Snowflake’s Well-Architected Framework gives us the principles. What comes next is the convention layer that makes those principles runnable, repeatable, and accessible to every team, not just the ones lucky enough to have a Solutions Engineer or a veteran architect in the room.</p><h3>The Beginning of a Framework</h3><p>So what does that convention layer actually look like for Snowflake?</p><p>Start with what the Solutions Engineer showed me. She wasn’t running anything exotic. She was checking fundamentals. Are your warehouses sized appropriately for the workloads they’re running? Do you have spillage that suggests your compute is undersized, or idle time that suggests it’s oversized? How many users have ACCOUNTADMIN, and do they actually need it? What are your worst-performing queries doing, and why?</p><p>These aren’t advanced questions. They’re the Snowflake equivalent of checking blood pressure and cholesterol. The problem isn’t that nobody knows they matter. Teams know. The problem is that teams are being asked to do more with fewer people and smaller budgets every quarter. The first things to hit the cutting room floor aren’t the shiny features that sales and marketing are convinced will land the next big client. They’re the unsexy work: tightening up security vulnerabilities, refactoring a query that shows linear growth in execution time as data volume increases, reviewing warehouse utilization before it becomes a cost problem. The fundamentals get deferred until they become fires.</p><p>Here’s the thing that anyone who has ever tried to scale a product already knows: you have to have a tight security profile and right-side-up unit economics before you scale.</p><p>If you want to start thinking about this for your own environment, try two things this week. First, run SHOW WAREHOUSES and look at the auto_suspend values. How many of your warehouses are set to auto-suspend after 600 seconds (the default)? For warehouses that serve ad-hoc queries, that&#39;s probably fine. For warehouses that run scheduled jobs every hour, that means they&#39;re sitting idle burning credits for nine minutes out of every ten. Second, run SHOW GRANTS OF ROLE ACCOUNTADMIN and count the users. If you have more than two or three, ask yourself whether each of those people genuinely needs the keys to the kingdom, or whether they got ACCOUNTADMIN because it was faster than figuring out the right role.</p><p>Those two checks take five minutes. They won’t give you a full picture, but they’ll give you a feel for whether your environment’s fundamentals are solid or drifting. And that instinct, the habit of checking, is the first step toward building the shared context your team needs to operate without depending on one person’s memory.</p><h3>The Anchor Holds</h3><p>The NICU didn’t make me less scared. It took the knowledge my wife had been trying to share for years and delivered it in a form I could finally absorb. Not because the content changed, but because the structure matched the learner. Our son still gets overwhelmed at large, chaotic gatherings. The Calm, Connect, Coach framework didn’t make him less spirited. It gave us a shared way back when things get loud.</p><p>In Part 1, I wrote that the real test of my time as a Data Superhero will be the quality of the architects who take my place in 2036. In Part 2, I asked you to turn a scar into a map.</p><p>Part 3 is about what comes after the map. It’s about encoding what you know into shared context so your team can operate from it together. Not as a document that sits in a wiki and gets stale. As a living framework: principles that guide decisions, checks that verify them, and conventions that make the right choice the default.</p><p>The knowledge was always available. The gap was never information. It was context, trapped in people instead of encoded in systems.</p><p>Build the NICU. Be the nurse.</p><p><strong>Your move:</strong> In Part 2, I asked you to write down a piece of hard-won institutional knowledge. Now take the next step. Think about your own Snowflake environment and list out the things you’d want to verify if you were assessing its health from scratch. What would you check? What would you want automated so you’d never have to remember it again? That list is the seed of a framework. And coming up in the Well-Architected Framework series, we’re going to build that framework together, one pillar at a time.</p><p><em>Next in The Long Game: Part 4, Builders of Builders. Before that, I’ll be launching a new series on Snowflake’s Well-Architected Framework where we’ll turn these principles into practice.</em></p><p><em>Noah Goodrich is a Snowflake Data Superhero and architect. Connect with him on </em><a href="https://www.linkedin.com/in/noahgoodrich/"><em>LinkedIn</em></a><em>.</em></p><p><em>All of the ideas, opinions, and stories in this article are mine, written in my own words first. I then worked with Claude to shape that raw material into something structured and readable. It was a great collaborator on flow and pacing. The experiences are mine. The craft is a partnership.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a02f5788f11" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/the-long-game-part-3-the-architects-anchor-4a02f5788f11">The Long Game, Part 3: The Architect’s Anchor</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Long Game, Part 2: The Wisdom Gap]]></title>
            <link>https://medium.com/snowflake/the-long-game-part-2-the-wisdom-gap-eb640ad0321e?source=rss-8bd1468de264------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb640ad0321e</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[data-superhero]]></category>
            <category><![CDATA[mentorship]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Noah Goodrich]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 20:01:00 GMT</pubDate>
            <atom:updated>2026-03-04T20:01:00.789Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why AI Has Perfect Memory and Zero Wisdom, and Why That Should Change How You Build</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SttKZPslkb5FX9OVPFXqzQ.png" /><figcaption>AI can read the blueprint. It can’t teach you why it matters.</figcaption></figure><p>I was going to write a very different article.</p><p><a href="https://medium.com/snowflake/the-long-game-74cb3d68e173">Part 1</a> of this series was about stewardship. The quiet, unglamorous work of building systems and people that thrive long after you’re gone. Part 2 was supposed to be a tidy follow-up about mentorship and the difference between knowledge and wisdom.</p><p>And then I read Matt Shumer’s piece, <em>Something Big is Happening</em>.</p><p>Frankly, it hit me in the gut. Not because the technology predictions were new to me. I build on the Snowflake Data Platform every day, and I’ve been using AI tools aggressively for over a year. What hit me was the personal math. I grew up in the world of “go to college, get a good job, work hard until retirement.” I’ve spent two decades building deep expertise in data architecture based on that promise. Now I have a nineteen-year-old daughter, a three-year-old son, and a six-month-old daughter, and someone credible is telling me that the professional world I’ve been preparing them for might not exist by the time they need it.</p><p>I know I’m not the only one feeling this. So instead of the article I planned, I want to share what I actually found when I spent a year pressure-testing AI against real work. It didn’t confirm the hype. It didn’t dismiss it either. It pointed at something more specific and more useful than the “AI replaces us all” vs. “AI is just a tool” debate.</p><h3>The Experiment</h3><p>Over the past year, I started building an accelerator toolkit for my own Snowflake projects. As that work progressed, I realized there wasn’t a great codified solution for enforcing Snowflake’s Well-Architected Framework as part of the development process. So I started building one. AI coding assistants became a core part of my workflow, and for a while, it was genuinely impressive. Scaffolding code, writing functions, generating test suites. I was moving fast.</p><p>Then the project got complex.</p><p>Slowly, the AI started making architectural decisions that contradicted ones we’d agreed on three sessions earlier. It would write tests that technically passed but tested nothing meaningful. Vanity coverage that made the numbers look good while leaving the actual risk areas untouched. It would solve a structural problem on Monday and reintroduce the exact same problem on Thursday.</p><p>So I built guardrails. Deterministic rules. A linting framework that could catch violations and feed them back to the AI in a loop. Clear success criteria: fix the violations, make the tests pass, reduce the error count each iteration. If you fail to improve three times in a row, stop.</p><p>It didn’t work. Not catastrophically. Incrementally. One violation would get fixed and two new ones would appear in a different layer. A module would get refactored for testability, quietly breaking an interface contract that six other modules depended on. Like watching someone solve a Rubik’s cube by unsolving a different face with every turn.</p><p>Here’s what got me. The AI had perfect knowledge of clean architecture patterns. It could recite them, apply them, explain them back to me. What it completely lacked was the understanding of <em>why those patterns exist</em>. It didn’t carry the memory of the production outage that taught me why dependency boundaries matter. It didn’t feel the weight of the $50,000 Snowflake bill I once saw hit a team that hadn’t set STATEMENT_TIMEOUT_IN_SECONDS at the account level, leaving the default at two full days. It had never inherited a Snowflake environment from a predecessor and had to untangle a web of overprivileged service accounts that nobody documented and nobody remembered creating.</p><p>It had knowledge. It didn’t have wisdom.</p><h3>How Wisdom Actually Forms</h3><p>A few weeks before my AI experiment fell apart, my three-year-old taught me something about this distinction that no research paper could have.</p><p>We’d been going through a phase. I’d put him down for a nap, close the door, and come back to find his room destroyed. Clothes yanked from the dresser, books and toys scattered wall to wall, sheets off the bed, lamp on the floor. A full tornado. First few times, I did what most tired parents do: told him it wasn’t acceptable, then cleaned it up myself after he fell asleep. Faster. Easier. And it made zero difference.</p><p>The last time it happened, I sat down on the floor with him and we picked up every piece together. Every book back on the shelf. Every toy in the bin. We made his bed. It wasn’t the painful ordeal I expected. It was a teaching moment and a relationship-building moment rolled together. He learned that making messes is okay AND that he’s responsible for cleaning them up. That dad is a safe person when messes happen. What it required from me was patience, and a reframe from “I need this room clean” to “I need him to learn.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*64weeo8LOOP9CIm3jmELAg.png" /><figcaption>The tornadoes stopped. Not because he was punished. Because he felt the weight of the consequence in his own hands.</figcaption></figure><p>The tornadoes stopped. Not because he was punished. Because he felt the weight of the consequence in his own hands.</p><p>That’s how wisdom forms. Not through being told. Through feeling the weight.</p><p>His baby sister was born six weeks premature, barely four pounds. She spent her first month in the NICU. One day we were out running errands and drove past the intersection where we’d normally turn to go to the hospital. From his car seat, he started shouting “Sister! Sister!” and crying since we’d kept driving. His nineteen-year-old sister has a hard time remembering the route to the grocery store when she visits from Maryland. But this little boy had cemented the way to his baby sister because the emotional weight of that connection demanded it. His brain literally reorganized itself around something that mattered to him.</p><p>You can’t prompt your way to that. Wisdom forms when something matters enough to change how you’re wired. And that process requires two ingredients that AI fundamentally lacks: felt consequences and accumulated context.</p><p>Felt consequences are the tornado. The cleanup. The sleepless night after you drop a table in production. The memory of being burned is what rewires the brain, not the knowledge that the stove is hot.</p><p>Accumulated context is what turns those individual scars into judgment. Juniors ask me clean, binary questions all the time. “Should I index this column?” “Subquery or join?” And the answer almost always starts with “it depends.” Not because I’m being evasive, but I once watched a correlated subquery outperform a join by orders of magnitude on a specific workload, even though conventional wisdom says otherwise. That surprise broke an assumption I’d been carrying, and the break made me a better architect. AI gives confident, clean answers. No lifetime of broken assumptions tempering its certainty. It doesn’t have the pause. The squint. The “well, I saw something weird once…”</p><p>(My son’s version of accumulated context is still in the early stages. Thanks to a Moana phase from months ago, when I prompt him to say “thank you” his default response is still a very enthusiastic “Welcome!” We’re working on it.)</p><h3>The Stakes</h3><p>Here’s where this stops being philosophical and starts being urgent.</p><p>The Snowflake Well-Architected Framework exists because thousands of practitioners made expensive mistakes. Every principle is encoded experience. Someone learned that a warehouse without auto-suspend bleeds credits silently for months. Someone discovered that a permissive network policy on a single admin account can bypass an entire security perimeter. Someone watched query spillage turn a $1 operation into a $100 one.</p><p>When I tried to get AI to enforce the WAF holistically across an entire project, it fell short. Specific violations? Fine: “this warehouse is missing auto-suspend, here’s the ALTER statement.” But ask it to look at an environment as a whole and identify structural problems? Out comes the textbook. Boxes get checked. And the things that only show up when you’ve seen enough environments to know where the bodies are usually buried? Those get missed.</p><p>And here’s the trap: the industry is now making a calculation. AI can produce senior-level output at junior-level cost. So why hire juniors? Why invest in the slow, inefficient process of teaching when the AI can just do the thing?</p><p>We tell our children that failure is how you learn, and we mean it. We swap war stories about the kid who painted the dog and flooded the bathroom. But in the business world, where quarterly earnings and board expectations demand efficiency above all else, failure is a liability. “Fail fast” is a slogan that works great right up until you fail to fail fast enough. And now AI is promising to skip the failure step entirely, which is the most seductive pitch imaginable to a CFO staring at a budget.</p><p>I was once mentoring a new engineer who hit the dreaded white screen of death in our PHP codebase. I knew immediately what the problem was. Instead of handing him the answer, I walked him through debugging with print statements. Tracing the output. Finding where it stopped. He was frustrated. He kept asking “Why won’t you just tell me what to fix?!” Because telling him the fix solves one bug. Walking him through the process gives him a skill he’ll use for the rest of his career. That twenty minutes of frustration was the foundation of something permanent.</p><figure><img alt="Animated scene of a frustrated young man staring at a blank white computer screen while a mentor watches patiently from the doorway, choosing not to intervene." src="https://cdn-images-1.medium.com/max/1024/1*wnPLxw4zBlmGxbqs_RdbFA.png" /><figcaption>Because telling him the fix solves one bug. Walking him through the process gives him a skill he’ll use for the rest of his life.”</figcaption></figure><p>If we stop creating those moments, if we let the bottom rungs of the ladder disappear, we won’t just lose a generation of junior engineers. We’ll lose the future seniors. The future architects. The people who carry the wisdom forward after we’re gone. In Part 1, I wrote about Captain Marquet’s miracle on the USS Santa Fe: the culture he built kept producing exceptional leaders for years after he left. The framework survived the man. If we replace the learning process with AI output, the framework dies with the people who built it.</p><h3>The Opportunity</h3><p>AI doesn’t have to kill the learning process. It can supercharge it.</p><p>Imagine a junior data engineer starting at a company running on Snowflake. In the old world, they’d get a wiki page, maybe a mentor if they were lucky, and spend six months absorbing institutional judgment through osmosis and pain. Now imagine that same junior with access to an AI assistant loaded with the architectural decision records for their specific environment. Not just the WAF best practices, but the <em>reasons behind the local choices</em>. Why this organization uses a specific RBAC model. Why the warehouse strategy looks the way it does. What happened the last time someone shortcut the cost controls.</p><p>In this scenario, the AI doesn’t replace the mentor. When the junior is about to configure a warehouse without auto-suspend, the AI doesn’t just fix it silently. It explains why auto-suspend matters, tells the story of the time it wasn’t set, and lets the junior make the correction themselves. The learning still happens. The “ouch” still registers. But the feedback loop is tighter, the context is richer, and the senior’s time is freed up for the judgment calls that actually require human experience.</p><p>That’s using AI to make the senior a better teacher and the junior a faster learner. The human pipeline stays intact.</p><p>But it only works if the seniors do their part. The AI can’t teach wisdom it was never given. Someone has to encode the <em>why</em> into the system. Not just “use RBAC” but “here’s the story of what happened when we didn’t, and here’s the judgment call I made when the standard model didn’t fit.”</p><p><strong>So here’s your move.</strong> Pick one architectural decision you’ve made in your Snowflake environment. Not a textbook best practice. One where you chose a specific approach because you’d been burned by the alternative. Write down the why. Not the documentation-friendly version. The real one. “We set STATEMENT_TIMEOUT_IN_SECONDS to 3600 at the account level because a query once ran for two days on the default timeout and the bill nearly sank our quarterly budget. Here&#39;s what I learned about how our team actually uses compute resources, and why the default two-day timeout is dangerous for any environment where developers have direct warehouse access.&quot;</p><p>Now share it. With your team, with a junior engineer, in your project docs, on LinkedIn. Anywhere that someone who comes after you might find it when they need it.</p><p>You just turned a scar into a map. That’s something AI cannot do. And if enough of us do it, if we treat the encoding of <em>why</em> as a core part of our professional responsibility, then the Wisdom Gap doesn’t have to grow. It can shrink. Not because the AI gets wiser, but because we build the systems that let human wisdom scale beyond the humans who earned it.</p><p>That’s the long game. That’s stewardship in the AI era.</p><p>My three-year-old isn’t going to grow up in the same professional world I did. That used to terrify me. I’m starting to think it might be okay, as long as the people building that world remember that the point was never to replace the humans. The point was to build a better world <em>for</em> them.</p><p>At least, that’s what I tell myself when I’m up at 2 AM with the baby and the fear creeps back in. Some nights it’s more convincing than others. But I’d rather build toward something worth believing in than sit with the alternative.</p><p><em>Next in The Long Game: Part 3, The Architect’s Anchor: Building Systems That Remember Why.</em></p><p><em>Noah Goodrich is a Snowflake Data Superhero and architect. Connect with him on LinkedIn.</em></p><h3>A Note on Process</h3><p><em>All of the ideas, opinions, and stories in this article are mine, written in my own words first. I then worked with Claude to shape that raw material into something structured and readable. It was a great collaborator on flow and pacing. It could not have written the story about my son and the tornado, because it never sat on that floor. The wisdom is mine. The craft is a partnership.</em></p><p><em>Here’s the thing, though. Even in that partnership, the article’s own thesis kept proving itself. When early drafts came back bloated and circular, repeating the same arguments three different ways, I had to be the one to point that out. Once I did, the AI built a solid strategy to consolidate them into a clean flow. But it didn’t notice the problem on its own. Same story with the AI detection scoring. All the knowledge about how to evaluate writing for AI tells was right there in the model. But it wasn’t until I specifically asked for a score that it built a system and walked me through remediation. The capability was there. The initiative wasn’t. That’s the Wisdom Gap in miniature. Not a gap in what AI knows, but in knowing when and why to apply it.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb640ad0321e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/the-long-game-part-2-the-wisdom-gap-eb640ad0321e">The Long Game, Part 2: The Wisdom Gap</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Long Game]]></title>
            <link>https://medium.com/snowflake/the-long-game-74cb3d68e173?source=rss-8bd1468de264------2</link>
            <guid isPermaLink="false">https://medium.com/p/74cb3d68e173</guid>
            <category><![CDATA[snowflake-data-superhero]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Noah Goodrich]]></dc:creator>
            <pubDate>Wed, 04 Feb 2026 15:01:01 GMT</pubDate>
            <atom:updated>2026-02-04T15:01:01.771Z</atom:updated>
            <content:encoded><![CDATA[<h4>Leadership, Stewardship, and the Heart of a Data Superhero</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7prSiGYpfVvr3snaAljJQA.png" /></figure><p>Yesterday, Snowflake announced the <strong>2026 Data Superheroes</strong>. It is a profound honor to be named to this cohort, but as the excitement settles, I find myself reflecting on what that title actually represents. In a world obsessed with <strong>“Super” leadership performance</strong> and <strong>“Heroic” effort</strong>, we often miss the core of the role.</p><p>The word “Superhero” is a double-edged sword. It implies capes and the “Hero” fallacy: the person who stays up all night putting out fires. But real leadership isn’t about the adrenaline of the rescue; it’s about the quiet, often invisible discipline of the fire-warden who ensures the fire never starts in the first place. To truly understand the role, we have to look past the badge and recognize a fundamental chain: <strong>To be a Data Superhero is to be a Leader, and to be a Leader is to be a Steward.</strong></p><h3>The Hypothesis of the Long Game</h3><p>In the business world, we are trained to worship the “Next.” Next quarter’s profits, next week’s sprint velocity, or the next election cycle. We reward those who spike near-term performance, hailing them as great leaders.</p><p>But there is a fundamental flaw in this metric.</p><p>The real test of leadership is not measured by the state of the system while you are in command, but by the health, culture, and resilience of that system ten, twenty, or fifty years after you are gone. Real leadership is <strong>Stewardship, </strong>the act of building something that doesn’t just survive your departure but thrives because of the foundations you laid.</p><h3>The Ultimate Leadership Lab: The Home</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T4Pe1nn1Ol_DIGu_j-6HaA.png" /></figure><p>Nowhere is this long game more visible than in my own home. I am in a unique position to observe the ripple effects of stewardship in real-time. I have a nineteen-year-old daughter, a three-year-old son, and a six-month-old daughter.</p><p>I see my early parenting mistakes playing out with my oldest, and I get the rare chance to adjust my approach with my younger two. In the daily grind of dishes and bills, it is almost always faster to just do it ourselves. We choose short-term efficiency over the inefficient work of teaching.</p><p>We forget that the goal isn’t just a clean house today; it’s building happy, healthy people who will one day be parents and leaders themselves. Whether it is hand-holding my three-year-old through picking up his toys or watching him haul a trash bag taller than himself to the curb, these moments are the only way he learns the weight of responsibility.</p><h3>The Labors of a Wild Robot</h3><p>This struggle is captured beautifully in <em>The Wild Robot</em>. The story of Roz and Brightbill demonstrates the grueling labor of stewardship — the trials, the bond of love, and the difficult reality that a parent must let their child struggle and fail so they can grow. The real leadership in that story isn’t Roz’s survival; it is the bond she creates and the fact that her values become the very thing that saves the island when she is unable to intervene. She took ownership of training the next generation, recognizing that an inefficient investment today is the only way to save the future.</p><h3>From the Home to the Submarine</h3><p>This philosophy scales directly into the professional world. In <em>Turn the Ship Around</em>, Captain David Marquet realized that the miracle of the USS <em>Santa Fe</em> wasn’t that they became the best-performing crew in the fleet under his command. The miracle was what happened after he left: the culture of leader-leader was so deeply soldered into the crew that they continued to produce an unprecedented number of successful commanders for years to come.</p><p>The framework survived the man. That is the gold standard of stewardship.</p><h3>What it Means to be a Data Superhero</h3><p>If we want to be real leaders, we have to reject the common misconceptions about what this title actually means.</p><p><strong>Being a Leader or a Data Superhero is NOT about:</strong></p><ul><li><strong>Auditioning to be the smartest person in the room</strong>: Leadership is not a performance art. If you are the only one with the answers, you haven’t led — you’ve created a bottleneck.</li><li><strong>Hoarding solutions</strong>: It is about building the frameworks so others can find the path themselves.</li><li><strong>Heroic firefighting</strong>: Constant crises are a sign of poor stewardship, not great talent.</li></ul><p>Instead, being a Data Superhero is about being a <strong>two-way bridge</strong>. It is about taking the bruises and lessons from the trenches and feeding them back to Snowflake to improve the product. It is about acting as a steward for the community, helping those new to the Data Cloud avoid expensive pitfalls, and ensuring they have a world-class experience from day one.</p><p>We lead by recognizing that we are at a crossroads. While some choose to use AI as an excuse to do “the same with less,” the mission of a Data Superhero is to help build the leaders of tomorrow who will <strong>do more with more.</strong> Mastering the Snowflake platform in this era doesn’t just make you a coder; it makes you an indispensable architect. You aren’t just moving data; you are delivering the AI products that will define the next decade.</p><h3>Take Command of the Future</h3><p>If we want to be real Stewards, we have to change our evaluation of success:</p><ol><li><strong>Prioritize Culture over Velocity</strong>: Ask: “If I left tomorrow, would the team still make the right architectural decisions?”</li><li><strong>Value “Inefficient” Teaching</strong>: The time spent mentoring a junior is a down-payment on the future health of your organization.</li><li><strong>Build Frameworks for Wisdom</strong>: Use tools and guidelines to bake your wisdom into the pipeline, allowing others to learn from experience without paying the high price you had to pay.</li></ol><p>The real test of my time as a Data Superhero won’t be the articles I wrote in 2026. It will be the quality of the architects who take my place in 2036.</p><h3>Join the Mission</h3><p>Leadership is a team sport, and stewardship starts with community.</p><ul><li><strong>Find Your Local Heroes</strong>: I encourage you to <a href="https://usergroups.snowflake.com/">find your local Snowflake User Group</a> and connect with the Data Superheroes in your area. They are there to be your bridge.</li><li><strong>Connect with Me</strong>: If you are a junior engineer looking for guidance or a leader trying to build better guardrails for your team, <a href="https://www.linkedin.com/in/noahgoodrich/">reach out to me on LinkedIn</a>. Let’s talk about how we can build the next generation of leaders together.</li></ul><p><strong>Next Up: Part 2 — The Wisdom Gap: Why Knowledge is Not the Same as Experience.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74cb3d68e173" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/the-long-game-74cb3d68e173">The Long Game</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your AI Coding Agent Needs a Professional Architect]]></title>
            <link>https://medium.com/@noah.goodrich/why-your-ai-coding-agent-needs-a-professional-architect-4947ac9132ef?source=rss-8bd1468de264------2</link>
            <guid isPermaLink="false">https://medium.com/p/4947ac9132ef</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Noah Goodrich]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 18:44:57 GMT</pubDate>
            <atom:updated>2026-01-12T18:44:57.328Z</atom:updated>
            <content:encoded><![CDATA[<h4>Dealing with the “Conflict of Design” in AI-assisted development.</h4><figure><img alt="On the left, “The Scrapyard Satellite”: a chaotic mass of weathered bronze scrap metal and exposed wires (representing unguided AI code). It is a rigid object where removing one part risks total collapse. On the right, “The Modular Space Station”: a sleek, futuristic station composed of distinct, glowing modular segments connected by universal docking ports (representing Clean Architecture)." src="https://cdn-images-1.medium.com/max/1024/1*9BR8PXsE5vHTLS7xMCL03Q.png" /><figcaption>Structural Chaos vs. Engineered Integrity: Moving from rigid, AI-generated ‘Scrapyard’ logic to the modular resilience of Clean Architecture.</figcaption></figure><h3>The Hypothesis: Why Structural Chaos is a “Success Disaster”</h3><p>AI coding assistants like Cursor and Antigravity have fundamentally changed the speed of software development. But this speed comes with a hidden, high-interest tax: <strong>Structural Chaos.</strong></p><p>The core problem isn’t that the AI writes “broken” code; it’s that the AI is optimized for the path of least resistance. Left to its own devices, an AI agent will build Feature A using one design pattern and Feature B using a completely different, conflicting one. While “Structural Chaos” sounds like an academic complaint, its consequences are concrete:</p><ul><li><strong>Impossible to Scale:</strong> Moving from a local filesystem to S3, or from one database to another, requires a total rewrite of business logic because the infrastructure is “soldered” into the core.</li><li><strong>Resistant to Change:</strong> When business rules are coupled to specific REST APIs, moving to an event-driven microservice becomes a multi-week refactoring nightmare.</li><li><strong>Cognitive Overload:</strong> Engineers cannot easily reason through the code because the “truth” is duplicated and hidden across conflicting, haphazard layers.</li><li><strong>Untestable:</strong> Logic is so entangled with infrastructure that writing a simple unit test requires a heroic effort of mocking and monkeypatching.</li></ul><h3>The Origin Story: The Snowfort Pivot</h3><p>I didn’t actually set out to build a standalone architectural linter. I was in the middle of a complete rewrite of <strong>Snowfort</strong> , my Snowflake management tool.</p><p>I wasn’t staring at a blank slate of code. I was dealing with exhausting <strong>refactor churn</strong>. The AI just kept trying to fix the same errors over and over again, resulting in messy logic, brittle tests, and duplicated or conflicting patterns. I’d think we had a framework and code structure negotiated and figured out, only to find a session or two later that we were re-introducing the same coding irregularities I thought we’d already addressed.</p><p>I realized I had to stop the Snowfort rewrite and build the <strong>Architect</strong> first. I needed a way to lock in those negotiated rules so they wouldn’t drift between sessions. I researched universal frameworks that could work across any application — from CLI tools to Snowflake ELT pipelines. I settled on <strong>Clean Architecture</strong> because it provides a rigid, logical structure that isolates business “truth” from infrastructure “details.”</p><h3>Clean Architecture 101: The Four Layers</h3><p>To provide <strong>Astrometrics Mapping</strong> for the AI and prevent it from drifting into unstable sectors, we define four distinct layers. Our tool allows you to lock these coordinates into your pyproject.toml, ensuring the AI always knows exactly where it is in the &quot;Onion Architecture&quot;.</p><ol><li><strong>Entities (Domain):</strong> Encapsulate enterprise-wide business rules. These are pure Python objects, least likely to change when external tools update.</li><li><strong>Use Cases:</strong> Orchestrate the flow of data between entities and the outside world. This layer is isolated from externalities like databases.</li><li><strong>Interface Adapters:</strong> Gateways and Repositories that convert data from the format most convenient for Use Cases to the format required by external agencies (like a DB or Web framework).</li><li><strong>Frameworks &amp; Drivers (Infrastructure):</strong> The outermost layer where the “details” live — specific SQL clients, file systems, or API libraries.</li></ol><h3>The Problem Gallery: Bad Habits &amp; Ugly Tests</h3><p>To understand why we need a solution, we have to look at the “Ugly” reality of unguided code.</p><h4>1. The Rigid Backend (FileSystem Coupling)</h4><p>When an AI takes the shortest path, it uses global built-ins like open(). This &quot;solders&quot; your business logic to a specific physical environment.</p><ul><li><strong>The Bad:</strong> Direct I/O in the Domain Layer</li></ul><pre># domain/processor.py<br>def process_data(filename: str) -&gt; str:<br>    &quot;&quot;&quot;<br>    AI Shortcut: The agent uses the global &#39;open&#39; function because it&#39;s<br>    the fastest way to make the code &#39;work&#39; right now.<br>    Violation: W9004 (Forbidden I/O access).<br>    &quot;&quot;&quot;<br>    # This code is now a prisoner of the local disk.<br>    with open(filename, &#39;r&#39;) as f:<br>        return f.read().upper()</pre><ul><li><strong>The Ugly:</strong> The Brittle Test (Mocking Built-ins)</li></ul><pre>from unittest.mock import patch, mock_open<br><br>@patch(&#39;builtins.open&#39;, new_callable=mock_open, read_data=&quot;raw data&quot;)<br>def test_process_data_logic(mock_file):<br>    &quot;&quot;&quot;<br>    Test Pain: To verify a simple string transformation (upper()), <br>    we are forced to hijack the Python interpreter&#39;s file loading logic.<br>    &quot;&quot;&quot;<br>    # If we move this code to an environment without a local disk (like a <br>    # Lambda function reading from S3), this test is an expensive lie.<br>    result = process_data(&quot;fake_path.txt&quot;)<br>    assert result == &quot;RAW DATA&quot;</pre><h4>2. The Coupled Notification (API Coupling)</h4><p>AI agents often import heavy libraries like requests directly into application logic to handle external side effects.</p><ul><li><strong>The Bad:</strong> Coupled Application Logic</li></ul><pre>import requests # Violation: W9010 (Illegal Dependency)<br><br># use_cases/notifier.py<br>def notify_user(user_id: str):<br>    &quot;&quot;&quot;<br>    AI Shortcut: The agent hits the REST API directly to &quot;save time.&quot;<br>    Violation: W9004 (Forbidden I/O).<br>    &quot;&quot;&quot;<br>    # The business rule is now hard-coded to a specific REST endpoint.<br>    requests.post(f&quot;https://monolith.internal/notify/{user_id}&quot;)</pre><ul><li><strong>The Ugly:</strong> The Network Interceptor Test</li></ul><pre>import responses<br><br>@responses.activate<br>def test_notify_user_logic():<br>    &quot;&quot;&quot;<br>    Test Pain: We cannot test this business rule without a network <br>    interceptor. Our test suite is now a prisoner of the <br>    monolith&#39;s internal URL structure.<br>    &quot;&quot;&quot;<br>    responses.add(responses.POST, &quot;https://monolith.internal/notify/1&quot;, status=200)<br><br>    # This test breaks if the monolith changes its API path, even if <br>    # our notification logic remains correct.<br>    notify_user(&quot;1&quot;)</pre><h4>3. The Tangled Dependency (Infrastructure Leakage)</h4><p>AI agents rarely think about the cost of instantiation. They will import and create heavy infrastructure tools right in the middle of a class constructor.</p><ul><li><strong>The Bad:</strong> Direct Instantiation of Tools</li></ul><pre># use_cases/user_service.py<br>from infrastructure.db import PostgresClient # Violation: W9010<br><br>class UserService:<br>    def __init__(self):<br>        &quot;&quot;&quot;<br>        AI Shortcut: &quot;I need a DB, so I&#39;ll just create one here.&quot;<br>        Violation: W9301 (DI Violation: Direct Instantiation).<br>        &quot;&quot;&quot;<br>        # The Use Case is now physically tethered to a Postgres driver.<br>        self.db = PostgresClient()</pre><ul><li><strong>The Ugly:</strong> The Crash-on-Init Test</li></ul><pre>def test_user_service_logic():<br>    &quot;&quot;&quot;<br>    Test Pain: You literally cannot run this test without a <br>    working Postgres connection or a heroic effort of global monkeypatching.<br>    &quot;&quot;&quot;<br>    # CRASH: The constructor immediately tries to connect to <br>    # localhost:5432, causing the test suite to fail before <br>    # a single assertion is even reached.<br>    service = UserService()</pre><h4>4. The Mutable State (Domain Mutability)</h4><p>Without strict rules, AI agents create “bags of data” (standard classes) that can be modified by any function at any time.</p><ul><li><strong>The Bad: </strong>Mutable Domain Entities</li></ul><pre>from dataclasses import dataclass<br><br>@dataclass<br>class Cart:<br>    &quot;&quot;&quot;<br>    AI Shortcut: A standard dataclass is easy to write.<br>    Violation: W9401 (Domain Mutability Violation).<br>    &quot;&quot;&quot;<br>    total: float<br>    items: list</pre><ul><li><strong>The Ugly:</strong> The “Ghost Bug” (Accidental Side Effects)</li></ul><pre>def apply_discount(cart):<br>    # Oops! The AI mutated the object in place instead of returning a new one.<br>    cart.total = cart.total * 0.9 <br>    return cart.total<br><br>def checkout(cart):<br>    &quot;&quot;&quot;<br>    The Ghost Bug: Because &#39;apply_discount&#39; was called earlier in <br>    this thread, the &#39;cart.total&#39; here is unexpectedly different than <br>    what is in the DB. This discrepancy is a nightmare to debug.<br>    &quot;&quot;&quot;<br>    process_payment(cart.total)</pre><h4>5. The “Stranger” Chain (Law of Demeter)</h4><p>AI agents are excellent at following object graphs, which leads them to write deep, fragile chains of property access.</p><ul><li><strong>The Bad: </strong>Deep Architectural Coupling</li></ul><pre># use_cases/order_processing.py<br>def process_order(order):<br>    &quot;&quot;&quot;<br>    AI Shortcut: The agent follows the path of least resistance <br>    through the object graph to get the data it needs.<br>    Violation: W9006 (Law of Demeter).<br>    &quot;&quot;&quot;<br>    # We are reaching through &#39;User&#39; and &#39;Address&#39; to get a zip code.<br>    zip_code = order.user.address.get_zip()<br>    validate_zip(zip_code)</pre><ul><li><strong>The Ugly:</strong> The “Mock Skyscraper” Test</li></ul><pre>def test_process_order_logic(mocker):<br>    &quot;&quot;&quot;<br>    Test Pain: To verify one function call, we must build a <br>    deeply nested mock structure.<br>    &quot;&quot;&quot;<br>    mock_order = mocker.Mock()<br>    # We have to mock the &#39;User&#39; AND the &#39;Address&#39; just to <br>    # test the &#39;Order&#39; processor.<br>    mock_order.user.address.get_zip.return_value = &quot;90210&quot;<br><br>    # If the &#39;User&#39; model ever changes its relationship to <br>    # &#39;Address&#39;, this test (and all code like it) breaks.<br>    process_order(mock_order)</pre><h3>The Solution: pylint-clean-architecture</h3><p>To enforce the blueprint, I built <strong>pylint-clean-architecture</strong>. It moves architectural enforcement out of the human brain and into the automated pipeline.</p><h4>Installation &amp; The 3-Phase Onboarding</h4><p>Installing the guardrails takes seconds:</p><pre>pip install pylint-clean-architecture</pre><p>However, the real power lies in the initialization command:</p><pre>clean-arch-init</pre><p>This doesn’t just create a config; it generates a <strong>“Phase-Refactor Plan”</strong> in ARCHITECTURE_ONBOARDING.md. This allows you to migrate legacy code toward compliance in three logical steps without stopping development:</p><ul><li><strong>Phase 1: Package Organization</strong> (Fixing “God Files” and “Root Soup”).</li><li><strong>Phase 2: Layer Separation</strong> (Enforcing boundaries and Dependency Injection).</li><li><strong>Phase 3: Coupling Hardening</strong> (Resolving Law of Demeter and I/O leaks).</li></ul><h4>Smart Integration: Architecture-Only Mode</h4><p>The tool performs an automatic audit of your environment. If it detects tools like ruff, black, or flake8, it suggests an <strong>&quot;Architecture-Only Mode&quot;</strong>. This lets you disable standard Pylint style checks and use the plugin strictly to enforce high-level architectural boundaries and design patterns.</p><h4>The Plugin in Action</h4><p>When your AI agent tries to take a shortcut, the linter catches it immediately:</p><pre>## Actual output from the snowfort to snowarch refactor<br>************* Module snowarch-core.tests.unit.infrastructure.snowflake.builders.test_table_query_builder<br>packages/snowarch-core/tests/unit/infrastructure/snowflake/builders/test_table_query_builder.py:1:0: W9010: God File detected: 5 Heavy components found. Clean Fix: Split into separate files. (clean-arch-god-file)<br>************* Module snowarch-core.src.snowarch_core.infrastructure.crypto.rsa_key_generator<br>packages/snowarch-core/src/snowarch_core/infrastructure/crypto/rsa_key_generator.py:26:22: W9006: Law of Demeter: Chain access (private_key.private_bytes (Stranger)) exceeds one level. Create delegated method. Clean Fix: Add a method to the immediate object that performs the operation. (clean-arch-demeter)<br>************* Module snowarch-core.src.snowarch_core.infrastructure.snowflake.builders.semantic_view<br>packages/snowarch-core/src/snowarch_core/infrastructure/snowflake/builders/semantic_view.py:1:0: W9010: God File detected: 6 Heavy components found. Clean Fix: Split into separate files. (clean-arch-god-file)<br>************* Module snowarch-core.src.snowarch_core.infrastructure.snowflake.builders.grant<br>packages/snowarch-core/src/snowarch_core/infrastructure/snowflake/builders/grant.py:1:0: W9010: God File detected: 2 Heavy components found. Clean Fix: Split into separate files. (clean-arch-god-file)<br>************* Module snowarch-core.src.snowarch_core.infrastructure.snowflake.builders.view<br>packages/snowarch-core/src/snowarch_core/infrastructure/snowflake/builders/view.py:1:0: W9010: God File detected: 3 Heavy components found. Clean Fix: Split into separate files. (clean-arch-god-file)<br>************* Module snowarch-core.src.snowarch_core.infrastructure.snowflake.builders.table<br>packages/snowarch-core/src/snowarch_core/infrastructure/snowflake/builders/table.py:1:0: W9010: God File detected: 2 Heavy components found. Clean Fix: Split into separate files. (clean-arch-god-file)<br>************* Module snowarch-core.src.snowarch_core.infrastructure.snowflake.builders.base<br>packages/snowarch-core/src/snowarch_core/infrastructure/snowflake/builders/base.py:1:0: W9010: God File detected: 2 Heavy components found. Clean Fix: Split into separate files. (clean-arch-god-file)<br>************* Module snowarch-audit.src.snowarch_audit.container<br>packages/snowarch-audit/src/snowarch_audit/container.py:36:17: W9006: Law of Demeter: Chain access (pricing_repo.get_pricing_config (Stranger)) exceeds one level. Create delegated method. Clean Fix: Add a method to the immediate object that performs the operation. (clean-arch-demeter)<br>************* Module snowarch-audit.src.snowarch_audit.infrastructure.errors<br>packages/snowarch-audit/src/snowarch_audit/infrastructure/errors.py:1:0: W9010: God File detected: 2 Heavy components found. Clean Fix: Split into separate files. (clean-arch-god-file)<br><br>------------------------------------------------------------------<br>Your code has been rated at 9.98/10 (previous run: 9.98/10, +0.00)</pre><h4>The AI Agent Handover</h4><p>To solve the “AI Drift” problem, running clean-arch-init creates a <strong>.agent/instructions.md</strong> file. This acts as a “source of truth” for tools like Cursor or GitHub Copilot, explicitly teaching them your project’s layer boundaries before they write code. It prevents structural chaos by forcing the agent to respect your <strong>Domain</strong>, <strong>UseCase</strong>, and <strong>Infrastructure</strong> definitions from the very first prompt.</p><h3>Revisiting the Blueprint: The Clean Refactor</h3><p>By following the linter’s guidance, we refactor our code from a “Scrapyard Satellite” into a “Modular Station.” By abstracting infrastructure behind <strong>Protocols</strong>, we can trade one backend for another or modify business logic without rewriting a single line of core code.</p><h4>1. Scaling Backends (Fixes FileSystem Coupling)</h4><p>Instead of letting the Domain layer touch the disk, we define a FileGateway protocol. Now, the logic works for local storage, S3 or other file system-like API without modification.</p><pre>from typing import Protocol<br><br># domain/protocols.py<br>class FileGateway(Protocol):<br>    &quot;&quot;&quot;<br>    An abstract interface for file operations. <br>    By defining this in the Domain layer, our business logic <br>    doesn&#39;t care if we&#39;re using a local disk, S3, or Snowflake.<br>    &quot;&quot;&quot;<br>    def read(self, path: str) -&gt; str: ...<br><br># domain/processor.py<br>def process_data(gateway: FileGateway, path: str) -&gt; str:<br>    &quot;&quot;&quot;<br>    Logic: Pure business logic. It takes a &#39;gateway&#39; that satisfies <br>    the FileGateway contract. This makes the code backend-agnostic.<br>    &quot;&quot;&quot;<br>    # The &#39;Bad&#39; version used built-in &#39;open()&#39;. Now we use the gateway.<br>    data = gateway.read(path)<br>    return data.upper()</pre><h4>2. Decoupling Notifications (Fixes API Coupling)</h4><p>By using a NotificationGateway, moving from a monolith REST call to a microservice event bus requires zero changes to the notify_user Use Case.</p><pre>from typing import Protocol<br><br># domain/protocols.py<br>class UserNotifier(Protocol):<br>    &quot;&quot;&quot;<br>    Defines HOW we notify users without specifying the delivery mechanism.<br>    This allows us to swap a REST API for an Event Bus (Kafka/RabbitMQ) <br>    without changing a single line of application logic.<br>    &quot;&quot;&quot;<br>    def notify(self, user_id: str) -&gt; None: ...<br><br># use_cases/notifier.py<br>def notify_user(user_id: str, notifier: UserNotifier):<br>    &quot;&quot;&quot;<br>    Logic: Application-specific orchestration. It triggers a notification <br>    using the provided notifier implementation.<br>    &quot;&quot;&quot;<br>    # Pure application logic: The HTTP or Event Bus details stay in Infrastructure.<br>    # To swap mechanisms, we simply inject a different implementation of UserNotifier.<br>    notifier.notify(user_id)</pre><h4>3. Untangled Testing (Fixes Infrastructure Leakage)</h4><p>When the UserService receives its database as an injected argument, testing becomes fast, isolated, and needs zero external configuration.</p><pre>from typing import Protocol<br><br># domain/protocols.py<br>class UserRepository(Protocol):<br>    &quot;&quot;&quot;Protocol defining how we interact with User data.&quot;&quot;&quot;<br>    def get_user_status(self, user_id: str) -&gt; str: ...<br><br># use_cases/user_service.py<br>class UserService:<br>    &quot;&quot;&quot;<br>    Application service that orchestrates user operations.<br>    &quot;&quot;&quot;<br>    def __init__(self, repo: UserRepository):<br>        &quot;&quot;&quot;<br>        Logic: Dependency Injection. We receive the repository <br>        rather than instantiating a specific &#39;PostgresClient&#39; inside.<br>        &quot;&quot;&quot;<br>        # This satisfies the W9301 check: no direct instantiation of tools.<br>        self.repo = repo <br><br>    def get_status(self, user_id: str) -&gt; str:<br>        return self.repo.get_user_status(user_id)<br><br># tests/test_user_service.py<br>class FakeUserRepository:<br>    &quot;&quot;&quot;A fast, in-memory implementation for testing.&quot;&quot;&quot;<br>    def get_user_status(self, user_id: str) -&gt; str:<br>        return &quot;Active&quot;<br><br>def test_user_service_status():<br>    &quot;&quot;&quot;<br>    Logic: Testing is now isolated. We inject the &#39;Fake&#39; repository, <br>    so this test runs in milliseconds and requires zero DB setup.<br>    &quot;&quot;&quot;<br>    fake_repo = FakeUserRepository()<br>    service = UserService(repo=fake_repo) <br>    <br>    assert service.get_status(&quot;user_123&quot;) == &quot;Active&quot;</pre><h4>4. Explicit State Transitions (Fixes Domain Mutability)</h4><p>Enforcing immutability with frozen=True ensures that your data state only changes when you explicitly create a new version of the object.</p><pre>from dataclasses import dataclass, replace<br><br>@dataclass(frozen=True)<br>class Cart:<br>    &quot;&quot;&quot;A Domain Entity representing a shopping cart.&quot;&quot;&quot;<br>    total: float<br>    items: list<br><br>def apply_discount(cart: Cart) -&gt; Cart:<br>    &quot;&quot;&quot;<br>    Logic: Instead of mutating the original cart, we return a NEW cart <br>    with the updated total. This makes the state change explicit.<br>    &quot;&quot;&quot;<br>    # &#39;replace&#39; is the standard way to &#39;update&#39; frozen dataclasses.<br>    # It creates a shallow copy with the specified fields changed.<br>    return replace(cart, total=cart.total * 0.9)<br><br>def checkout(cart: Cart):<br>    &quot;&quot;&quot;<br>    Logic: The developer is now forced to handle the &#39;new&#39; state <br>    returned by the discount function.<br>    &quot;&quot;&quot;<br>    # apply_discount(cart)  &lt;-- If we just called this alone, it wouldn&#39;t<br>    #                           affect &#39;cart&#39;, preventing hidden side effects.<br>    <br>    discounted_cart = apply_discount(cart)<br>    <br>    # We now process payment with the guaranteed correct state.<br>    process_payment(discounted_cart.total)</pre><h4>5. Flattening Interfaces (Fixes Law of Demeter)</h4><p>Instead of reaching through “strangers,” we delegate the responsibility to the immediate object, creating a flat and maintainable interface.</p><pre>from dataclasses import dataclass<br><br># domain/models.py<br>@dataclass(frozen=True)<br>class Address:<br>    zip_code: str<br><br>@dataclass(frozen=True)<br>class User:<br>    address: Address<br><br>@dataclass(frozen=True)<br>class Order:<br>    &quot;&quot;&quot;<br>    A Domain Entity. To follow the Law of Demeter (W9006), <br>    we provide delegated methods so callers don&#39;t have to <br>    reach through &#39;User&#39; into &#39;Address&#39;.<br>    &quot;&quot;&quot;<br>    user: User<br><br>    def get_shipping_zip(self) -&gt; str:<br>        &quot;&quot;&quot;<br>        Logic: Delegation. The Order &#39;knows&#39; how to get its own zip <br>        so the UseCase doesn&#39;t have to reach through strangers.<br>        &quot;&quot;&quot;<br>        return self.user.address.zip_code<br><br># use_cases/order_processing.py<br>def process_order(order: Order):<br>    &quot;&quot;&quot;<br>    Logic: Clean interaction. We only talk to our &#39;immediate friend&#39; (Order).<br>    If the internal structure of &#39;User&#39; or &#39;Address&#39; changes, this <br>    code remains untouched.<br>    &quot;&quot;&quot;<br>    zip_code = order.get_shipping_zip()<br>    validate_zip(zip_code)</pre><h3>Summation: The Architect in the Machine</h3><p>In the age of AI, code generation is a commodity, but <strong>architectural strategy</strong> is your most valuable asset. Left unguided, AI agents are essentially “Success Disasters” waiting to happen — optimized for speed but blind to the structural integrity of your mission.</p><p>Don’t let your codebase become a Scrapyard Satellite. Whether you are building a new feature or mid-way through a high-stakes refactor like the <strong>Snowfort</strong> upgrade, you need to lock in your architectural coordinates.</p><p><strong>Take command of your AI agent today:</strong></p><ul><li><strong>Audit Your Boundaries:</strong> Install <strong>pylint-clean-architecture</strong> and run clean-arch-init to generate your 3-Phase Refactor Plan and AI instructions.</li><li><strong>Target Your Testing:</strong> Use <strong>pytest-coverage-impact</strong> to filter out vanity noise and force your AI to tackle the high-impact &quot;Hidden Dragons&quot; in your code.</li><li><strong>Stay Optimized:</strong> Keep an eye out for the upcoming <strong>Snowfort</strong> release — the CLI built from the ground up using these exact architectural guardrails.</li></ul><p><a href="https://github.com/noah-goodrich/pylint-clean-architecture"><strong>Explore the Toolset on GitHub</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4947ac9132ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AI Efficiency Trap: Why I Built a Tool to Tell Cursor What to Test]]></title>
            <link>https://medium.com/@noah.goodrich/the-ai-efficiency-trap-why-i-built-a-tool-to-tell-cursor-what-to-test-4fecb95da925?source=rss-8bd1468de264------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fecb95da925</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Noah Goodrich]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 16:02:20 GMT</pubDate>
            <atom:updated>2025-12-15T16:02:20.728Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>I’ve always been a testing pragmatist. But when I started using AI to write tests, I realized it was prioritizing vanity metrics over structural integrity.</em></h4><figure><img alt="A clean, blueprint-style technical illustration depicting a schematic view of a software system. Abstract blocks representing code functions are arranged hierarchically, with a focus on “structural” load-bearing elements. The visual style is minimalist and architectural, using technical lines and a limited color palette to convey precision and engineering planning rather than abstract technology." src="https://cdn-images-1.medium.com/max/1024/1*9PidRQT4Dglx1VGFA4eKSg.png" /><figcaption>The AI Efficiency Trap: Just because an LLM can write 100 tests in a minute doesn’t mean any of them actually matter. It’s time to filter for signal, not noise.</figcaption></figure><p>I have always been a testing pragmatist.</p><p>I don’t lose sleep if my coverage drops below 100%. I prioritize critical paths. I test the code that handles money, data integrity, and complex logic. I have never been the type to waste billable hours writing unit tests for getter/setter methods or boiler-plate __str__ representations just to see a green badge on a repo.</p><p>But then came the AI revolution.</p><p>Like many of you, I started using tools like <strong>Cursor</strong> to accelerate my workflow. Suddenly, the cost of writing tests dropped to near zero. I got greedy. I started firing off prompts like “improve test coverage” and “get us to 85%.”</p><p>The AI happily obliged. It churned out tests at a speed I could never match. I watched the coverage percentage tick up and up. It felt productive.</p><p><strong>But then I looked at the code.</strong></p><p>The AI was gaming the system. It had instinctively found the path of least resistance. It was writing hundreds of tests for the low-hanging fruit — the utility functions, the config parsers, the trivial code — because those were easy to verify.</p><p>Meanwhile, the complex, high-risk business logic — the stuff that actually breaks production — was being skipped because the heuristics the AI used deemed it “too hard” or “low priority” compared to the easy wins.</p><p>I found myself spending hours supervising the AI, waiting through long cycles of implementation and refactoring, only to find that my application’s structural integrity hadn’t actually improved. I was just drowning in “Green Build” vanity metrics.</p><p>I needed a way to force the AI to think like a Senior Engineer. I needed a scoring system that could say: <strong>“Ignore the easy stuff. Focus on what is High Impact and Low Complexity.”</strong></p><p>That is why I built <strong>pytest-coverage-impact</strong>.</p><h3>The Logic: ROI over Vanity</h3><p>pytest-coverage-impact is a plugin that brings ROI (Return on Investment) logic to your test suite. It parses your code&#39;s Abstract Syntax Tree (AST), builds a call graph, and uses Machine Learning to score every function in your codebase based on two factors:</p><ol><li><strong>Impact (The Blast Radius):</strong> How many other functions depend on this? If process_payment() breaks, the app dies. If get_pretty_name() breaks, a log looks ugly.</li><li><strong>Complexity (The Friction):</strong> How hard will it be to write a test for this?</li></ol><p>The plugin generates a <strong>Priority Score</strong> using this formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fLacb6blIDUkNIXpYNiB3g.png" /><figcaption>A modified version of the RICE scoring model, emphasizing complexity and effort as the denominators for prioritization.</figcaption></figure><p>This score gives me (and my AI assistant) a prioritized hit-list. Instead of asking Cursor to “increase coverage,” I can paste the top 5 functions from the Impact Report and say, <strong>“Write tests for these specific functions.”</strong></p><h3>Under the Hood: Machine Learning for Code</h3><p>Most tools measure “complexity” by just counting nested if-statements (Cyclomatic Complexity). I wanted something smarter.</p><p>I trained a Random Forest model to predict <strong>“Test Pain.”</strong> The model analyzes static code features to guess how annoying a function will be to test:</p><ul><li><strong>Side Effects:</strong> Does it touch the filesystem, network, or external APIs (like Snowflake)?</li><li><strong>Test Anatomy:</strong> Does testing this usually require mocks, fixtures, or integration markers?</li></ul><p>The tool predicts — on a scale of 0.0 to 1.0 — how complex the testing effort will be.</p><ul><li><strong>High Priority:</strong> High Impact + Low Complexity (The “Must Haves”)</li><li><strong>Low Priority:</strong> Low Impact + High Complexity (The “Time Sinks”)</li></ul><p>It even calculates the <strong>variance</strong> between the trees in the Random Forest. If the model isn’t confident in its prediction (wide confidence interval), it automatically deprioritizes that function. We only want to chase sure things.</p><h3>The Killer Feature: Train It on YOUR Code</h3><p>Every codebase is different. What counts as “complex” in a monolithic web app is different from a Data Engineering repo.</p><p>I included a training pipeline directly into the CLI so the tool can learn from <em>your</em> existing tests.</p><p>Bash</p><pre># Combined command - collects data and trains model<br>pytest --coverage-impact-train</pre><p>This command maps your existing functions to their tests, extracts the features, and trains a bespoke Random Forest model (complexity_model_v1.1.pkl) on your specific coding style. As your codebase evolves, your testing strategy evolves with it.</p><h3>How to use it</h3><p>I designed this to plug directly into your existing workflow.</p><p><strong>Installation:</strong></p><p>Bash</p><pre>pip install pytest-coverage-impact</pre><p>Running the analysis:</p><p>You run pytest just like you normally would, but add the — coverage-impact flag.</p><p>Bash</p><pre>pytest --cov=my_project --coverage-impact</pre><p>The Output:</p><p>Instead of a wall of text, you get a prioritized backlog:</p><pre>Top Functions by Priority (Impact / Complexity)<br>┏━━━━━━━━━━┳━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓<br>┃ Priority ┃ Score ┃ Impact ┃ Complexity    ┃ Function         ┃<br>┡━━━━━━━━━━╇━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩<br>│        1 │  2.45 │   12.5 │  0.65 [±0.15] │ auth.py::login   │<br>│        2 │  1.80 │    8.0 │  0.20 [±0.05] │ utils.py::parser │</pre><p>In this example, auth.py::login is the winner. It has high impact, and the model is confident that it&#39;s testable. This allows me to point Cursor exactly where it needs to go.</p><h3>The Origin Story</h3><p>I didn’t actually set out to build a standalone pytest plugin.</p><p>I was in the middle of a complete rewrite of <strong>Snowfort</strong> (my Snowflake management tool — keep an eye out for the new version dropping shortly, it’s a massive upgrade).</p><p>I was staring at a blank slate of code and realized I needed a way to keep my testing focused as I built out the new features. I created these scripts to help me prioritize the Snowfort rewrite, and then realized this logic could help any Python developer who is tired of their AI writing useless tests.</p><h3>Summary</h3><p>In the age of AI, code generation is cheap, but <strong>strategy is expensive</strong>.</p><p>pytest-coverage-impact acts as a targeting system for your AI coding assistant. It stops the AI from padding your stats with low-value tests and forces it to tackle the structural integrity of your application.</p><ul><li><strong>GitHub Repo:</strong> <a href="https://github.com/noah-goodrich/pytest-coverage-impact">https://github.com/noah-goodrich/pytest-coverage-impact</a></li><li><strong>PyPI:</strong> pip install pytest-coverage-impact</li></ul><p>Let me know if you find any “hidden dragons” in your code using this. I certainly did.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fecb95da925" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake & AWS Infrastructure as Code]]></title>
            <link>https://medium.com/@noah.goodrich/snowflake-aws-infrastructure-as-code-c86ddd41b25d?source=rss-8bd1468de264------2</link>
            <guid isPermaLink="false">https://medium.com/p/c86ddd41b25d</guid>
            <category><![CDATA[snowflake-data-superhero]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-superhero]]></category>
            <dc:creator><![CDATA[Noah Goodrich]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 22:24:26 GMT</pubDate>
            <atom:updated>2024-12-28T22:24:26.481Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 1: Set up your local development environment</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*4mN_wapmLYjq1sw1NUAHuw.png" /><figcaption>Snowflake + AWS + LocalStack</figcaption></figure><p>Managing infrastructure for cloud-based applications has long been a challenge. For one thing, most of the guides out there just rely on click-ops instructions through the UI rather than providing practical examples of how to build out infrastructure through tools like Cloudformation or Terraform. And even within Terraform which does kind of support Snowflake, you quickly run into things you just can’t do natively with it. Also, keeping your Terraform code fully DRY is a huge endeavor itself. Alternatively, you can use open-source or commercial tools to run and track migrations in Snowflake. But then what do you if you need to mix order of operations where Snowflake and AWS dependencies mix? And this doesn’t even begin to consider the complexities of testing code other than just trying to deploy your Cloudformation stack or run the Snowflake migration and then stepping through the errors until you finally get something that works.</p><p>With the advent of of CDK and the Snowflake APIs we finally have a potential solution that can allow us to mix our AWS and Snowflake infrastructure code in such a way that we can neatly resolve dependencies and with the latest advancements from Localstack including a Snowflake local container environment, we can emulate these services locally, enabling faster, more efficient development while minimizing expenses.</p><p>In this article, I’ll guide you through setting up a local development environment that includes <strong>LocalStack</strong> for AWS and Snowflake service emulation. We’ll configure a containerized workspace using <strong>VS Code devcontainers</strong>, ensuring a reproducible and isolated setup.</p><h3>Why Use LocalStack?</h3><p>LocalStack is a powerful tool that emulates AWS services locally, including an experimental Snowflake integration. This setup allows you to:</p><ul><li>Develop and test cloud applications locally without incurring cloud service costs.</li><li>Quickly prototype and debug without waiting for remote infrastructure.</li><li>Maintain a consistent environment across team members.</li></ul><h3>Prerequisites</h3><p>Before starting, ensure you have the following installed:</p><ul><li><strong>VSCode</strong> or <strong>Cursor IDE</strong></li><li><strong>Docker CLI</strong> or <strong>Docker Desktop</strong></li></ul><h3>Setup Instructions</h3><h3>Step 1: Clone the Repository</h3><p>Start by cloning the example repository containing the necessary configuration files:</p><pre>git clone https://github.com/noah-goodrich/snowflake-examples.git</pre><h3>Step 2: Start Docker</h3><p>Ensure Docker is running on your system. You can verify this with:</p><pre>docker --version</pre><p>If Docker is not running, start Docker Desktop or your Docker CLI.</p><h3>Local Configuration Changes</h3><h3>Step 3: Configure AWS CLI Credentials</h3><p>For LocalStack to emulate AWS services properly, you need to set up local AWS CLI credentials:</p><ol><li><strong>Create or modify the AWS configuration files</strong>:</li></ol><ul><li>In ~/.aws/config:</li></ul><pre>[profile localstack] <br>region = us-east-1 <br>output = json <br>endpoint_url = http://localhost.localstack.cloud:4566</pre><ul><li>In ~/.aws/credentials:</li></ul><pre>[localstack] <br>aws_access_key_id = test <br>aws_secret_access_key = test</pre><p>These credentials are local placeholders and won’t interact with your real AWS account.</p><h3>Step 4: (Optional) Configure Local DNS</h3><p>If you encounter DNS resolution issues, you can configure your system to resolve LocalStack’s domain by modifying your /etc/hosts file:</p><ul><li>Open the file with elevated permissions:</li></ul><pre>sudo vim /etc/hosts</pre><ul><li>Add the following line:</li></ul><pre>127.0.0.1 localhost.localstack.cloud</pre><ul><li>Save and close the file.</li></ul><p>This step helps ensure LocalStack services are accessible by their expected domain.</p><h3>Step 5: Open devcontainer in VSCode / Cursor</h3><h4>In VSCode:</h4><ol><li>Install the Dev Containers Extension</li><li>Open the snowflake-examples/vscode-devcontainer folder</li><li>Open the command palette with Cmd + Shift + P</li><li>ExecuteReopen in Container</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KhBCpI7jjySy5rCNvdfLKA.png" /></figure><h3>Step 6: Verify Setup</h3><p>Once you are connected to your devcontainer in VSCode, open the integrated terminal and verify your setup with the following commands:</p><p><strong>Create a test S3 bucket</strong>:</p><pre>aws s3 mb s3://test-bucket</pre><p><strong>List S3 buckets</strong>:</p><pre>aws s3 ls</pre><p><strong>Test Snowflake connectivity</strong>:</p><pre>curl -d &#39;{}&#39; http://snowflake.localhost.localstack.cloud:4566/session</pre><p>You should receive the response:</p><pre>{&quot;success&quot;: true}</pre><h3>Troubleshooting</h3><p>If you encounter issues during setup:</p><ul><li>Ensure Docker is running and LocalStack is active:</li></ul><pre>docker-compose ps</pre><ul><li>Verify AWS credentials are correctly configured in ~/.aws/config and ~/.aws/credentials.</li><li>Ensure no other services are using ports 4566 or 4510-4559.</li><li>Check your /etc/hosts file if DNS resolution fails.</li></ul><h3>Key Configuration Files</h3><p>This setup relies on three primary configuration files:</p><h3>1. devcontainer.json</h3><pre>// For format details, see https://aka.ms/devcontainer.json. For config options, see the<br>// README at: https://github.com/devcontainers/templates/tree/main/src/python<br>{<br>  &quot;name&quot;: &quot;Python CDK with LocalStack&quot;,<br>  &quot;dockerComposeFile&quot;: &quot;./docker-compose.yml&quot;,<br>  &quot;service&quot;: &quot;devcontainer&quot;,<br>  &quot;workspaceFolder&quot;: &quot;/workspace&quot;,<br>  &quot;runServices&quot;: [&quot;localstack&quot;],<br>  &quot;features&quot;: {},<br>  &quot;postStartCommand&quot;: &quot;pip install -r requirements.txt &amp;&amp; pip install -r requirements-dev.txt&quot;,<br><br>  &quot;customizations&quot;: {<br>    &quot;vscode&quot;: {<br>      &quot;extensions&quot;: [&quot;ms-python.python&quot;, &quot;ms-python.vscode-pylance&quot;],<br>      &quot;settings&quot;: {<br>        &quot;python.defaultInterpreterPath&quot;: &quot;/usr/local/bin/python3&quot;<br>      }<br>    }<br>  },<br><br>  &quot;remoteEnv&quot;: {<br>    &quot;AWS_DEFAULT_REGION&quot;: &quot;us-east-1&quot;,<br>    &quot;AWS_PROFILE&quot;: &quot;localstack&quot;<br>  },<br><br>  &quot;shutdownAction&quot;: &quot;stopCompose&quot;,<br>  &quot;remoteUser&quot;: &quot;vscode&quot;,<br>  &quot;updateRemoteUserUID&quot;: true<br>}</pre><h3>2. docker-compose.yml</h3><pre>services:<br>  localstack:<br>    container_name: &quot;localstack-snowflake&quot;<br>    image: localstack/snowflake<br>    ports:<br>      - &quot;127.0.0.1:4566:4566&quot;<br>      - &quot;127.0.0.1:4510-4559:4510-4559&quot;<br>      - &quot;127.0.0.1:443:443&quot;<br>    environment:<br>      - LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN:?}<br>    volumes:<br>      - &quot;./volume:/var/lib/localstack&quot;<br><br>  devcontainer:<br>    build:<br>      context: .<br>      dockerfile: Dockerfile<br>    volumes:<br>      - ..:/workspace:cached<br>      - ~/.aws:/home/vscode/.aws:cached<br>      - ~/.zshrc:/home/vscode/.zshrc:cached<br>    command: sleep infinity<br>    network_mode: service:localstack<br><br>volumes:<br>  devcontainer_volume:</pre><h3>3. Dockerfile</h3><pre>FROM mcr.microsoft.com/devcontainers/python:1-3.11-bullseye<br><br>RUN pip install awscli<br><br># Install additional tools<br>RUN apt-get update &amp;&amp; export DEBIAN_FRONTEND=noninteractive \<br>    &amp;&amp; apt-get -y install --no-install-recommends \<br>    curl \<br>    jq</pre><h3>Next Steps</h3><p>With your LocalStack environment ready, you can now develop and test AWS and Snowflake applications locally. In the next article, we’ll explore:</p><ul><li>Initializing and bootstrapping AWS CDK.</li><li>Creating foundational objects in Snowflake.</li><li>Writing integration tests with LocalStack and the Snowflake container.</li></ul><h3>Conclusion</h3><p>Setting up a local development environment with LocalStack and Snowflake emulation simplifies workflows, reduces costs, and ensures consistent results. By leveraging tools like devcontainers and Docker, you can focus on building and testing your applications without worrying about cloud service costs or availability.</p><p>Stay tuned for the next installment in this series!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c86ddd41b25d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake & AWS Infrastructure as Code]]></title>
            <link>https://medium.com/@noah.goodrich/snowflake-aws-infrastructure-as-code-b436d30b8a34?source=rss-8bd1468de264------2</link>
            <guid isPermaLink="false">https://medium.com/p/b436d30b8a34</guid>
            <category><![CDATA[data-superhero]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[snowflake-data-superhero]]></category>
            <dc:creator><![CDATA[Noah Goodrich]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 22:19:38 GMT</pubDate>
            <atom:updated>2024-12-28T22:19:38.926Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 2: Ditching CDK for Snow Forts</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fVmTF76J_-ZF8U5UqsJQyg.png" /><figcaption>Image Credit: ChatGPT</figcaption></figure><p><em>In the first part of this series, we embarked on a journey to build a scalable, robust data platform using Snowflake. We discussed leveraging AWS CDK to manage Snowflake assets. However, as with any good adventure, we encountered unexpected twists and turns. In this article, we’ll pivot from CDK and introduce a new concept: Snow Forts, while diving deeper into the implementation details.</em></p><h3><strong>Rethinking My Approach</strong></h3><p>I have a confession to make: my initial approach with the Snowflake Python APIs and AWS CDK didn’t work quite like I had hoped. The fault was mine — I didn’t spend the time I should have understanding how CDK worked. But hey, lessons learned, right?</p><p>Once I had my development environment set up and running, I needed to decide <strong>how</strong> I wanted to manage the configuration of all the resources in my application. Before tackling the “how,” I needed to first document <strong>what</strong> resources I needed.</p><h4><strong>What We Needed</strong></h4><p>At a minimum, I knew I needed a basic data engineering environment for pipelines, which would consist of:</p><p>• <strong>Administrative resources:</strong></p><p>An admin database, role, and user for automated deployments and other administrative tasks.</p><p>• <strong>Medallion databases:</strong></p><p>A set of databases: Bronze, Silver, Gold, and Platinum.</p><p>• <strong>Data pipelines:</strong></p><p>Pipelines for ingest, cleaning &amp; transformation, analytics, and machine learning (ML).</p><p>• <strong>Storage integrations:</strong></p><p>One or more storage integrations between S3 and Snowflake.</p><p>It was also a given that we’d be deploying machine-learning solutions into the cloud, involving some blend of Snowflake and AWS services.</p><h4><strong>The Problem With My Initial Approach</strong></h4><p>I had managed to get everything working for creating the admin resources and medallion databases, so I figured it was time to fully test my solution by bootstrapping my CDK app and deploying it. That’s when I ran into some major issues:</p><p>1. Upon bootstrapping the CDK app, I noticed that all of my Snowflake code had already run and deployed.</p><p>2. I still hadn’t figured out how to hook into the CDK destroy lifecycle, which meant I couldn’t reliably spin down all my Snowflake resources.</p><p>It became clear that my approach wasn’t going to work the way I had envisioned.</p><h4><strong>Options for Moving Forward</strong></h4><p>After reading the CDK documentation and exploring approaches online, three main options emerged:</p><p><strong>Option 1: AWS Lambdas and CloudFormation</strong></p><ul><li><strong>Pros:<br>- </strong>Leverages CDK and CloudFormation as intended.<br>- Snowflake resources are defined using configuration objects and deployed via Lambda.</li><li><strong>Cons:<br>- </strong><em>Complexity:</em> Forces Snowflake changes through standardized configurations or custom Lambda code.<br>- <em>Testing Challenges:</em> Separates testing for deployment code versus configuration changes, making it more cumbersome.</li></ul><p><strong>Option 2: Separate Codebases for Snowflake and AWS Infrastructure</strong></p><ul><li><strong>Pros:<br>- </strong>CDK handles AWS infrastructure while Snowflake Python APIs manage Snowflake resources.<br>- Testing is straightforward since each system is isolated.</li><li><strong>Cons: <br>- </strong>Cross-platform resources (e.g., storage integrations) are harder to manage.<br>- May require custom deployment processes for sequential dependencies.</li></ul><p><strong>Option 3: A Middle-Road Approach</strong></p><ul><li><strong>Pros:<br>- </strong>Combines AWS and Snowflake management in one process.</li><li><strong>Cons:<br>- </strong>Violates expectations of CDK lifecycle management.<br>- Risks creating a messy, hacky solution.<br>- Ignores the destroy lifecycle, potentially leaving orphaned resources.</li></ul><p><strong>Why I Chose Option 3</strong></p><p>Ultimately, we chose <strong>Option 3: A Middle-Road Approach</strong>. Using tools like boto3 to handle AWS resources ensured we could manage cross-platform dependencies seamlessly.</p><p>While this approach introduces challenges — like ensuring resources are properly destroyed — we expect these issues to be minimal with good management practices. By combining the Snowflake APIs with AWS infrastructure tools, we struck a balance between simplicity and functionality.</p><h3><strong>Introducing Snow Forts</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uhU-z67ddvBbGi06Idvdgw.jpeg" /><figcaption>Image Credit: <a href="https://www.fiverr.com/imadgraphx78?source=order_page_user_message_inner_link">Imadgraphx</a></figcaption></figure><p>Enter <strong>Snow Forts</strong>, a custom implementation for managing Snowflake resources. Inspired by Snowflake’s playful naming conventions (Snowpipe, Snowpark, etc.), Snow Forts embody the idea of building modular, reusable, and robust “forts” to manage Snowflake assets.</p><h4><strong>Core Principles</strong></h4><p>1. <strong>Modular Design:</strong> Each Snow Fort manages a specific domain — administration, data pipelines, or medallion architecture.</p><p>2. <strong>Python First:</strong> Leveraging Python directly, we sidestep CDK’s abstraction layers and retain flexibility.</p><p>3. <strong>Scalable and Maintainable:</strong> Each fort evolves independently while adhering to shared conventions.</p><h4><strong>A Tour of the Snow Forts Implementation</strong></h4><p>Let’s dive into the code and structure that brings Snow Forts to life. You can follow along with the full implementation in the <a href="https://github.com/noah-goodrich/snowflake-examples/tree/snowforts/snowflake-deployments">snowflake-examples</a>. repository.</p><p><strong>Directory Structure</strong></p><pre>snow-forts/<br>├── deploy.py                # Main deployment orchestrator<br>├── forts/                   # Snow Forts modules<br>│   ├── __init__.py<br>│   ├── admin.py             # Admin-focused fort<br>│   └── medallion.py         # Medallion architecture fort<br>├── libs/                    # Shared utilities<br>│   ├── __init__.py<br>│   └── crypt.py             # Encryption and security<br>└── tests/                   # Test cases<br>    ├── integration/         # Fort-specific integration tests<br>    └── unit/                # Unit tests</pre><p><strong>Deploy Script (deploy.py)</strong></p><p>The deploy.py script serves as the mission control, orchestrating the deployment of all Snowflake assets by invoking the relevant Snow Forts.</p><pre>from forts.admin import AdminFort<br>from forts.medallion import MedallionFort<br><br>if __name__ == &quot;__main__&quot;:<br>    # Initialize forts<br>    admin_fort = AdminFort()<br>    medallion_fort = MedallionFort()<br><br>    # Deploy all assets<br>    admin_fort.deploy()<br>    medallion_fort.deploy()</pre><p><strong>Admin Fort (admin.py)</strong></p><p>The Admin Fort is responsible for setting up Snowflake administrative resources while following best practices:</p><p>1. <strong>AccountAdmin Isolation:<br></strong>Limit the use of the AccountAdmin role to a few users. Create a separate deployment role (HOID) with SYSADMIN and USERADMIN privileges to minimize the impact of potential security breaches.</p><p>2. <strong>Service Users:<br></strong>Utilize Snowflake’s service users with key pair authentication for secure, passwordless deployments.</p><p>3. <strong>Admin Database:<br></strong>Create a dedicated database, COSMERE, to store all administrative resources, ensuring they remain organized and easily accessible.</p><p>Example implementation:</p><pre>class AdminFort:<br>    def deploy(self):<br>        print(&quot;Deploying Admin Fort&quot;)<br>        # Logic for Snowflake API calls to set up admin components<br>        print(&quot;Creating roles...&quot;)</pre><p><strong>Medallion Fort (medallion.py)</strong></p><p>The Medallion Fort implements the <strong>medallion architecture</strong>, organizing data into distinct layers for processing:</p><ol><li><strong>Bronze:</strong> Raw data ingestion.</li><li><strong>Silver:</strong> Data transformations and cleansing.</li><li><strong>Gold:</strong> Query-optimized data.</li><li><strong>Platinum:</strong> AI/ML-ready datasets.</li></ol><p>Example implementation:</p><pre>class MedallionFort:<br>    def deploy(self):<br>        print(&quot;Deploying Medallion Fort&quot;)<br>        # Logic for Snowflake schemas, tables, and data flows<br>        print(&quot;Creating staging and processing schemas...&quot;)</pre><p><strong>Encryption Library (libs/crypt.py)</strong></p><p>The crypt.py module provides cryptographic utilities to ensure the secure handling of sensitive credentials and secrets.</p><p>Example utility:</p><pre>import base64<br><br>def encrypt_data(data, key):<br>    return base64.b64encode(f&quot;{data}{key}&quot;.encode(&quot;utf-8&quot;))</pre><p><strong>Testing and Validation</strong></p><p>Snow Forts include unit and integration tests to validate functionality. These tests ensure each fort behaves as expected, even as the system evolves.</p><h4><strong>Why Snow Forts Work</strong></h4><p>1. <strong>Simplicity with Python:</strong></p><p>By using Snowflake’s APIs directly, Snow Forts remain Pythonic and straightforward to implement.</p><p>2. <strong>Flexibility:</strong></p><p>The modular design allows for fine-grained control over Snowflake assets, without the constraints of template-driven systems.</p><p>3. <strong>Scalability:</strong></p><p>As new requirements emerge, additional forts can be added with minimal impact on the existing framework.</p><h3>Conclusion</h3><p>In this installment, we navigated the challenges of integrating Snowflake with AWS and introduced <strong>Snow Forts</strong> as a streamlined, Python-centric solution for managing Snowflake resources. By adopting a middle-road approach, we combined the strengths of both platforms, achieving a balance between flexibility and functionality.</p><p>Looking ahead, Part 3 will delve into testing strategies for Snow Forts, ensuring their robustness and reliability. Additionally, we’ll explore constructing a Storage Integration as a Snow Fort, further enhancing our data platform’s capabilities.</p><p>Stay tuned as we continue to build and fortify our Snowflake infrastructure, one Snow Fort at a time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b436d30b8a34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake vs Databricks: Revisited]]></title>
            <link>https://medium.com/@noah.goodrich/snowflake-vs-databricks-revisited-edd8201b5799?source=rss-8bd1468de264------2</link>
            <guid isPermaLink="false">https://medium.com/p/edd8201b5799</guid>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[delta-lake]]></category>
            <dc:creator><![CDATA[Noah Goodrich]]></dc:creator>
            <pubDate>Mon, 13 Nov 2023 03:27:54 GMT</pubDate>
            <atom:updated>2023-11-13T03:27:54.851Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why Snowflake is the only right choice</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*JTnXeu_XVL8DObD1JkPDLQ.jpeg" /><figcaption>Toyota Hilux crushing it in the Arctic</figcaption></figure><p>A few weeks ago, I published an <a href="https://medium.com/@noah.goodrich/snowflake-vs-databricks-ecd539ed7f77">essay</a> on how Snowflake and Databricks are like high end Linux PCs and Macs or like Ferraris and American muscle cars. tl;dr — The point I was trying to make is that the cultures around each are fundamentally different and therefore both have their place.</p><p>I was wrong. On two counts. First, I was wrong comparing Snowflake to a Ferrari and Databricks to American muscle cars. It would be more accurate to liken Snowflake to the trusty Toyota Hilux and Databricks to the DeLorean DMC-12. Yes, <a href="https://en.wikipedia.org/wiki/DeLorean_time_machine">that DeLorean</a>. Which brings me to the second point on which I was wrong. It matters a great deal what data platform you choose and Snowflake is definitely the best in class option. If you can bear with my car analogy a little more, I can explain why my opinion has shifted.</p><p>For most of the United States, owning a car to get to work, school, go grocery shopping, etc. is simply a fact of life. Some people can afford to buy really nice cars. Most have to make due with what they can afford. This makes owning a Ford or Toyota a necessity, while owning a Ferrari is a luxury. Either way, no one can afford to spend significant amounts of time with their primary vehicle out of commission. Growing up, my family only owned older, used cars. And it felt like something was always breaking down with them. What I learned at a young age was:</p><ol><li>Having a working car was required to live. Both for work and for play. This makes cars a commodity NOT a luxury.</li><li>Performing necessary vehicular repairs came at the opportunity cost of other things. For us this meant that we gave up play time as a family since work time wasn’t negotiable.</li></ol><p>For businesses in today’s fast changing world, every company MUST come to be data-driven, whether you manufacture widgets or you’re the latest social media darling in Silicon Valley/Slopes/Hills/Mountain. And every decision to spend time on Project A means taking time and resources from Project B. With economic conditions being what they are, we’re seeing tech giants like Google, Meta and Linkedin tightening their belts. And many other companies, whether directly in tech or not, are doing likewise. Budgets are being scrutinized for areas of waste and overspending. Choosing a Data &amp; Analytics platform then has become just like owning a car for most Americans:</p><ol><li>Platforms like Snowflake, Databricks, and others are no longer luxuries only for enterprises. And companies no longer have the luxury of choosing tools that mainly “fit their culture” over choosing what is cost effective for the business. Data platforms have become a commodity for businesses large and small.</li><li>Everything comes with an opportunity cost.</li></ol><p>Continuing the car analogy a bit more literally, let’s imagine that we are going to take a trip to the North Pole in a vehicle. Choosing the right vehicle will mean arriving alive and relatively unharmed at our destination while choosing the wrong vehicle could result in our end in a watery, icy grave. When your life is on the line, what are you going to choose? Something that you’ve got to worry about stopping and fixing up every so often or something that you reasonably expect will get you to your destination without requiring major repairs (short of breaking the car through accident or stupidity)? I just finished watching the Top Gear Polar Special and it was pretty awesome. You can see what they chose.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fm9MfnKoTM6c%3Fstart%3D298%26feature%3Doembed%26start%3D298&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dm9MfnKoTM6c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fm9MfnKoTM6c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/806f8cdbe7137bce822d43c91375d95b/href">https://medium.com/media/806f8cdbe7137bce822d43c91375d95b/href</a></iframe><p>Obviously taking a truck to drive to the North Pole is hardly a typical use-case for the average car buyer, but for businesses the stakes are likely just as high. When the survival of your company is on the line, do you want to pick a tool that requires continual, ongoing maintenance or something that’ll just start up and go and keep running regardless of what you put it through?</p><p>To me the answer seems obvious — You should always pick the tool that will allow you to focus on your business and not maintenance of the tool itself.</p><p>The guys from Top Gear love the Toyota Hilux. Prior to the Polar Special, they tried to destroy a Hilux by, among other tests, putting it in the sea and on top of a building being demolished. After a great deal of punishment, it still drove away.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fvideoseries%3Flist%3DPL3kHUb946ZVX3rfQCr4GwnKM0pv_UCVob&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fplaylist%3Flist%3DPL3kHUb946ZVX3rfQCr4GwnKM0pv_UCVob&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxnWKz7Cthkk%2Fhqdefault.jpg%3Fsqp%3D-oaymwEWCKgBEF5IWvKriqkDCQgBFQAAiEIYAQ%3D%3D%26rs%3DAOn4CLBxc-BSGjckg8ZznETqUg8A6h_k4w%26days_since_epoch%3D19664&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="853" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0399c2cbec303a9486a6eb0380833d60/href">https://medium.com/media/0399c2cbec303a9486a6eb0380833d60/href</a></iframe><p>In life, I choose to drive Toyotas because of their reliability.</p><p>At work, I’ve used both Databricks and Snowflake.</p><p>It was early 2022 and I had just taken a position to lead data engineering for a data science team that desperately needed to update their infrastructure and processes that hadn’t seen any meaningful changes since 2012. The company had been using Snowflake and I did have prior experience with it as well. The VP of Data Science had been talking to Databricks and they had a great sales pitch about being an all-in-one solution for data science and data engineering. I remember observing, “they are both enterprise platforms and I would expect that cost and performance would likely be comparable.” Ultimately we decided to run with Databricks based on the promise of being able to manage all of our processes in a single platform.</p><p>Thus began what was some of the worst three months of my life. We got our data pipelines all hooked up and started to work on ingestion and processing of the data at scale and that’s when everything fell apart. One dataset in particular consisted of billions of rows and terabytes of data. During testing we had limited ourselves to a few million rows and it worked fine then. Once we tried to turn the spigot on full, we didn’t even get linear performance decreases. We reworked the pipeline and reworked it and reworked it. Again and again we tried to restructure the data ingestion and processing and structure of the tables in Delta Lake to make something, ANYTHING work at all. Nothing worked. We were meeting every few days with our team from Databricks to no avail. At one point I was working six days a week, twelve and thirteen hours a day to try and get past the technical challenges. The closest I ever got to something workable took constant babysitting over a full weekend to run.</p><p>Having finally decided that I needed to try something else to at least validate the difficulties we were facing, I spent a Sunday rewriting all of our queries and getting the non-Snowflake native data sets loaded into Snowflake. By the end of that Sunday I was able to run our entire process, end-to-end in about two hours. TWO HOURS. And it took me ONE DAY to build. Needless to say, we spent the next week getting things polished up and then moved on to solving the actual business problems we needed to tackle.</p><p>Interestingly, it was shortly after my Snowflake “experiment” that we finally got feedback from an expert at Databricks. Their suggestions involved a bunch of things I could do to optimize the partitions and z-indexes initially and that would then require automation to re-optimize on a continual basis.</p><p>Needless to say, when I pointed out that I had a pipeline in Snowflake that met our required SLA and required no maintenance work at all to manage, we made the switch and never looked back.</p><p>Interestingly it was at about this same time I was interviewing a data engineer whose team worked exclusively with Databricks and Delta Lake and who generally had a good opinion of the platform. I asked them about how much time they spent re-optimizing their tables in Delta and their response was roughly 20% of the team’s time. In terms of people, if they had a five member team, that was one whole person to just manage their data in Delta Lake.</p><p>If Snowflake is the Toyota Hilux of the data world, then exactly how bad is Databricks? Much like the DeLorean DMC-12 it has been vastly over-hyped and under-delivers in pretty much every way possible.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxhanNmM1voc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxhanNmM1voc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxhanNmM1voc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/315295636b6ff91e353b99d115a0e93a/href">https://medium.com/media/315295636b6ff91e353b99d115a0e93a/href</a></iframe><p>And on that bombshell…..good luck with your data projects!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edd8201b5799" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake vs Databricks]]></title>
            <link>https://medium.com/@noah.goodrich/snowflake-vs-databricks-ecd539ed7f77?source=rss-8bd1468de264------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecd539ed7f77</guid>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Noah Goodrich]]></dc:creator>
            <pubDate>Mon, 25 Sep 2023 02:48:06 GMT</pubDate>
            <atom:updated>2023-09-25T02:48:06.685Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why the argument presents a false dichotomy</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fLzzr9YlhjEmm03v" /><figcaption>Photo by <a href="https://unsplash.com/@carsbyyaza?utm_source=medium&amp;utm_medium=referral">Yannis Zaugg</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I think I’m tired of the Snowflakes vs Databricks war. The way some people talk about one or the other you’d think that the two companies are locked in mortal combat and only one can emerge from the pit alive. Personally, I think the only answer to “which is better?” is “it depends”.</p><p>Let me explain.</p><h4>Macs vs PCs, Ferrari vs American Muscle</h4><p>Years ago I was talking to a coworker about Macs vs PCs (Linux, not Windows) and made this observation: “Macs are like Ferrari and PCs are like American muscle cars”. My reasoning was that people who buy Macs obviously love their machine to be beautiful and flawless and they don’t want to futz with hardware or software to “get stuff done”. On the other hand, being an avid (amateur) Linux user at the time I spent a lot of time ogling the beautiful custom-built machines with water cooling and flashy lights and the equally beautiful custom-built OS interfaces designed by master Linux users. For Linux folks, there is a large satisfaction in designing and building something that is their own creation. I’ve known people who would immediately begin building a new machine as soon as they finished building their current one. Linux users are also ok with occasionally reinstalling drivers or other software to “make things work”. For them it’s all part of the experience.</p><p>One could argue that neither Macs nor Linux PCs are better. Rather they represent two very divergent cultures. From what I’ve observed, Ferrari owners are probably (since I don’t personally know any) a lot like Mac owners — they want a beautiful, high performance machine that they can just enjoy driving. On the other hand I’ve actually known a few people who had American muscle cars. One thing they’ve all shared in common was the pride they expressed in building the car themselves and all of the customizations that made their car unique. For those folks, there was as much, if not more, joy in the act of building the car as there was in driving it.</p><h4>Databricks is for tinkerers, Snowflake isn’t</h4><p>I interviewed a guy last year whose team had successfully rolled out Databricks and Delta Lake. Given my own failed attempt to do so just months prior, I asked him how much time they spent on maintenance to keep Delta Lake working smoothly. His answer was roughly 20%. In a team of 5 data engineers, that means that one whole person would be required to maintain their data lake. I’ve also talked to other people who love Databricks. It seems like a common theme for these teams is that they were migrating from on-prem servers (or the equivalent in AWS EC2 instances) and had existing teams with deep experience with Spark and managing the infrastructure for it.</p><p>Having been part of the team at my last company that ultimately decided to go with Snowflake and then having migrated from trying to use Delta Lake to an existing Snowflake instance, I can tell you that I can run Snowflake with only a basic understanding of the storage and compute model it uses and with zero support from IT or devops folks. Given the size of my team and our general lack of expertise with Spark, using Snowflake was at first a matter of survival. Using Snowflake was the only way to get our head above water. Now, we choose to use it so we can focus on business problems rather than spending time on infrastructure or platform issues.</p><p>So back to the question of which is better.</p><h4>Comparing Ferrari to American muscle is a little non-sensical</h4><p>I love watching Top Gear (the good one with The Orangutan, Captain Slow, and the Hamster). For anyone not familiar with the show, a core component involves the hosts driving through beautiful scenery (seriously, the videography is one of my favorite things about the show) in expensive cars and reviewing them. Something I’ve noticed is that while they frequently compare Jaguars, Ferraris, Lamborghinis, and other European sports cars, they seldom compare them to American muscle cars. And its not because they never review American muscle cars because they do. I think they don’t because there is an inherent understanding that in general the same people aren’t shopping for either a Mustang or a Ferrari. The question of which is better comes down in part to whether you’re racing quarter-mile stretches between stop lights and hanging out at classic car shows or driving a twisty well-paved highway in Europe.</p><h4>There is plenty of room at the table for both</h4><p>Here I’m going to make the same argument about Snowflake and Databricks. In this case, Snowflake is the Ferrari and Databricks the Mustang. Both will get you to your destination, but the experience will be vastly different.</p><p>Earlier today I was reading a post from someone talking about Capital One’s investment in Databricks and the obvious correlation that they must be losing confidence in Snowflake. Because obviously this is a zero-sum game and only one of the two can emerge victorious (<em>sarcasm</em>).</p><p>I’d like to introduce you to this guy:</p><figure><img alt="Jay Leno" src="https://cdn-images-1.medium.com/max/607/1*VWYQxI99k4g3NFjyKZtrUA.jpeg" /></figure><p>Jay Leno owns somewhere in the neighborhood of 181 cars. You can go google a list of his cars, but suffice it to say that he has a mix of both European sports cars and American muscle cars along with a host of others. For someone who just loves cars and has gobs of money, the obvious answer is to own some of both.</p><p>I think for a company the size of Capital One, it only makes sense that they would have some projects where Snowflake makes more sense and others where Databricks makes more sense.</p><p>Anyone evaluating Databricks and Snowflake would do well to ask themselves which product’s culture best fits their team rather than asking which is “better” because the answer to “which is better” is always going to be “it depends”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecd539ed7f77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Being Told I Could Be Fired Was the Best Thing for My Career]]></title>
            <link>https://medium.com/@noah.goodrich/recently-i-had-the-privilege-of-going-to-lunch-with-a-long-time-manager-of-mine-who-has-become-a-8c78bac911a8?source=rss-8bd1468de264------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c78bac911a8</guid>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Noah Goodrich]]></dc:creator>
            <pubDate>Sun, 30 Jan 2022 20:50:30 GMT</pubDate>
            <atom:updated>2022-01-31T15:02:03.794Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yN-o0uGDngLfVHKGEIed8A.png" /><figcaption>Photo by <a href="https://unsplash.com/@linkedinsalesnavigator?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">LinkedIn Sales Solutions</a> on <a href="https://unsplash.com/s/photos/serious-meeting?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Recently I had the privilege of going to lunch with a long-time manager of mine who has become a very close friend. We talked about a lot of things, and the conversation ended with a simple, yet complicated to answer question to my friend. I asked, “Its evident that you do care, but why?” His answer was deep and insightful and yet again taught me something I will take with me as I leave his employ to pursue a new adventure. I’ll have to write about that answer another time.</p><p>Shortly after as I was scanning my LInkedIn feed I stumbled on a short post where the author outlined the first two principles of organizational psychology as they understand them:</p><ul><li>Never, ever mention firing people and avoid it if possible</li><li>Recognize its always leadership’s fault</li></ul><p>You may be asking yourself, “what do those two things have to do with each other?”</p><h3>I was told I would be fired</h3><p>Eight years ago, I sat across from that very same manager as he told me I’d have to learn to be a team player or he’d have to let me go. Walking out of that meeting, I knew three things: I had some big changes to make, it was going to take work, and my boss believed wholeheartedly that I could do it. Admittedly I hadn’t even heard the term organizational psychology until I read this post and I only ever took a single class in organizational behavior when I was in college so I’m clearly no expert in the field. But I’m going to hazard a guess here that the first tenet this author mentioned is a little more nuanced than suggesting that absolutely, under no circumstances should a leader ever tell an employee they could be fired.</p><h3>Sheldon Cooper Syndrome</h3><p>I’d like to provide a little backstory here first. Growing up I was one of those kids that naturally succeeded in school and was continually reminded how gifted, talented, and smart I was. During that period any time I came up against a situation where I was working with a team and failure looked likely I simply quit the team. Being a fan of Big Bang Theory I can only best explain this as I had Sheldon Cooper Syndrome, except I wasn’t nearly as smart and I was a lot more interested in girls and making friends 🙂. Unfortunately the lessons I failed to learn during adolescence followed me into adulthood and my professional career. Imagine all the things that make Sheldon Cooper hard to work with and you wouldn’t be that far off.</p><h3>He did what was needed for me and for the team</h3><p>At the time this conversation with my manager took place I’d been working for him for a while and he’d had plenty of opportunity to observe the way I worked with the rest of the team. His feedback was totally spot on. And by letting me know the consequences for failure, he did the only thing he could for the health of the team. Frankly, I would suggest that had he failed to have this conversation with me, that would have been a failure of leadership.</p><h3>There’s a WRONG and a RIGHT Way</h3><p>I’m pretty sure we can all think of those workplaces that have gained notoriety for their use of the vitality curve in their employee evaluations and performance reviews. These companies aren’t really any different from watching The Apprentice where a famous businessman-turned-politician created a dog-eat-dog competition.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FcrmvHJpCkfM&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcrmvHJpCkfM&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FcrmvHJpCkfM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f79267670f44452cbfdf92d520fb4ff/href">https://medium.com/media/2f79267670f44452cbfdf92d520fb4ff/href</a></iframe><p>Such cultures breed fear and paranoia and ultimately work counter to the interests of building highly effective teams.</p><p>Conversely let’s consider one of the most famous teams in the entire world, the Navy SEALS. Author Simon Sinek has written and spoken extensively about what he’s learned from interviewing military leaders. He shares the following diagram of how to build highly effective teams:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FkJdXjtSnZTI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DkJdXjtSnZTI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FkJdXjtSnZTI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e7ef19e7d0d5c87c66d503a68de5a2dc/href">https://medium.com/media/e7ef19e7d0d5c87c66d503a68de5a2dc/href</a></iframe><p>My two cents here is that you can only build highly effective teams if you build Trust. You can only build Trust if there is Accountability. And Accountability can only exist when there are real Consequences. In the SEALS, the consequences are always immediately apparent. If a team member fails in their duty, one of their brothers-in-arms may not make it home.</p><p>Fortunately in the world of business the stakes aren’t as high nor the consequences as dire. However this means that as leaders and team members we have to observe and be ready to provide feedback as necessary. Part of that feedback is helping your team members understand what failure looks like and how to avoid it. In the world of business firing an employee should be a last resort, but if that’s what you’re considering doing then it can be a kindness to share that truth with the employee facing firing.</p><h3>I owe all my successes to that conversation</h3><p>That wasn’t the last crucial conversation that manager and I had to have either. Over the years it became very clear to me that while we weren’t the type of friends that hung out or went to get drinks together after work, he became one of the best friends I have ever had. The most important thing that he brought to our friendship was the courage to always be completely honest and perfectly frank, even when it offended, hurt, or scared me.</p><p>As a final thought I recently started an awesome new job working with one of those former teammates. And this past August I celebrated my seventeenth anniversary with my best friend. All because a leader had the courage and kindness to tell me he was going to have to fire me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c78bac911a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>