<?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 Michal Pasierbski on Medium]]></title>
        <description><![CDATA[Stories by Michal Pasierbski on Medium]]></description>
        <link>https://medium.com/@pasmichal?source=rss-25bec2b11c97------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aU7Cks9C8JjIMME07RqU7Q.png</url>
            <title>Stories by Michal Pasierbski on Medium</title>
            <link>https://medium.com/@pasmichal?source=rss-25bec2b11c97------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 08:49:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pasmichal/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[Trust and Verify: Every AI Generation Needs a Validation Layer]]></title>
            <link>https://pasmichal.medium.com/trust-and-verify-every-ai-generation-needs-a-validation-layer-5fe8adf4beb5?source=rss-25bec2b11c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fe8adf4beb5</guid>
            <dc:creator><![CDATA[Michal Pasierbski]]></dc:creator>
            <pubDate>Sat, 01 Aug 2026 16:25:38 GMT</pubDate>
            <atom:updated>2026-08-01T16:25:38.534Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3kq0QbGTt879oIoxg_dOAQ.jpeg" /></figure><h3>Confidently wrong</h3><p>LLMs are great at being confidently wrong. That’s the part people still underestimate. A human who isn’t sure hedges, goes quiet, or asks a question. A model just keeps going in the same self-assured tone it uses when it’s right.</p><p>There’s no shame in there. No hesitation, no tell. <a href="https://www.youtube.com/shorts/IXPLCOEuLWE">This exchange with GPT</a> is worth 30 seconds of your time — it’s funny right up until you realize your product does the same thing, just with better formatting.</p><h3>Trust takes years to build, seconds to break, and forever to repair</h3><p>Now imagine that output going in front of clients paying thousands of dollars for your app. They open a report and see something like:</p><blockquote><strong><em>Q1: Do you own a house or apartment?</em></strong></blockquote><blockquote><strong><em>A1: No, I rent.</em></strong></blockquote><blockquote><em>…</em></blockquote><blockquote><strong><em>Q15: Do you have a mortgage?</em></strong></blockquote><blockquote><strong><em>A15: Yes, I have a mortgage for my apartment.</em></strong></blockquote><p>That came out of a state-of-the-art model. Why? Maybe the context window was too crowded — we know performance degrades past a certain threshold. Maybe we messed something up in the prompt or in the plumbing around it. Maybe it was a random fluke.</p><p>Here’s the thing: <strong>the cause doesn’t matter to the customer.</strong> They don’t see your context budget or your retry logic. They see a contradiction a bored intern would have caught, and they think exactly what you’d think: <em>if they can’t get something this obvious right, how do I know they didn’t botch the subtle stuff too?</em></p><p>And they’re not wrong to think it. That’s the real damage. One visible mistake doesn’t cost you one mistake’s worth of credibility — it retroactively puts a question mark on every output you’ve ever shipped them.</p><h3>Trust and verify</h3><p>When I joined Delta Labs, one of the first things I pushed on the team was a rule: <strong>every AI generation MUST go through a validation layer.</strong> Not the important ones. Not the customer-facing ones. Every one.</p><p>It sounds heavy-handed. It isn’t. Most of the checks are cheap, and the ones that aren’t are still cheaper than the conversation where you explain to a client why your product invented a number.</p><h3>Cheap checks catch stupid mistakes</h3><p>When we generate names for our AI personas, we run a check on whether the name and gender are plausible together. Costs a couple of tokens. Avoids producing a 45-year-old male called Sabrina.</p><p>That happened, by the way. That’s why the check exists.</p><p>The lesson generalizes: if a mistake can be caught by a deterministic check, catch it with a deterministic check. Ranges, enums, cross-field consistency, “does this value exist in our database” — none of that needs a model. You already know what valid looks like, so encode it. Save the expensive tooling for the problems that actually need judgment.</p><h3>Expensive checks catch subtle ones</h3><p>The rest do need judgment. When our AI agents produce reports, a separate agent proofreads the output. It checks whether cited numbers are grounded in the source data, whether quotes are real or fabricated, whether the narrative actually holds together. If something’s off, that feedback goes back to the author agent to correct itself.</p><p>Which is to say: it’s code review. Same idea, same reason it works. An author is a bad reviewer of their own work — they read what they meant to write. A fresh reader with one job and no ego about the draft catches things the author structurally can’t.</p><p>Just like in real life. If you want to be sure sure, you ask for a review.</p><h3>The part nobody puts in the demo</h3><p>Validation feels like a tax on the fun part. You built the thing that generates, and now you’re building the thing that second-guesses it. It’s slower, it costs tokens, and it doesn’t show up in the demo.</p><p>But the demo isn’t the product. A demo is one happy path in front of a friendly audience — you can sell that on the model alone. Production is thousands of generations in front of people who’ve paid you and will notice the one that’s wrong. You sell that on the guardrails.</p><p>Trust and verify. Ship the check with the generation, every time.</p><p><em>Originally published at </em><a href="https://www.pasmichal.com/post/trust-and-verify-ai-validation-layer/"><em>https://www.pasmichal.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fe8adf4beb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Employee, You’re Just a Resource in a Spreadsheet]]></title>
            <link>https://pasmichal.medium.com/employee-youre-just-a-resource-in-a-spreadsheet-c9f58fc22f25?source=rss-25bec2b11c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9f58fc22f25</guid>
            <category><![CDATA[career-advice]]></category>
            <dc:creator><![CDATA[Michal Pasierbski]]></dc:creator>
            <pubDate>Thu, 14 May 2026 16:31:07 GMT</pubDate>
            <atom:updated>2026-05-14T16:31:07.734Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*TfpdjV4LbabzMcGxqZgrJA.jpeg" /></figure><p>A few years back, a layoff felt like a freak event — the kind of thing you read about, not something that happened to you. That’s over. Since mid-2022 it hasn’t stopped. Q1 2026 brought the biggest spike since the peak in Q1 2023.</p><p>My LinkedIn feed is a graveyard of corporate loyalty right now. People who gave a company 5, 10, 15 years, writing these aching “end of a chapter” posts. You can feel the betrayal in them. The grief, even.</p><p>And here’s the part nobody wants to hear: we did this to ourselves. We identify with our employers way too much. We swallow the “culture,” the “mission,” the “we’re a family” line — and then we’re stunned when the math changes and the math wins.</p><h3>The Illusion vs. The Spreadsheet</h3><p>Everything about corporate life is built to make you feel indispensable. Look at what’s on offer:</p><ul><li><strong>“We’re a family.”</strong> Families don’t usually lay you off to clean up a quarterly margin.</li><li><strong>Learning budgets, free lunches, the snack wall.</strong> Retention tools. Not gifts.</li><li><strong>Vague promises of “growth.”</strong> Sure — right up until your growth stops lining up with the ROI.</li></ul><p>Strip it all away and you’re a number in a cost column. And honestly? That’s fine. The moment you accept that a job is a transaction and not your identity, you stop being a hostage to it. You get your power back.</p><h3>The Dinosaur Playbook</h3><p>I’ve been doing this for 15+ years. Here’s what it comes down to for me — three rules I don’t break.</p><h3>1. It’s a contract. Treat it like one.</h3><p>You’re trading specific skills and specific hours for a specific amount of money. Do the work well — actually well — but never forget the contract has an end date written in invisible ink. The day the money stops, the loyalty stops. Both ways.</p><h3>2. Always be looking.</h3><p>You don’t go looking for a job when you need one. You look when you already have one. Keeping your CV current and your network warm isn’t disloyal — it’s basic maintenance. And the only honest read on your market value is the one you get when there’s no severance clock ticking over your head.</p><h3>3. Don’t take it personally. It was never personal.</h3><p>When a company cuts 10% of headcount, they’re not firing <em>you</em>. They’re deleting a row to keep a board or a shareholder happy. If you never bought the “family” speech, you won’t be gutted by the termination email either. It’s a math problem. It was always a math problem.</p><p>And it cuts the other way too. Didn’t get the promotion? Maybe it’s not about you. Maybe the company has too many seniors already. Maybe there’s no budget for a raise this year. Maybe it’s a math problem — same as everything else.</p><h3>Final Thoughts</h3><p>Stop waiting for a corporation to love you back. It’s a spreadsheet. It doesn’t have a heart, and it was never going to grow one for you.</p><p>Put that energy into your own skills, your own name, your own runway. The goal was never to be un-fireable — nobody is. The goal is to be un-shakeable when the fire shows up. Because it will.</p><p><em>Originally published at </em><a href="https://www.pasmichal.com/post/employee-youre-just-a-resource-in-a-spreadsheet/"><em>https://www.pasmichal.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9f58fc22f25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Motorcycle Riding Pulled Me Out of Burnout]]></title>
            <link>https://pasmichal.medium.com/how-motorcycle-riding-pulled-me-out-of-burnout-033bb1fa08de?source=rss-25bec2b11c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/033bb1fa08de</guid>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[burnout]]></category>
            <dc:creator><![CDATA[Michal Pasierbski]]></dc:creator>
            <pubDate>Fri, 08 May 2026 13:44:37 GMT</pubDate>
            <atom:updated>2026-05-08T13:44:37.438Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sxoPrBOsCcQDMxsPuP4ONQ.jpeg" /></figure><p>If you ask a random person what they think about motorcycles, they’ll likely tell you it’s a dangerous hobby. While that is objectively true-you are traveling at high speeds with essentially zero protection-there is a profound therapeutic aspect to it that non-riders often miss.</p><h3>The Problem: Digital Noise</h3><p>At my lowest point, my “work/life hygiene” was non-existent. My habits looked like this:</p><ul><li>Watching YouTube “in the background” while working.</li><li>Falling asleep to podcasts just to drown out my own thoughts.</li><li>Scrolling X (Twitter) on the toilet.</li><li>Checking emails while walking the dog.</li></ul><p>You get the idea: my mind was always busy, never idling. I was constantly catching up to something, but never actually present. If you’ve ever caught yourself unconsciously grabbing your phone or opening socials in a new tab while waiting for a code build to finish, you know exactly how that burnout feels.</p><h3>The Beginning: Mastering the Mechanics</h3><p>The beauty of motorcycle riding is that it is physically demanding. One hand operates the clutch, the other the throttle and front brake. One foot shifts gears; the other manages the rear brake. Because you don’t have a metal cage to protect you, you are forced to pay absolute attention to your surroundings.</p><p>Even after the mechanics become second nature, you can’t afford to “zone out.” One greasy patch of road or one wet manhole cover can result in your gear (and your ass) sliding across the asphalt. It demands a level of focus that leaves no room for digital anxiety.</p><h3>The End Game: Radical Freedom</h3><p>Once you reach the stage where the bike feels like an extension of your body, a second stage unlocks: Freedom.</p><p>I can’t overstate how liberating it feels. You feel every gust of wind on the open road. You smell the freshly spread manure when passing Swiss farms. Occasionally, a bug splatters on your visor-a tiny, messy reminder that there is nothing separating you from the world.</p><p>I deliberately avoid using navigation. I don’t want a voice in my ear telling me what to do. I let myself get lost, taking roads I’ve never seen just to see where they lead. If I see a beautiful vista, I stop. No notifications, no schedule. Just my time.</p><h3>The Great Disconnect</h3><p>For me, the world stops when I’m riding. Even if there are “fires” at work or in my private life, they can’t reach me. The phone is tucked away in a jacket pocket, my hands are busy, and my eyes are on the horizon.</p><p>In a world obsessed with information overflow, hustle culture, and social media posing, motorcycling feels like a necessary rebellion. It works because:</p><ul><li><strong>It forbids multitasking:</strong> You focus, or you fall.</li><li><strong>It’s analog:</strong> It’s not stuffed with distracting electronics.</li><li><strong>It’s raw:</strong> The inherent danger is exactly what makes the “life” part feel so vivid again.</li></ul><p>The science is clear: our best ideas don’t come when we’re grinding through a to-do list; they arrive in the quiet gaps in between. We don’t just need downtime to rest — we need it to remain human.</p><p><em>Originally published at </em><a href="https://www.pasmichal.com/post/how-motorcycle-riding-pulled-me-out-of-burnout/"><em>https://www.pasmichal.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=033bb1fa08de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI is making me dumb and lazy]]></title>
            <link>https://pasmichal.medium.com/ai-is-making-me-dumb-and-lazy-9eb8fa0327cc?source=rss-25bec2b11c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/9eb8fa0327cc</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-slop]]></category>
            <dc:creator><![CDATA[Michal Pasierbski]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 20:54:59 GMT</pubDate>
            <atom:updated>2025-08-04T20:54:59.271Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Disclaimer: this essay is NOT about simple landing pages or one-of web apps. I’m talking about production systems that are meant to be maintained</em></p><p>I wasted couple hours trying to make cursor agent configure monorepo with <a href="https://bazel.build/">Bazel</a>. Finally Claude Code managed to get it working, but I learned nothing in the process — lazy.</p><p>Subconsciously I chose to use AI to solve my problem as a path of least resistance. I knew I it’s a stopgap solution, that I would need to learn it anyway, but chose otherwise — dumb.</p><h3>When AI makes me more efficient?</h3><p>I get most of AI when I know how correct solution should look like. I might only have high level idea of the desired outcome, that’s enough.</p><p>Sometimes LLMs cover more edge cases, sometimes I need to prompt to make sure to cover something. The key point is that don’t have to spend time figuring out everything from scratch and I’m the one driving the implementation.</p><p>This obviously requires expertise, knowledge, experience — everything that “vibe coders” try to circumvent.</p><h3>When AI makes me waste time?</h3><p>Illusion that AI can do all the work for me. This is a common pitfall and I blame techfluencers and the hype train they created — “X just killed Y”, “Z is taking your job”… I’m sure you saw plenty of those.</p><p>Even if in some cases AI actually can do all the work for you, at some point you will have to understand how things work. At some point things will bug out, something will break and you will have to go in and figure it out (vibe debugging my ass).</p><p>That’s the bottleneck — me and my understanding. There is no going around this. Sure, asking AI to explain helps and I use it a lot, but in the end I have to do the work.</p><h3>Moving forward</h3><p>Effective use of AI tools is a skill to learn and I don’t think we developed usage pattterns to fully take advantage of it. To be honest I don’t think there is one-size-fit-all approach. We all have different background knowledge, experience and skills.</p><p>It is crucial to set the expectations right. Having AI producing code for you does not mean you can afford not knowing how things work. It’s a debt that you will have to pay.</p><p><em>Originally published at </em><a href="https://www.pasmichal.com/post/ai-is-making-me-dumb-and-lazy/"><em>https://www.pasmichal.com/post/ai-is-making-me-dumb-and-lazy/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9eb8fa0327cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Pass Data from a Function Tool to State in ADK (Agent Development Kit)]]></title>
            <link>https://pasmichal.medium.com/how-to-pass-data-from-a-function-tool-to-state-in-adk-agent-development-kit-e98828703b71?source=rss-25bec2b11c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/e98828703b71</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[adk]]></category>
            <dc:creator><![CDATA[Michal Pasierbski]]></dc:creator>
            <pubDate>Mon, 21 Apr 2025 17:14:58 GMT</pubDate>
            <atom:updated>2025-04-28T14:55:31.390Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAoE10DqQt0Yj4JR7i7J_Q.png" /></figure><h3>What is ADK?</h3><p>Google’s new ADK (Agent Development Kit) is an exciting step forward in building AI agents. Think of it as a framework for composing tools, states, and logic in a way that feels modular and powerful — kind of like LangChain or LangGraph, but backed by Google.</p><p>IMO it has lower learning curve than LangGraph while offering the same functionality, better local development tooling and straight forward deployment options to Agent Engine or Cloud Run (for details see <a href="https://google.github.io/adk-docs/deploy/">docs</a>).</p><h3>What is state?</h3><p>In ADK state is a mutable object shared between agents and tools. It holds all the data that flows through your agent’s workflow — like user inputs, intermediate results, or tool outputs.</p><h3>How to set state from function tool?</h3><p>It’s not clearly documented in the official docs, but thankfully the source code is well-structured and readable.</p><figure><img alt="Source: https://github.com/google/adk-python/blob/1664b455627c01194a804b880d31bd2602e1a447/src/google/adk/tools/function_tool.py#L59" src="https://cdn-images-1.medium.com/max/800/0*uFWWG4ztKsCY4P9z.png" /><figcaption><em>Source: </em><a href="https://github.com/google/adk-python/blob/1664b455627c01194a804b880d31bd2602e1a447/src/google/adk/tools/function_tool.py#L59"><em>https://github.com/google/adk-python/blob/1664b455627c01194a804b880d31bd2602e1a447/src/google/adk/tools/function_tool.py#L59</em></a></figcaption></figure><p>You can get hold of <a href="https://google.github.io/adk-docs/context/#the-different-types-of-context">ToolContext</a> object (which holds reference to the state object) by adding an argument named tool_context to your tool function signature - ADK will inject the value.</p><p>For example:</p><pre>from google.adk.agents import LlmAgent<br>from .prompt import system_prompt<br>from google.adk.tools import ToolContext<br><br>def save_prd(prd: str, tool_context: ToolContext):<br>    tool_context.state[&#39;prd&#39;] = prd<br><br>agent = LlmAgent(<br>    name=&quot;product_owner&quot;,<br>    description=&quot;A product owner agent that is responsible for the product vision and strategy&quot;,<br>    model=&quot;gemini-2.0-flash&quot;,<br>    instruction=system_prompt,<br>    tools=[save_prd],<br>)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e98828703b71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Product Hunt drama: It’s All About Eyeballs on the Product — Michal Unfiltered]]></title>
            <link>https://pasmichal.medium.com/product-hunt-drama-its-all-about-eyeballs-on-the-product-michal-unfiltered-a539ffb15f0c?source=rss-25bec2b11c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/a539ffb15f0c</guid>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[indiehackers]]></category>
            <dc:creator><![CDATA[Michal Pasierbski]]></dc:creator>
            <pubDate>Sat, 19 Oct 2024 20:36:56 GMT</pubDate>
            <atom:updated>2024-10-19T22:45:31.405Z</atom:updated>
            <content:encoded><![CDATA[<h3>Product Hunt drama: It’s All About Eyeballs on the Product — Michal Unfiltered</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8qi4HKC7xzOrg6hI.png" /></figure><p>There’s been a lot of chatter lately about Product Hunt’s shift from a discovery platform to a showcase for VC-backed projects. For indie hackers, the platform was once a go-to for visibility. But now, it feels like the deck is stacked against them. So, where does that leave those of us who need every bit of attention we can get?</p><p><em>Nico’s tweet that started it all</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/nico_jeannen/status/1840348855289905567&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/fcaf61f633b616168fc3cc0d01e49f4a/href">https://medium.com/media/fcaf61f633b616168fc3cc0d01e49f4a/href</a></iframe><h3>New wave of alternatives?</h3><p>In response, some indie hackers built alternatives, aiming to bring back the spirit of fairness.</p><p>But even these alternatives struggled to solve the core issue: visibility for the products. Sure, those platforms get visibility, but the products not. Dagobert Renouf dropped out from the race, admitting that the main reason to use Product Hunt is still to get eyeballs on your product. Discovery has taken a backseat to just being seen.</p><p><em>Dagobert’s tweet explaining why he’s giving up on his product hunt clone</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/dagorenouf/status/1846548964499165556&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/551cb20f567542a87cdfb5f5147b2ec2/href">https://medium.com/media/551cb20f567542a87cdfb5f5147b2ec2/href</a></iframe><p>So while indie hackers are searching for a fair playing field on Product Hunt (or its alternatives), crafting launch strategies and rallying the community for that coveted “Product of the Day” badge, they’re missing the real point — it’s all about getting eyeballs on the product.</p><h3>What’s the alternative?</h3><p>I stumbled upon a tweet from Thomas Sanlis, the creator of <a href="https://www.uneed.best/">Uneed</a> with the stats from last 30 days.</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/T_Zahil/status/1847612415355343079&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/dbf264cee99029a475aed4d36a19c42b/href">https://medium.com/media/dbf264cee99029a475aed4d36a19c42b/href</a></iframe><p>Very impressive numbers! One stood out to me:</p><blockquote><em>🖱️ 451 visits to our best-performing premium product</em></blockquote><p>30 days, premium product listing (read “paid”) on Uneed got 451 visits.</p><p>On the other hand I helped fellow indie hacker <a href="https://x.com/denisyurchak">Denis Yurchak</a> crafting a post for r/SideProject subreddit. It took 5 mins with a help of my <a href="https://notmichal.gumroad.com/l/how-to-dominate-reddit-r-side-project-edition">How to Dominate Reddit, One Sub at a Time: r/SideProject Edition</a> analysis.</p><p>In 24 hours he got 70 visitors to his product page with no paid promotion and very low effort.</p><p>A quick, 5-minute Reddit post on r/SideProject got a sixth of the traffic that a paid Product Hunt alternative listing managed in 30 days — within just 24 hours.</p><h3>It’s Not About the Platform, It’s About the Attention</h3><p>At the end of the day, indie hackers don’t just need a fair platform-they need attention. Product Hunt might be dominated by VC-backed projects, and its alternatives may promise fairness, but they can’t guarantee eyeballs on your product.</p><p>The real challenge is cutting through the noise and getting in front of your audience. Whether it’s a premium listing or a quick Reddit post, what matters most is how many people actually see your product.</p><p>As Denis’s story shows, you don’t need to pour money into promotions. Sometimes, all it takes is knowing where your audience hangs out and crafting the right message. And that’s the edge platforms like Reddit can offer-direct access to niche communities, real engagement, and results that speak for themselves.</p><p>Indie hackers, it’s time to stop chasing the perfect launch strategy and focus on what really matters: getting those precious eyeballs on your product.</p><p>You can grab a free copy of <a href="https://notmichal.gumroad.com/l/how-to-dominate-reddit-r-side-project-edition">How to Dominate Reddit, One Sub at a Time: r/SideProject Edition</a> and try it out for yourself. More subreddits analysis coming soon!</p><p>If you enjoyed this post, consider subscribing to my <a href="https://notmichal.substack.com/">newsletter</a> for more insights on indie hacking, marketing, and product development. Every two weeks you get a summary of what’s happening here and some dad jokes.</p><p><em>Originally published at </em><a href="https://notmichal.com/blog/its-all-about-eyeballs-on-the-product"><em>https://notmichal.com</em></a><em> on October 19, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a539ffb15f0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dead simple Role-based access control in supabase]]></title>
            <link>https://pasmichal.medium.com/dead-simple-role-based-access-control-in-supabase-aa6e1c5c9b0?source=rss-25bec2b11c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa6e1c5c9b0</guid>
            <category><![CDATA[webdev]]></category>
            <category><![CDATA[supabase]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Michal Pasierbski]]></dc:creator>
            <pubDate>Tue, 22 Aug 2023 07:16:44 GMT</pubDate>
            <atom:updated>2023-08-22T07:16:44.835Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I shared this post 👇 and it gained more attention than I expected (considering my usual standards 😅). Here’s a breakdown of how everything comes together.</em></p><h3>not Michal on Twitter: &quot;Dead simple Role-based access control in @supabase 1. Create `user_role` enum type to reference roles in human readable manner2. Create `user_roles` table where to associate users and roles3. Add row Row-level security to allow only specific rolesMore 👇 pic.twitter.com/BOyyzu3AoI / Twitter&quot;</h3><p>Dead simple Role-based access control in @supabase 1. Create `user_role` enum type to reference roles in human readable manner2. Create `user_roles` table where to associate users and roles3. Add row Row-level security to allow only specific rolesMore 👇 pic.twitter.com/BOyyzu3AoI</p><h3>1. Defining Roles</h3><p>For a more human-friendly approach to referencing roles, you can create a custom enum type:</p><pre>CREATE TYPE user_role AS ENUM (&#39;spots_moderator&#39;, &#39;admin&#39;);</pre><h3>2. Setting Up the “user_roles” Table</h3><p>The user_roles table allows us to link roles with users. To ensure the security of user_roles, enable Row-Level Security (RLS) and implement the policy:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*bgt9cwgv-PIP22xNMQ_m2g.png" /></figure><p>To secure user_roles enable RLS (Row-level security) and add following policy auth.uid() = user_id</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2TH1olH83xgtjYJ7Ad3Shw.png" /></figure><p>This policy grants authenticated users access to read the roles they possess.</p><p>Key points:</p><ul><li>user_id references auth.users.id</li><li>The role is based on the user_role type (the enum type from step 1.)</li><li>RLS enables reading of roles owned by the user</li></ul><h3>3. Implementing Row-Level Security for Role-Specific Access</h3><p>You can now control access to specific rows within a table, such as spot_proposals in this case, by users with particular roles. This is done by specifying the following RLS condition:</p><pre>(auth.uid() IN ( SELECT user_roles.user_id<br>   FROM user_roles<br>  WHERE (user_roles.role = &#39;spots_moderator&#39;::user_role)))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6TTjaHJURngSCNAumm_D7Q.png" /></figure><p>Key points:</p><ul><li>user_roles has an RLS policy, allowing authenticated users to read their roles</li><li>The RLS policy on spot_proposals restricts access to specific roles, such as spots_moderator</li></ul><p>This setup ensures a straightforward yet effective role-based access control mechanism in Supabase.</p><p>Looking for more Supabase content? Join me on Twitter and Medium for the latest updates, tutorials, and insights! Follow along to stay in the loop.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa6e1c5c9b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I learned how to listen and be listened to]]></title>
            <link>https://pasmichal.medium.com/how-i-learned-how-to-listen-and-be-listened-to-110944e8e56b?source=rss-25bec2b11c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/110944e8e56b</guid>
            <category><![CDATA[soft-skills]]></category>
            <category><![CDATA[communication]]></category>
            <dc:creator><![CDATA[Michal Pasierbski]]></dc:creator>
            <pubDate>Sun, 10 Jan 2021 00:00:00 GMT</pubDate>
            <atom:updated>2021-01-15T16:16:23.056Z</atom:updated>
            <content:encoded><![CDATA[<h3>Backstory</h3><p>In one of the sprint retrospectives, I wrote a note:</p><blockquote><em>Decisions are made in siloses</em></blockquote><p>At that time, our team was split into small groups working on entirely different projects. This note spawned a defensive reaction from my peers, which led to a lengthy, not very productive conversation.</p><p>Later in the week, I had a one-on-one with my direct manager and brought this topic. One thing that struck me was how he described my note and verbal explanation that followed as “aggressive”. I remember how long it took me to phrase that note and how careful I was in that conversation not to hurt anyone’s feelings. At that time, I was very conscious not to be aggressive, offensive, or misunderstood, and yet, that’s exactly how it played out.</p><p>That led me to look for some books that would help me improve my communication skills. I found <a href="https://www.amazon.de/-/en/dp/B014OISVU4/ref=cm_sw_r_cp_awdb_t1_-xT-FbE9G1DPR">Nonviolent Communication: A Language of Life: Life-Changing Tools for Healthy Relationships</a> by Marshall B. Rosenberg, and it changed my approach to dialogs.</p><h3>Nonviolent communication</h3><p>Nonviolent communication is a communication style that focuses on compassion, feelings, and needs. It is free of judgment, ambiguity, blame, and anger. This applies not only to people we communicate with but also (maybe even more importantly) to ourselves.</p><p>How could I have communicated my concerns in a nonviolent way?</p><blockquote><em>When A and B worked on X, I felt out of the loop. I’m worried that the team is not familiar with the changes, making it more difficult for us to contribute later on</em></blockquote><p>Before, I thought that calling people out by name was provoking conflict, but there is no blame in this message, no finger-pointing. It first describes a situation, giving enough context not to be a vague statement. Secondly, it states my feelings (editorial note: “out of the loop” is not a feeling, I’m still working on my nonviolent communication skills ;) ) and worries. The third component is to state a need, but I would leave it for the discussion part. I’m confident that such a framed note would start the conversation with a much more compassionate tone.</p><h3>Listen to understand</h3><p>To know how to speak, one needs to know how to listen first.</p><p>The most significant change I noticed in myself is my new ability to listen with compassion, especially when taking criticism. I used to get defensive immediately, a.k.a “listen to respond” mode. Now I consciously ask myself a couple of questions before responding:</p><ul><li>what am I feeling now and why</li><li>what my interlocutor is feeling now and why</li><li>what is the need that my interlocutor tries to express</li></ul><p>I will ask clarifying questions, drill until I genuinely understand before responding. More often than not, my first thoughts are not in line with what my conversation partner is trying to express.</p><h3>Summary</h3><p>For me, <a href="https://www.amazon.de/-/en/dp/B014OISVU4/ref=cm_sw_r_cp_awdb_t1_-xT-FbE9G1DPR">Nonviolent Communication</a> created this “a-ha” moment. It is a recommended lecture by Microsoft CEO Satya Nadella, and I can see why. It changed not only how I communicate with my colleagues but, more importantly, with my family.</p><p><em>Originally published at </em><a href="https://mpasierbski.com/how-i-learned-how-to-listen-and-be-listend-to"><em>https://mpasierbski.com</em></a><em> on January 10, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=110944e8e56b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ How to handle secrets in AWS Codebuild]]></title>
            <link>https://pasmichal.medium.com/how-to-handle-secrets-in-aws-codebuild-6e1b96013712?source=rss-25bec2b11c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e1b96013712</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[webops]]></category>
            <category><![CDATA[codebuild]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Michal Pasierbski]]></dc:creator>
            <pubDate>Sun, 05 Jul 2020 07:34:12 GMT</pubDate>
            <atom:updated>2020-07-05T07:34:12.279Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uifhPrnvz6ZBWo6Q" /></figure><h3>Problem</h3><p>You have a CodeBuild project that build you static site from headless CMS and you need the access token to call the API. You are smart enough to know that hardcoding it directly in source code is not a good idea.</p><ul><li>Where to store this token?</li><li>How to make it available to CodeBuild project?</li><li>How to protect it from people that should not have access to it?</li></ul><h3>Environment variables</h3><p>You could set secrets as environment variables directly in CodeBuild. This works but has couple downsides:</p><ul><li>anyone who has access to this build project can see environment variables for each build, i.e. read secrets</li><li>anyone who has access to this build project can change environment variables, i.e. write secrets</li></ul><h3>Secrets manger</h3><p>AWS has a service to securely store passwords, tokens, credentials or any other sensitive data — <a href="https://aws.amazon.com/secrets-manager/">AWS Secrets Manager</a>. Fortunately Secrets Manager integrates seamlessly with CodeBuild through a buildspec file.</p><p>Values from Secrets Manager can be mapped out to environment variables that will be available through all build project phases.</p><pre>env:<br>  secrets-manager:<br>    ENV_VARIABLE_NAME: secrets-name-or-arn:key</pre><p>CodeBuild can also resolve secret-name-or-arn from environment variable passed to build projects itself, which come in very handy when working with IaC (Infrastructure as code) library, like <a href="https://www.terraform.io/">terraform</a> or <a href="https://docs.aws.amazon.com/cdk/latest/guide/home.html">aws-cdk</a>.</p><pre>resource &quot;aws_secretsmanager_secret&quot; &quot;secrets&quot; {<br>  name = &quot;some-name&quot;<br>}</pre><pre>resource &quot;aws_codebuild_project&quot; &quot;build&quot; {<br>  environment {<br>    environment_variable {<br>      name = &quot;SECRETS_ID&quot;<br>      value = &quot;${aws_secretsmanager_secret.secrets.arn}&quot;<br>    }<br>  }<br>}</pre><p>Here is a sample buildspec file:</p><pre>version: 0.2<br>env:<br>  secrets-manager:<br>    NPM_REGISTRY_TOKEN: $SECRETS_ID:NPM_REGISTRY_TOKEN<br>    SUPER_SECRET_PASSWORD: arn:aws:secretsmanager:eu-west-1:123456789:secret:secrets-name:PASSWORD<br>    OTHER_SECRET_PASSWORD: secrets-name:OTHER_PASSWORD<br>  phases:<br>    install:<br>      runtime-versions:<br>        nodejs: 10<br>      commands:<br>      - npm install<br>    build:<br>      commands:<br>      - npm run build</pre><p>For more details about buildspec check <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#secrets-manager-build-spec">official documentation</a>.</p><p><strong>NOTE:</strong> Of course IAM role associated with CodeBuild project has to have <a href="https://docs.aws.amazon.com/mediaconnect/latest/ug/iam-policy-examples-asm-secrets.html">sufficient permissions to access secrets</a></p><p><em>Originally published at </em><a href="https://mpasierbski.com/post/aws-codebuild-secrets/"><em>https://mpasierbski.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e1b96013712" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloudflare: Workers KV caveats]]></title>
            <link>https://pasmichal.medium.com/cloudflare-workers-kv-caveats-a7b8c20fafa7?source=rss-25bec2b11c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7b8c20fafa7</guid>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[cloudflare-workers]]></category>
            <dc:creator><![CDATA[Michal Pasierbski]]></dc:creator>
            <pubDate>Sun, 17 Nov 2019 20:26:00 GMT</pubDate>
            <atom:updated>2019-11-17T22:15:08.710Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Cloudflare logo" src="https://cdn-images-1.medium.com/max/1024/1*06dY0heUQ1H4_CeNLOsvfQ.png" /></figure><blockquote><em>Workers KV is a global, low-latency, key-value data store. It supports exceptionally high read volumes with low-latency, making it possible to build highly dynamic APIs and websites which respond as quickly as a cached static file would.</em></blockquote><p><a href="https://developers.cloudflare.com/workers/reference/storage/overview/">https://developers.cloudflare.com/workers/reference/storage/overview/</a></p><p>At <a href="https://www.ef.com/wwen/">EF Education First</a> we migrated some functionality from monolith application to Cloudflare worker. Part of it was figuring out how to use existing data (stored in DynamoDB) in the worker. Worker KV seemed like a perfect tool for the job:</p><ul><li>key-value store</li><li>low-latency reads</li><li>high availability</li><li>Worker API</li></ul><p>After a couple of months of development, couple production releases and number of hours worth of debugging these are caveats I discovered.</p><h3>Not available in China</h3><p>Yes, if you have to support the Chinese market you will have to have some fallback solution. This alone might stop you from using Worker KV, as there is no way to overcome this limitation apart from implementing your own storage solution and if you do it for China, you could do the same for the rest of the world and not deal with special cases.</p><p>Below you can find excerpts of my conversation with Cloudflare support.</p><blockquote><em>I just checked with my colleagues, and unfortunately you are correct, Workers KV does not work in China.</em></blockquote><blockquote><em>It seems that the KV won’t be supported in China for a while now. Our team had a meeting with Baidu regarding this, but it seems that they couldn’t agree on any solution.</em></blockquote><h3>Fix?</h3><p>If your data fits in a Worker ( <a href="https://developers.cloudflare.com/workers/about/limits/">total script limit is 1MB</a>), put it directly in the worker script.</p><p>Put your data as a JSON on some publicly accessible origin and <a href="https://developers.cloudflare.com/workers/about/using-cache/">cache it</a>.</p><h3>“Cold cache” is slow and frequent</h3><blockquote><em>Workers KV read performance is determined by the amount of read-volume a given key receives. Maximum performance for a key is not reached unless that key is being read at least a couple times per minute in any given data center.</em></blockquote><p><a href="https://developers.cloudflare.com/workers/reference/storage/limitations/">https://developers.cloudflare.com/workers/reference/storage/limitations/</a></p><p>I saw response times for NAMESPACE.get(key) taking as long as ~500ms at times from Zurich edge location. It was not that big of a problem on North America, so we reached out to support asking about the slow response times:</p><blockquote><em>Depending on where in the world the request is coming from, the request time for a cold-start is on average about 100–300ms — the storage is held in the central US.</em></blockquote><p>This adds extra 300ms to TTFB (Time to first byte) which is pretty bad.</p><p>For cached keys, response times are ~6–8ms 👍.</p><p>From my investigation, cached keys are invalidated after 60 seconds which in line with this paragraph from the <a href="https://developers.cloudflare.com/workers/reference/storage/limitations/">official documentation:</a></p><blockquote><em>While writes will often be visible globally immediately, it can take up to 60 seconds before reads in all edge locations are guaranteed to see the new value.</em></blockquote><h3>Fix?</h3><p>You could try to keep cache “hot” by pinging each key every minute. Problem is that you have to do it for each data center.</p><p>You could reduce the number of keys by putting more data under one key (value size limit per key is 10MB).</p><p>If your data fits in a Worker ( <a href="https://developers.cloudflare.com/workers/about/limits/">total script limit is 1MB</a>), put it directly in the worker script.</p><p>Put your data as a JSON on some publicly accessible origin and <a href="https://developers.cloudflare.com/workers/about/using-cache/">cache it</a>.</p><h3>Conclusion</h3><p>Overall Cloudflare is a great product but Worker KV is currently a bit disappointing. It is much-needed functionality but as of writing, it does not deliver. As a developer, you have to be very aware of its limitations and workaround your usage patterns to make sure you not introducing performance bottlenecks.</p><p>China’s availability problem is even bigger and unfortunately, I couldn’t find a mention about it in the documentation. Considering there is no fallback solution provided by Cloudflare it yields KV unusable if you want to support customers in China.</p><p><em>Originally published at </em><a href="https://mpasierbski.com/post/2019-11-17-cloudflare-workers-kv-caveats/"><em>https://mpasierbski.com</em></a><em> on November 17, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7b8c20fafa7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>