<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Applied Efficiency</title>
    <description>The latest articles on DEV Community by Applied Efficiency (@applied_efficiency).</description>
    <link>https://dev.to/applied_efficiency</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4246286%2F583ba913-aa9e-4359-a402-49046a28ee89.jpg</url>
      <title>DEV Community: Applied Efficiency</title>
      <link>https://dev.to/applied_efficiency</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/applied_efficiency"/>
    <language>en</language>
    <item>
      <title>Stop telling your AI "it broke." Paste the exact error instead.</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Sun, 06 Dec 2026 17:18:30 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/stop-telling-your-ai-it-broke-paste-the-exact-error-instead-5dpi</link>
      <guid>https://dev.to/applied_efficiency/stop-telling-your-ai-it-broke-paste-the-exact-error-instead-5dpi</guid>
      <description>&lt;p&gt;When something breaks, most people tell their AI "it broke" or "there's an error somewhere" — then wonder why the fix is a guess.&lt;/p&gt;

&lt;p&gt;The error message is the diagnosis. It often names the file, the line, and the exact thing that went wrong. Paraphrasing it throws that evidence away and forces the AI to rebuild your problem from a summary.&lt;/p&gt;

&lt;p&gt;Feed it the error instead:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Here's the exact error: [paste]. Here's what I was doing when it happened: […]. Explain the cause in plain English, then the fix.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Two parts do the work:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The exact text&lt;/strong&gt; — copied, not retyped. "Cannot read properties of undefined" points at a specific failure; "it crashed" points at everything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What you were doing&lt;/strong&gt; — the click, the input, the page. The same error at a different moment can mean a different cause.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Try it the next time something breaks: paste first, describe second. You'll get a cause instead of a guess — and after a few rounds, you'll start recognizing the patterns before the AI does.&lt;/p&gt;

&lt;p&gt;This is pattern 5 of 5 in our free Prompt Starter Kit — the whole kit is readable with no account: &lt;a href="https://last20.appliedefficiencyai.com/kit" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com/kit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Building in public, honestly: 3 signups, 1 enrollment, 0 ships, $0 of our $500-by-Dec-31 goal, 25 days left. Ship #1 is still open — start free with AI Foundations: &lt;a href="https://last20.appliedefficiencyai.com" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>learning</category>
    </item>
    <item>
      <title>"Fix this" is not a prompt. Give your AI a job first.</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Sat, 05 Dec 2026 17:17:29 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/fix-this-is-not-a-prompt-give-your-ai-a-job-first-35jg</link>
      <guid>https://dev.to/applied_efficiency/fix-this-is-not-a-prompt-give-your-ai-a-job-first-35jg</guid>
      <description>&lt;p&gt;"Fix this" is not a prompt. It's a shrug.&lt;/p&gt;

&lt;p&gt;When you ask an AI to just "fix this" or "make it better," you haven't told it what good looks like — so it guesses. Vague ask, vague work.&lt;/p&gt;

&lt;p&gt;Give it a job instead. A role sets the standard the AI holds itself to:&lt;/p&gt;

&lt;p&gt;"You are a senior developer reviewing my code for bugs" beats "fix this" every time. Same code, sharper answer — because now it knows what job it's doing and what counts as doing it well.&lt;/p&gt;

&lt;p&gt;The template we teach:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You are a [role]. Your job is [outcome]. Here's the material: …&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Three parts, ten seconds:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Role&lt;/strong&gt; — who is it acting as?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outcome&lt;/strong&gt; — what does done look like?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Material&lt;/strong&gt; — the actual code, text, or data, pasted in.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Try it on your next prompt. Replace "help me with this" with a role and an outcome, and compare the two answers. The difference is not subtle.&lt;/p&gt;

&lt;p&gt;This is pattern 1 of 5 in our free Prompt Starter Kit — the whole kit is readable with no account: &lt;a href="https://last20.appliedefficiencyai.com/kit" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com/kit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Building in public, honestly: 3 signups, 1 enrollment, 0 ships, $0 of our $500-by-Dec-31 goal, 26 days left. Ship #1 is still open — start free with AI Foundations: &lt;a href="https://last20.appliedefficiencyai.com" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>learning</category>
    </item>
    <item>
      <title>"It works on my machine" doesn't count as shipped</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Fri, 04 Dec 2026 17:19:57 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/it-works-on-my-machine-doesnt-count-as-shipped-2hc6</link>
      <guid>https://dev.to/applied_efficiency/it-works-on-my-machine-doesnt-count-as-shipped-2hc6</guid>
      <description>&lt;p&gt;"It works on my machine" is where projects go to stall.&lt;/p&gt;

&lt;p&gt;At Last20 Academy, once every step has a submitted artifact, you finish a project by submitting a live URL. Our server then checks that URL itself — no screenshots, no taking your word for it. Four checks, and all four must pass:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Reachable&lt;/strong&gt; — the URL answers. We follow redirects (up to 5), checking each hop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Returns success&lt;/strong&gt; — the final response is 2xx, not an error status.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loads over HTTPS&lt;/strong&gt; — the page the world lands on is secure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A real page&lt;/strong&gt; — actual HTML content, not an error page, a parked domain, or a near-empty shell (under 400 bytes fails).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fail one and the project comes back as "needs fixes," with the specific reason saved. Fix that one thing and resubmit. No vague rejections.&lt;/p&gt;

&lt;p&gt;Pass all four and the project counts as shipped: the date is stamped and it appears on the public Ship Board and your portfolio page — proof anyone can click.&lt;/p&gt;

&lt;p&gt;Only after a pass does an AI review note enter the picture. Pro members with their own API key get one paragraph: what shipping this proves, plus one concrete improvement. No key available? The note is honestly marked skipped — never faked — and the ship still counts on the checks alone.&lt;/p&gt;

&lt;p&gt;Why so strict? Because "done" that nobody can open is just a claim. A live URL is proof.&lt;/p&gt;

&lt;p&gt;We're building Last20 in public: 3 signups, 1 enrollment, 0 ships so far. Ship #1 is still open: &lt;a href="https://last20.appliedefficiencyai.com" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Stop describing the output you want. Show your AI one example.</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Thu, 03 Dec 2026 17:17:08 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/stop-describing-the-output-you-want-show-your-ai-one-example-336a</link>
      <guid>https://dev.to/applied_efficiency/stop-describing-the-output-you-want-show-your-ai-one-example-336a</guid>
      <description>&lt;p&gt;Most bad AI output isn't a model problem. It's a description problem.&lt;/p&gt;

&lt;p&gt;You write a paragraph explaining the format, the tone, the length, the structure. The AI guesses at all four. You get something close-ish — then spend three rounds correcting it.&lt;/p&gt;

&lt;p&gt;Pattern #2 from our free Prompt Starter Kit flips that: &lt;strong&gt;show, don't describe.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;One example of the output you want is worth a paragraph of explanation. AI matches patterns far better than it follows descriptions of patterns.&lt;/p&gt;

&lt;p&gt;The template:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Match this format exactly. Example: [example]. Now do it for: …&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Why it works: one example pins down ten things at once — headings, order, length, tone, what to leave out. A description leaves every one of those open to interpretation.&lt;/p&gt;

&lt;p&gt;Try it on your next prompt. Paste one good example — even a rough one you wrote yourself in two minutes. It will beat three paragraphs of instructions.&lt;/p&gt;

&lt;p&gt;This pattern is from Lesson 1 of every Last20 Academy track. The full kit — all five patterns — is free, no account required: &lt;a href="https://last20.appliedefficiencyai.com/kit" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com/kit&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>learning</category>
    </item>
    <item>
      <title>We launched with 0 ships and $0. Here's the bet.</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Wed, 02 Dec 2026 17:16:23 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/we-launched-with-0-ships-and-0-heres-the-bet-159g</link>
      <guid>https://dev.to/applied_efficiency/we-launched-with-0-ships-and-0-heres-the-bet-159g</guid>
      <description>&lt;p&gt;Today Last20 Academy goes on Product Hunt.&lt;/p&gt;

&lt;p&gt;The honest numbers: 3 signups, 1 enrollment, 0 ships, $0 revenue. We are posting them anyway, because the whole product is built on one claim: online courses don't have a content problem, they have a finishing problem.&lt;/p&gt;

&lt;p&gt;Harvard/MIT data says 3 in 100 registrants finish — and learners who put something at stake finished at fifteen times the rate.&lt;/p&gt;

&lt;p&gt;So Last20 is commitment devices, not more videos: lessons stay locked until you ship proof, your ship date is public, and every finish lands on a portfolio page.&lt;/p&gt;

&lt;p&gt;New this week: a free AI Foundations track for total beginners, and a 70-second video on the homepage explaining what MCP is and how to build one — a free sample of how we teach.&lt;/p&gt;

&lt;p&gt;If you have a folder of half-built AI projects, start free and ship the first small thing. Tell us where it breaks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://last20.appliedefficiencyai.com" rel="noopener noreferrer"&gt;Last20 Academy&lt;/a&gt; · &lt;a href="https://www.producthunt.com/products/last20-academy?launch=last20-academy" rel="noopener noreferrer"&gt;Today on Product Hunt&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>learning</category>
    </item>
    <item>
      <title>A private deadline is just a wish. So our ship dates are public.</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Tue, 01 Dec 2026 17:20:32 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/a-private-deadline-is-just-a-wish-so-our-ship-dates-are-public-832</link>
      <guid>https://dev.to/applied_efficiency/a-private-deadline-is-just-a-wish-so-our-ship-dates-are-public-832</guid>
      <description>&lt;p&gt;Most courses let you set a goal in private, then quietly miss it.&lt;/p&gt;

&lt;p&gt;Last20 works differently. At the start of every project, you commit a ship date — a real calendar date, ahead of you. It goes on a public board next to your name and project.&lt;/p&gt;

&lt;p&gt;Then the pace math judges you the same way everywhere:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;On track&lt;/strong&gt; — your progress matches the time elapsed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;At risk&lt;/strong&gt; — you're more than 25 points behind schedule, or the date is 2 days out with steps unfinished&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overdue&lt;/strong&gt; — the date passed and you haven't shipped. The card goes red.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shipped&lt;/strong&gt; — you passed ship review. The fact wins.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two details matter:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The board can't be gamed by a stale status. A past date with no ship is overdue no matter what.&lt;/li&gt;
&lt;li&gt;Changing your date is allowed, but the original date and change count stay on the record.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Why public? A private deadline is just a wish with a calendar attached. A public one makes "I'll finish this weekend" mean something — to you, and to anyone deciding whether to hire you.&lt;/p&gt;

&lt;p&gt;That's the whole trick behind &lt;a href="https://last20.appliedefficiencyai.com" rel="noopener noreferrer"&gt;Last20 Academy&lt;/a&gt;: we don't sell lessons. We sell finishing. The public ship date is where finishing starts.&lt;/p&gt;

&lt;p&gt;New here? Start with the free &lt;a href="https://last20.appliedefficiencyai.com/kit" rel="noopener noreferrer"&gt;Prompt Starter Kit&lt;/a&gt; — Lesson 1 of every track, no account required.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>productivity</category>
      <category>learning</category>
      <category>ai</category>
    </item>
    <item>
      <title>Don't let your AI write code yet. Ask for the plan first.</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Mon, 30 Nov 2026 17:32:36 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/dont-let-your-ai-write-code-yet-ask-for-the-plan-first-4fe3</link>
      <guid>https://dev.to/applied_efficiency/dont-let-your-ai-write-code-yet-ask-for-the-plan-first-4fe3</guid>
      <description>&lt;p&gt;The most expensive prompt mistake in vibe coding isn't a bad prompt. It's a good prompt that skips the plan.&lt;/p&gt;

&lt;p&gt;You describe the feature, the AI writes 200 lines, and ten minutes in you realize it built the wrong thing. Now you're untangling code you didn't write, for a design you never approved.&lt;/p&gt;

&lt;p&gt;Flip the order. Before it writes a line, ask for the steps.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Don't write code yet. Give me the steps you'd take, in order. I'll approve, then you build."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Catching a wrong plan takes thirty seconds. Untangling wrong code takes an afternoon — and it usually leaves bugs behind, because you're editing logic you never fully understood.&lt;/p&gt;

&lt;p&gt;This is pattern 4 of the free Prompt Starter Kit I teach as Lesson 1 of every Last20 Academy track: give it a job, show don't describe, constrain it, ask for the plan first, feed it the error.&lt;/p&gt;

&lt;p&gt;Try it on your next feature. If the plan is wrong, you just saved yourself an hour. If it's right, you build faster because you both know where you're going.&lt;/p&gt;

&lt;p&gt;The full kit is free, no account needed: &lt;a href="https://last20.appliedefficiencyai.com/kit" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com/kit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And the academy itself: &lt;a href="https://last20.appliedefficiencyai.com" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>learning</category>
    </item>
    <item>
      <title>New: AI Foundations — a free first track for people who've never used AI</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Sun, 29 Nov 2026 21:54:19 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/new-ai-foundations-a-free-first-track-for-people-whove-never-used-ai-25bg</link>
      <guid>https://dev.to/applied_efficiency/new-ai-foundations-a-free-first-track-for-people-whove-never-used-ai-25bg</guid>
      <description>&lt;p&gt;Most AI courses assume you already build. This one assumes nothing.&lt;/p&gt;

&lt;p&gt;Last20 Academy just added a free track called AI Foundations, for people who've never really used AI. Three small projects, each one shipped:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Your first AI conversation that does real work — pick a real task, write the job down, get a useful result.&lt;/li&gt;
&lt;li&gt;Your first AI workflow — chain three prompts into a repeatable job and run it on this week's real input.&lt;/li&gt;
&lt;li&gt;Your first tiny AI tool — describe it in plain words, build it with AI, put a link on the internet.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Same rule as everything else here: the next lesson stays locked until you ship proof. No watching, no collecting certificates.&lt;/p&gt;

&lt;p&gt;It ends by pointing you into the finish tracks, where the real projects live.&lt;/p&gt;

&lt;p&gt;Free to start: &lt;a href="https://last20.appliedefficiencyai.com/tracks/ai-foundations" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com/tracks/ai-foundations&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Five weeks live: 3 signups, 1 enrollment, 0 ships, $0 — the honest numbers</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Sun, 29 Nov 2026 17:18:07 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/five-weeks-live-3-signups-1-enrollment-0-ships-0-the-honest-numbers-fk4</link>
      <guid>https://dev.to/applied_efficiency/five-weeks-live-3-signups-1-enrollment-0-ships-0-the-honest-numbers-fk4</guid>
      <description>&lt;p&gt;Five weeks ago we put Last20 Academy live: a "finish school" for people learning AI and vibe coding. No tutorial library. You pick a project, set a public ship date, and finish the last 20%.&lt;/p&gt;

&lt;p&gt;Here's where it actually stands today — no rounding up, no spin:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;3 signups&lt;/li&gt;
&lt;li&gt;1 enrollment (Vibe Coding Basics)&lt;/li&gt;
&lt;li&gt;0 ships&lt;/li&gt;
&lt;li&gt;$0 revenue, 0 paying subscribers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The honest read: the product works. Every page loads, checkout is live at $15/mo, and the free Prompt Starter Kit captures emails. The bottleneck isn't the product — it's traffic, and the first real checkout that proves someone will pay to finish.&lt;/p&gt;

&lt;p&gt;That's the whole point of building in public: the numbers are small, and saying so is the marketing. A course promising 10,000 students in week one is selling a fantasy. We're selling the finish line, and the finish line is still empty.&lt;/p&gt;

&lt;p&gt;What's next: we launch on Product Hunt on Wednesday, Dec 2. Before that, one real ship — one finished project with a public date — is worth more than any launch post.&lt;/p&gt;

&lt;p&gt;If you've got a half-built project sitting in a folder, that's the whole course. Pick it up, set a date, ship it.&lt;/p&gt;

&lt;p&gt;Free to start: &lt;a href="https://last20.appliedefficiencyai.com" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com&lt;/a&gt;&lt;br&gt;
Free Prompt Starter Kit: &lt;a href="https://last20.appliedefficiencyai.com/kit" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com/kit&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>learning</category>
    </item>
    <item>
      <title>Hydration failed? Your server and browser rendered two different pages</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Sat, 28 Nov 2026 17:18:28 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/hydration-failed-your-server-and-browser-rendered-two-different-pages-1jo4</link>
      <guid>https://dev.to/applied_efficiency/hydration-failed-your-server-and-browser-rendered-two-different-pages-1jo4</guid>
      <description>&lt;p&gt;If you vibe-code with Next.js, you'll meet this one eventually:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Error: Hydration failed because the initial UI does not match what was rendered on the server.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What it means: the page is rendered twice — once on the server, once in your browser. The two copies have to match exactly. When they don't, React throws the page away and starts over. Your app still works, but you get a flash, a console full of warnings, and sometimes a broken first paint.&lt;/p&gt;

&lt;p&gt;Three usual suspects:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Dates and random values in the render.&lt;/strong&gt; &lt;code&gt;new Date()&lt;/code&gt; or &lt;code&gt;Math.random()&lt;/code&gt; gives a different answer on the server than in the browser. Every time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Browser-only APIs on first render.&lt;/strong&gt; &lt;code&gt;window&lt;/code&gt; or &lt;code&gt;localStorage&lt;/code&gt; don't exist on the server. Reading them during render guarantees a mismatch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Invalid HTML nesting&lt;/strong&gt; — like a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; inside a &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;. Browsers "fix" it; the server doesn't.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The fix:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Move anything date-, random-, or browser-based into a &lt;code&gt;useEffect&lt;/code&gt; that runs after mount.&lt;/li&gt;
&lt;li&gt;Check the nesting the error names — hydration errors point at the exact component.&lt;/li&gt;
&lt;li&gt;When in doubt, paste the full warning into your AI. It names the component; start there.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is pattern #5 in the Debug Clinic at Last20 Academy — the five errors vibe coders hit most, each with the cause and a paste-ready fix: &lt;a href="https://last20.appliedefficiencyai.com" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Cannot read properties of undefined? Your screen rendered before your data arrived</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Fri, 27 Nov 2026 17:18:35 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/cannot-read-properties-of-undefined-your-screen-rendered-before-your-data-arrived-3md5</link>
      <guid>https://dev.to/applied_efficiency/cannot-read-properties-of-undefined-your-screen-rendered-before-your-data-arrived-3md5</guid>
      <description>&lt;p&gt;Your AI-built app crashes with &lt;code&gt;TypeError: Cannot read properties of undefined (reading 'streak')&lt;/code&gt; — and the code looks fine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it means:&lt;/strong&gt; some variable your code expected to hold data was empty when the code ran. In AI-built apps, this is usually a timing problem: the screen renders before the data arrives, and the code tries to read the data too early.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data loads asynchronously, but the UI renders immediately&lt;/li&gt;
&lt;li&gt;An API returned an empty or differently-shaped response than the AI assumed&lt;/li&gt;
&lt;li&gt;A prop or state value was never set on this code path&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Find the line in the error — the first file/line in the stack that's yours.&lt;/li&gt;
&lt;li&gt;Add a guard: show a loading state until the data exists — &lt;code&gt;if (!habit) return &amp;lt;p&amp;gt;Loading…&amp;lt;/p&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Log the actual API response once. AI-written code often assumes a shape the API doesn't return.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Paste this into your AI:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"I'm getting 'Cannot read properties of undefined'. The data probably hasn't loaded when this renders. Add a loading guard, and show me what shape of data this component actually receives."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is Debug Clinic pattern #4 in Last20 Academy — the five errors every vibe coder hits, each with the fix and the exact prompt to paste. Try it free: &lt;a href="https://last20.appliedefficiencyai.com/kit" rel="noopener noreferrer"&gt;https://last20.appliedefficiencyai.com/kit&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>CORS blocked? Your browser is protecting you — your API call took the wrong road</title>
      <dc:creator>Applied Efficiency</dc:creator>
      <pubDate>Thu, 26 Nov 2026 17:17:35 +0000</pubDate>
      <link>https://dev.to/applied_efficiency/cors-blocked-your-browser-is-protecting-you-your-api-call-took-the-wrong-road-2p4i</link>
      <guid>https://dev.to/applied_efficiency/cors-blocked-your-browser-is-protecting-you-your-api-call-took-the-wrong-road-2p4i</guid>
      <description>&lt;p&gt;You asked your AI to wire up an API. It wrote a fetch call, hit run, and the console says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Access to fetch at '&lt;a href="https://api.example.com/data" rel="noopener noreferrer"&gt;https://api.example.com/data&lt;/a&gt;' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Nothing is wrong with your fetch code. This is the browser doing its job.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What CORS actually is&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Your page lives on one domain. The API lives on another. The browser asks the API, "Do you allow calls from this page?" If the API doesn't answer yes, the browser refuses — before the API ever sees the request. It's a permission handshake, not a bug in your app.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens in AI-built apps&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your AI called a third-party API straight from the browser. Most APIs don't allow that.&lt;/li&gt;
&lt;li&gt;Your own backend doesn't send the &lt;code&gt;Access-Control-Allow-Origin&lt;/code&gt; header.&lt;/li&gt;
&lt;li&gt;The API simply never intended browser calls.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The fix&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Don't fight the browser. Move the call to your own backend route — a server-side function your frontend calls instead. The API key stays on the server where it belongs, and the browser never talks to the third party directly.&lt;/p&gt;

&lt;p&gt;If it's your own API, add the CORS header allowing your site's origin, then restart and hard-refresh.&lt;/p&gt;

&lt;p&gt;Paste this into your AI:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"I'm hitting a CORS error calling this API from the browser. Refactor it so the call happens in a server-side route, my frontend calls that route instead, and my API key stays on the server."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is pattern 3 of 5 in the Debug Clinic at &lt;a href="https://last20.appliedefficiencyai.com" rel="noopener noreferrer"&gt;Last20 Academy&lt;/a&gt; — we pattern-match the five errors AI-built apps hit most, so you get a real diagnosis instead of another guess.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
