<?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 Haikotek Insights on Medium]]></title>
        <description><![CDATA[Stories by Haikotek Insights on Medium]]></description>
        <link>https://medium.com/@haikotek?source=rss-180bcc1f78bc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aqd4pCScCxssbLmGhcHr4Q.png</url>
            <title>Stories by Haikotek Insights on Medium</title>
            <link>https://medium.com/@haikotek?source=rss-180bcc1f78bc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 08:02:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@haikotek/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[Your Mac Looks Clean. Until You Ask One Question.]]></title>
            <link>https://haikotek.medium.com/your-mac-looks-clean-until-you-ask-one-question-6063a0d8267a?source=rss-180bcc1f78bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6063a0d8267a</guid>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Haikotek Insights]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 02:57:11 GMT</pubDate>
            <atom:updated>2026-11-25T02:57:11.737Z</atom:updated>
            <content:encoded><![CDATA[<h3>That “where did all my space go?” feeling is your instinct catching something real. It isn’t seeing junk. It’s seeing effects whose cause is long gone.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmqURzM1NN-oxiz7O3gqig.png" /></figure><p>You know the moment. You haven’t installed anything big in months. Your photos live in iCloud. And yet the storage bar is almost full again, and the biggest slice has a name that explains nothing.</p><p>So you do what everyone does. You sort Downloads by size, delete two old videos, empty the Trash, and win back a few gigabytes. A month later the bar is back where it was.</p><p>The problem isn’t effort. It’s that we look for the wrong mistake. We go hunting for <em>junk</em>: files that are big, old or ugly. But size and age are weak signals. A 40 GB photo library is big and perfectly healthy. A 300 MB folder can be completely dead.</p><p>The signal that actually works is quieter, and once you see it you’ll see it everywhere:</p><h3><strong>There are effects that outlived their cause.</strong></h3><h4><strong>Your Mac remembers everything and understands nothing</strong></h4><p>Every file on your Mac exists because something happened. You installed an app, so it built a cache. You started a project, so your tools downloaded its dependencies. You plugged in your iPhone, so your Mac made a backup.</p><p>Then the cause ends. You delete the app. You finish the project. You sell the phone.</p><p>The effect stays. Nothing on your Mac is in charge of noticing that the reason is gone. Some apps tidy their own caches while they run, but an app you’ve deleted can’t tidy anything. A project you closed doesn’t tell your tools it’s over. Storage settings simply add it all up and file a large part of it under a vague label like System Data.</p><blockquote>Your Mac doesn’t know why a file exists. It only knows that it does.</blockquote><p>That’s the whole trick. Junk on a Mac isn’t a type of file. It’s a file whose cause has died. Which means you don’t need a list of scary folder names. You need to get good at asking where something came from, and whether that thing is still alive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DpEBzChNeq7b2QKl-LI-BA.png" /><figcaption><em>The cause ends. The effect stays on your disk. Illustration.</em></figcaption></figure><h4><strong>What this looks like on a real Mac</strong></h4><p>Before writing this, we scanned one of our team’s everyday Macs. Not a test machine and not a staged demo: a Mac someone works on every day.</p><p>It held 94.4 GB that nobody was thinking about. 34.1 GB was app caches and temp files. 19.2 GB came from 18 project folders nobody had opened in months. 26.5 GB was worth a second look before touching. And 14.7 GB was AI chat history, which we left exactly where it was. That last part matters, and we’ll come back to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5vrT92k6qJWaLqzhMwWP1Q.png" /><figcaption><em>One scan of a real Mac our team uses every day. The parts are rounded, so they add up to 94.5 GB.</em></figcaption></figure><p>Your numbers will be different. The pattern behind them is worth learning. Here are five cases you will probably recognise, from the most obvious to the best hidden.</p><ol><li><strong>The box the app came in</strong></li></ol><p><em>Difficulty: ★☆☆☆☆</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m50cGO8LiHG_zJgui3wXlg.png" /><figcaption><em>A Downloads folder like most. Example data, not a real Mac.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*98FZTBqlZ4s70YdNM3pRHA.png" /><figcaption><em>The files in red did their job months ago.</em></figcaption></figure><p>Open Downloads and look for files ending in .dmg or .pkg. These are installers. Their whole purpose was to put an app into your Applications folder, and in most cases they did that the day you downloaded them.</p><p>The cause, installing the app, finished long ago. The effect is still sitting there, sometimes a gigabyte or two at a time. And if you ever need the installer again, you can download a fresh one from the developer, usually a newer version.</p><p>If you like Terminal, this lists them biggest first. It only reads; it doesn’t change anything:</p><pre>ls -lhS ~/Downloads | grep -iE &#39;\.(dmg|pkg)$&#39;</pre><p>One exception worth keeping in mind: an installer for software you can’t download again, like an old licensed version, is worth saving somewhere deliberate rather than leaving in Downloads by accident.</p><p><strong>Once the app is in Applications, the box it came in is just a box.</strong></p><p><strong>2. The cache of a ghost</strong></p><p><em>Difficulty: ★★☆☆☆</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0OkglGRHPPF6NhtbzuMVnw.png" /><figcaption><em>Inside ~/Library/Caches, one folder per app. Example data, not a real Mac.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TNx5LhCKeZNr0OGYWml_og.png" /><figcaption><em>The app is gone. Its cache is still here.</em></figcaption></figure><p>Apps keep caches so they feel fast: thumbnails, previews, downloaded bits they’d rather not fetch twice. Most live in a folder called Caches inside your user Library. To see it in Finder, choose <strong>Go › Go to Folder</strong> (Shift-Command-G) and type <em>~/Library/Caches</em>.</p><p>Here’s the part most people never hear: dragging an app to the Trash removes the app, not what it left in your Library. Its cache stays behind, named after an app that isn’t there anymore.</p><pre>du -hd1 ~/Library/Caches 2&gt;/dev/null | sort -h | tail -15</pre><p>Notice what this case does <em>not</em> say. Clearing the cache of an app you still use isn’t wrong, but it’s mostly pointless: the app rebuilds it the next time you open it, because its cause is alive. That’s what caches are for. The ones worth your attention are the ones with nobody left to read them.</p><p><strong>A cache with no app to read it is caching nothing.</strong></p><p><strong>3. The project nobody opened</strong></p><p><em>Difficulty: ★★★☆☆</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T8dXsKAA7A42pOO9MkXz5Q.png" /><figcaption><em>A folder of projects, sized as a map. Blue was opened recently. Example data, not a real Mac.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N8jpF7WKm_upO-WZ4rsj5Q.png" /><figcaption><em>The heavy part of an old project is rarely the work itself.</em></figcaption></figure><p>If you write code, or have ever followed a tutorial that started with “first, install the dependencies”, this one is yours. Modern projects download their building blocks into the project folder. In JavaScript it’s called node_modules; other tools have their own build and output folders. Apple’s Xcode keeps build products for every project in <em>~/Library/Developer/Xcode/DerivedData</em>, even after the project itself is gone.</p><p>These folders are often far bigger than the code you wrote. On the Mac above, 19.2 GB came from 18 project folders that hadn’t been opened in months.</p><p>The cause was a project you were actively working on. The cause is over. And this is the friendliest kind of leftover, because it comes back on demand: one install command, or one build in Xcode, and everything is rebuilt. The cost is a few minutes of waiting the day you return, if you ever do.</p><p>Read-only ways to see the biggest ones (point the first at wherever you keep your projects):</p><pre>find ~/Projects -type d -name node_modules -prune -exec du -sh {} + 2&gt;/dev/null | sort -h | tail -20<br>du -hd1 ~/Library/Developer/Xcode/DerivedData 2&gt;/dev/null | sort -h | tail -10</pre><p>Not a developer? The same pattern shows up in creative apps. Video and music tools keep render and preview files that they can make again from your originals.</p><p><strong>A dependency folder nobody runs is just a download you already did.</strong></p><p><strong>4. The phone you no longer own</strong></p><p><em>Difficulty: ★★★★☆</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AN7rFe8rPVt8pRCQLLgmKg.png" /><figcaption><em>Backups and device files, grouped by what they belong to. Example data, not a real Mac.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jRkO1hMiNXob3FvPKOXBmA.png" /><figcaption><em>This one won’t come back once it’s gone.</em></figcaption></figure><p>This is where the rule gets interesting, because the second question finally earns its place.</p><p>If you ever backed up an iPhone to your Mac, that backup may still be there, years after the phone was sold, traded in or handed down. You can see them in <strong>System Settings › General › Storage</strong>, under iOS Files. Each one can run to tens of gigabytes.</p><p>The cause is clearly gone. But unlike the first three cases, this effect does not come back. There is no command that rebuilds a backup of a phone you no longer have. That doesn’t mean keep it forever. It means look before you clear: is there anything in it, old messages or photos that never made it to iCloud, that you’d want? If not, let it go. If you’re unsure, that’s your answer for today.</p><p>Developers get two more versions of the same story. When you connect an iPhone to Xcode, it copies support files for that iOS version into <em>~/Library/Developer/Xcode/iOS DeviceSupport</em>, a folder for each iOS version it has seen, often a few gigabytes each. Versions you no longer test on are a clean case: Xcode copies them again the next time a device on that version is connected. iOS Simulators, in <em>~/Library/Developer/CoreSimulator/Devices</em>, are different: deleting one deletes the apps and test data inside it. To check without touching anything:</p><pre>du -hd1 ~/Library/Developer/Xcode/iOS\ DeviceSupport 2&gt;/dev/null<br>xcrun simctl list devices unavailable</pre><p>When you do clean simulators, do it from Xcode rather than by hand.</p><p>This is what a “worth a second look” pile is made of. Not junk, not untouchable, just things that deserve thirty seconds of thought.</p><p><strong>If it can’t come back, it deserves a second look, not a reflex.</strong></p><p><strong>5. The junk that’s still alive</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A2-RwGlJXPUxs59fRFAQog.png" /><figcaption><em>The biggest things on a Mac, and the one that’s actually dead. Example data, not a real Mac.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SvbSk_31uMOksr3OHfd9hg.png" /><figcaption><em>Big, old-looking, and very much alive.</em></figcaption></figure><p>The hardest case isn’t hidden in a folder. It’s sitting at the top of every “largest files” list, looking exactly like junk.</p><p>Your Photos library. The attachments in Messages. A client project you’ve had open all week. And, more and more, AI chat history: the assistants and coding tools many of us now use every day keep their conversations as plain files on disk, and they grow quietly.</p><p>On our team’s Mac, AI chat history came to 14.7 GB. It’s big, it’s in a folder nobody opens by hand, and every “free up space” instinct says to delete it. We left it alone on purpose. Those conversations hold decisions, explanations and half-finished ideas that exist nowhere else. They don’t rebuild. Their cause, the person who had them, is very much alive.</p><p>The same goes for the others. If your Photos library is too big, the fix is Optimize Mac Storage in Photos settings, not the Trash. If Messages is heavy, review large attachments from the Storage settings, one by one.</p><p>This is the mistake that actually costs people something. Not the 2 GB installer they forgot, but the folder they deleted because it was big and they didn’t recognise it.</p><p><strong>Big is not the same as dead.</strong></p><h3>Conclusions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Vg3fopZHFSCmZlNP7_tnQ.png" /><figcaption><em>Two questions, in order. Save this one.</em></figcaption></figure><p>You don’t need to memorise five folder paths. Next year there will be new apps, new tools and new folders with names nobody has heard of. What you need is a habit that works on all of them.</p><p>For anything big on your disk, ask two questions, in this order:</p><p><strong>Is its cause still alive?</strong> The app, the project, the phone, the person. If yes, leave it alone. It’s doing its job.</p><p><strong>If I remove it, does it come back?</strong> Caches, installers you can download again, build folders: yes. Backups, simulators, chat history, anything you made yourself: no.</p><p>Which gives you the one rule worth keeping:</p><p><strong>If the cause is gone and it comes back on its own, let it go. If it can’t come back, look twice before you clear.</strong></p><p>And whatever you clear, clear it to the Trash first, not straight into oblivion. A wrong pick should cost you a click, not a weekend.</p><p>This works far beyond a Mac. Your cloud drive, your phone, your inbox, the shared folder at work: everything digital is a pile of effects, and most of the clutter is effects whose cause quietly ended. Once you start asking where something came from, a full disk stops feeling like a mystery and starts reading like a history.</p><p>Related reading: <a href="https://support.apple.com/en-us/102624">Apple’s own guide, “Free up storage space on Mac”, covers the built-in tools in System Settings.</a></p><p><em>A short note on where this comes from. We build Haikos Clean at Haikotek, a small engineering studio in Saigon, around exactly these two questions. It’s made for the Macs where leftovers pile up fastest, the ones running AI coding tools, editors and Xcode. Every row says what a thing is, which tool made it and whether it rebuilds on its own; nothing moves until you pick it, and what you clear goes to the Trash first, with Restore. The scan above was made with it. It’s free on the </em><a href="https://apps.apple.com/app/haikos-clean/id6823184912"><em>Mac App Store</em></a><em>, and there’s more at </em><a href="https://haikosclean.haikotek.com/"><em>haikosclean.haikotek.com</em></a><em>.</em></p><p><em>About the author: Haikotek is an engineering studio in Saigon. We build Mac tools that explain themselves before they touch anything. Figures were drawn for this article; example screens use sample data, and the 94.4 GB scan comes from a real Mac our team uses every day.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6063a0d8267a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why a developer’s Mac fills up (and why “just delete it” is the wrong instinct)]]></title>
            <link>https://haikotek.medium.com/why-a-developers-mac-fills-up-and-why-just-delete-it-is-the-wrong-instinct-35a7d89cff33?source=rss-180bcc1f78bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/35a7d89cff33</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[macos]]></category>
            <dc:creator><![CDATA[Haikotek Insights]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 17:04:50 GMT</pubDate>
            <atom:updated>2026-11-11T17:04:50.814Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O7C0DVyQtWnmRI5uAYON8w@2x.png" /></figure><h4>Most of the space isn’t your files. It’s everything your tools left behind.</h4><p>There’s a moment every developer on a Mac knows. You’re in the middle of something, and macOS tells you the disk is almost full. You open the storage settings and see a big gray bar labeled “System Data” or “Other,” and it tells you nothing.</p><p>You didn’t download that much. You don’t have thousands of photos. So where did it all go?</p><blockquote>Usually, to your work. Not the work itself, but what it leaves behind. The node_modules folder from a project you shipped last spring. Xcode&#39;s build caches. A few Docker images you pulled for an afternoon experiment. Even the conversation history that AI coding tools keep on disk.</blockquote><p>None of it is junk in the way a temp file is junk. Some of it takes a minute to rebuild, and some of it doesn’t, and the annoying part is that you often can’t tell which is which until you’ve already deleted it.</p><h4>That’s the real problem!</h4><p>People say “just delete the big folders,” but nobody wants to be the person who deleted the wrong one at 11 pm before a deadline. So we do nothing, the disk fills up, and every few months we do a nervous, half-blind cleanup.</p><p>The issue isn’t deleting. It’s not knowing what you’re deleting. Most cleanup tools ask you to trust them first: press a button, trust the number, hope for the best. I think it should go the other way around.</p><p>First you see where the space is going. Then you decide. And if you change your mind afterwards, you can undo it.</p><p>If you’d rather do it by hand</p><p>You don’t need an app for this. A few habits go a long way:</p><blockquote>Sort your project folders by last-modified date. Anything you haven’t touched in months is worth a look.</blockquote><blockquote>Dependency folders can be reinstalled. Your source code, and anything you haven’t committed, cannot.</blockquote><blockquote>Delete in small batches, and make sure your active projects still build before you move on.</blockquote><h4>Where Haikos Clean fits</h4><p>I built <a href="https://haikosclean.haikotek.com/">Haikos Clean</a> around exactly that order of things. It scans your Mac for what developers tend to pile up, shows you what each item is, and does nothing until you press Clean. If you regret it, Restore brings things back. The tour and the answers to the “is this safe?” questions are on the site.</p><p>Scan, Clean and Restore are free. There’s a paid Pro tier, bought once, with extras like unlimited Make Room and your own clean rules.</p><p>It’s on the Mac App Store now, for Macs with Apple silicon running macOS 12 or later: <a href="https://apps.apple.com/us/app/haikos-clean/id6823184912?mt=12">Haikos Clean on the Mac App Store</a>.</p><p>This is a first release, so if something feels off, or there’s a kind of project it should understand better, I’d like to hear about it. The best fixes tend to come from people who live in their terminals all day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35a7d89cff33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Escaping the AI-Coding Trap: A Practical Checklist to Audit and Rescue an AI-Generated Codebase]]></title>
            <link>https://haikotek.medium.com/escaping-the-ai-coding-trap-a-practical-checklist-to-audit-and-rescue-an-ai-generated-codebase-ee66e163aed5?source=rss-180bcc1f78bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee66e163aed5</guid>
            <category><![CDATA[vietnam]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Haikotek Insights]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 09:12:07 GMT</pubDate>
            <atom:updated>2026-10-23T09:12:07.801Z</atom:updated>
            <content:encoded><![CDATA[<h4>Your app works, but it feels fragile. Here’s how we figure out what to keep, what to fix, and what to rebuild, without throwing everything away.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkTeR4LKWpXUTH_qcXV-lg.jpeg" /></figure><p>In our last post, <a href="https://medium.com/@haikotek.media/the-ai-coding-trap-why-cheap-ai-generated-websites-fail-at-scale-and-how-we-fix-them-in-saigon-6ac78c1501c0">The AI-Coding Trap: Why Cheap AI-Generated Websites Fail at Scale</a>, we talked about how fast AI-generated code turns into a mess once a business starts adding features.</p><p>A lot of you are already in that situation. The site was built fast, maybe with Cursor or Claude Code, maybe by a cheap agency running the same tools. It works. Mostly. But every new feature breaks something else, pages are getting slower, and nobody is quite sure how the whole thing fits together.</p><p>So the obvious question is: <strong>what do you actually do about it?</strong></p><p>You don’t have to rebuild from scratch. Here’s the process we use at Haikotek before we touch a single line of code.</p><h4><strong>1. Map It Before You Fix It</strong></h4><p>AI-generated projects rarely come with real documentation. The code exists, but the <em>reasoning</em> behind it doesn’t.</p><p>So step one is just reading. Before any refactor, we answer a few basic questions:</p><ul><li><strong>What’s actually running in production?</strong> Which services, which database, which third-party scripts, which environment variables.</li><li><strong>Where does the data flow?</strong> From the form a customer fills in, to the database, to the email or invoice that comes out the other end.</li><li><strong>What’s dead code?</strong> AI tools love to generate a second version of a function instead of fixing the first one. You often find several near-identical components where only one is used.</li><li><strong>Can someone new run it locally?</strong> If setting up the project takes a day of guesswork, that’s a finding in itself.</li></ul><p>This sounds boring. It’s also where most of the real problems show up.</p><h4>2. The Audit Checklist</h4><p>Once we understand the shape of the system, we go through it block by block. This is a simplified version of what we check:</p><p><strong>Performance</strong></p><ul><li>How much JavaScript is shipped on the first page load, and how much of it is actually used?</li><li>Are images sized and compressed properly for mobile?</li><li>Are there database queries running without indexes, or inside loops (the classic N+1 problem)?</li><li>Is anything that should be cached being recomputed on every request?</li></ul><p><strong>Architecture</strong></p><ul><li>Is business logic scattered across UI components, or does it live in one predictable place?</li><li>Are there several ways of doing the same thing (three API clients, two state libraries, multiple date formats)?</li><li>Does the database schema make sense, or did it grow one prompt at a time?</li></ul><p><strong>Security</strong></p><ul><li>Are API keys or secrets hardcoded or committed to the repo? This one is surprisingly common in AI-generated code.</li><li>Is user input validated on the server, not just in the browser?</li><li>Are authentication and permission checks applied on every route, or only on the ones someone remembered?</li><li>Are dependencies up to date, and are any of them abandoned?</li></ul><p>None of this is exotic. It’s just the stuff AI tools don’t think about unless you explicitly ask, and most people building fast don’t ask.</p><h4>3. Keep, Fix, or Rebuild</h4><p>After the audit, every part of the system lands in one of three buckets:</p><ul><li><strong>Keep:</strong> It works, it’s readable, it’s good enough. Leave it alone. Not everything needs to be “clean”.</li><li><strong>Fix:</strong> The idea is right but the implementation is sloppy. Refactor it in place, with tests around it first so nothing breaks quietly.</li><li><strong>Rebuild:</strong> The foundation is wrong, usually the data model or authentication. Patching this just stacks more debt on top.</li></ul><p>In our experience, the “rebuild” bucket is usually much smaller than people fear. A full rewrite is rarely the right answer. It’s expensive, it resets all the small bug fixes the old system accumulated, and the business has to wait for it.</p><p>The goal is <strong>stability first, then speed, then new features</strong>, in that order.</p><h4>4. Use AI to Fix What AI Broke (Carefully)</h4><p>Here’s the irony: we use AI heavily in the rescue process too.</p><p>The difference is <em>how</em>. At Haikotek, we work with what we call our AI Engineering OS: a structured way of running AI inside the full engineering workflow, across product, design, engineering, quality and security, and R&amp;D, instead of just prompting and pasting.</p><p>In practice, that means:</p><ul><li>AI helps us <strong>read and summarize</strong> an unfamiliar codebase much faster.</li><li>AI helps <strong>write tests</strong> around existing behavior before we change anything.</li><li>AI does the <strong>repetitive refactors</strong>, while a senior engineer decides <em>what</em> to refactor and reviews every change.</li></ul><p>AI is great at producing code. It’s still on humans to decide what the system should look like. That’s exactly the part that went missing the first time around.</p><p>(Side note: this is also why we built <strong>Haikos Clean</strong>. Working with AI coding tools every day leaves a lot of junk behind, from cache to stale build states, and we got tired of cleaning it up by hand.)</p><h4>5. Prevent the Trap From Coming Back</h4><p>Rescuing a codebase is pointless if it slides back into chaos three months later. A few habits make a big difference:</p><ul><li><strong>Write down the architecture</strong>, even a single page. Then feed it to your AI tools as context so they follow your patterns instead of inventing new ones.</li><li><strong>Require code review</strong> for AI-generated changes, just like human ones.</li><li><strong>Add tests for every bug you fix</strong>, so it can’t quietly come back.</li><li><strong>Set performance budgets</strong>, such as a maximum page weight, and check them on every deploy.</li><li><strong>Keep one source of truth</strong> for each concern: one API client, one way to handle state, one design system.</li></ul><h3>Final Thoughts</h3><p>Using AI to build fast isn’t the mistake. Shipping AI-generated code without anyone owning the architecture is.</p><p>The good news is that most AI-built websites and apps can be saved, and usually without starting over. It just takes a careful audit, honest prioritization, and engineers who understand what the AI left behind.</p><p>If your product is starting to feel fragile, or you’re not sure whether to fix it or rebuild it, reach out to us at <strong>Haikotek</strong>. We’re a small, senior engineering studio in Saigon, and untangling messy codebases is one of our favorite kinds of work.</p><p><em>Missed the first part? Read </em><a href="https://medium.com/@haikotek.media/the-ai-coding-trap-why-cheap-ai-generated-websites-fail-at-scale-and-how-we-fix-them-in-saigon-6ac78c1501c0"><em>The AI-Coding Trap: Why Cheap AI-Generated Websites Fail at Scale (And How We Fix Them in Saigon)</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee66e163aed5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AI-Coding Trap: Why Cheap AI-Generated Websites Fail at Scale (And How We Fix Them in Saigon)]]></title>
            <link>https://haikotek.medium.com/the-ai-coding-trap-why-cheap-ai-generated-websites-fail-at-scale-and-how-we-fix-them-in-saigon-6ac78c1501c0?source=rss-180bcc1f78bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ac78c1501c0</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[desktop-apps-development]]></category>
            <category><![CDATA[vietnam]]></category>
            <dc:creator><![CDATA[Haikotek Insights]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 16:49:53 GMT</pubDate>
            <atom:updated>2026-10-09T16:57:51.450Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YtpTQZVIzJ5nuFrVZY19dQ.png" /></figure><p>The AI-Coding Trap: Why Cheap AI-Generated Websites Fail at Scale (And How We Fix Them in Saigon)</p><h3><strong>Why speed, clean architecture, and practical AI automation are redefining web development in Ho Chi Minh City.</strong></h3><p>Lately, everyone seems to be building websites with AI tools like Cursor or Claude Code. You type a prompt, wait a couple of minutes, and boom, you have a working frontend. It feels like magic.</p><p>Because of this, a lot of agencies in Ho Chi Minh City now promise crazy things: full web apps built in 48 hours for rock-bottom prices.</p><p>If you just need a temporary landing page for a weekend event, that’s totally fine. But if you’re running an actual business, whether you’re an e-commerce brand scaling on Haravan or a startup building custom software, relying on raw, unedited AI-generated code usually leads straight into a trap.</p><p>Here is what actually happens behind the scenes, and why serious engineering still matters.</p><h3><strong>1. AI Writes Code Fast, But It Leaves a Mess</strong></h3><p>Tools like Cursor and Claude Code are amazing for speed, we use AI in our daily workflow too. But AI models don’t care about your long-term database structure, memory leaks, or mobile load times. They just want to generate code that satisfies your immediate prompt.</p><p>After a few months of adding features with AI, your codebase turns into a messy pile of spaghetti code.</p><p>At <a href="https://haikotek.com/"><strong>Haikotek</strong></a> (<em>we’re a technical engineering studio in HCMC</em>), we build a utility called <a href="https://haikosclean.haikotek.com/"><strong>Haikos Clean</strong></a> specifically to manage leftover cache and build states from AI-coding tools. Because we deal with AI tools daily, we see the mess they leave behind on local machines and production servers all the time.</p><p>When your site gets bloated with unnecessary JavaScript and unindexed queries, buying a bigger server won’t fix it. You need actual “Performance Surgery”, jumping into the code, trimming the junk, and rebuilding the core pipeline.</p><h3><strong>2. Ditch the Generic Chatbots. Build AI That Saves Actual Labor Hours.</strong></h3><p>When clients ask us to add “AI” to their website, 90% of the time they think they need a pop-up chatbot that answers basic FAQs.</p><p>Honestly? Most visitors hate those popups.</p><p>If you want real ROI from AI, put it to work in your back office. For example, instead of manual data entry, we build custom <strong>OCR workflows</strong> that automatically read incoming invoices, contracts, or receipts and push structured data directly into internal systems.</p><p>That isn’t flashy, but it saves hours of human labor every single week. That is what pragmatic AI integration looks like.</p><h3><strong>3. What to Ask Before Hiring a Web Partner in Vietnam</strong></h3><p>If you are looking for a development team in Vietnam, whether you search for <em>“công ty thiết kế web uy tín tại tphcm”</em> or an offshore dev studio, skip the marketing fluff. Ask them these three real questions:</p><ul><li><strong>Can you fix an existing slow site without throwing everything away?</strong> A team that only knows basic templates will tell you to rebuild from scratch. A team that understands deep performance will refactor what you already have.</li><li><strong>Do you build your own software</strong>? Teams that ship their own products, like our mobile apps <strong>Meet Ready</strong> or <strong>Emberlo, </strong>care deeply about user experience, state management, and real-world deployment.</li><li><strong>What is your delivery milestone structure</strong>? Look for clear written specs, weekly progress reports, and hard commitments, not vague verbal promises.</li></ul><h3>Final Thoughts</h3><p>AI is changing software development forever, but it hasn’t eliminated the need for clean architecture, fast loading times, and honest engineering.</p><p>If your website or e-commerce store is feeling sluggish, or if you’re tired of dealing with buggy code, reach out to us at <a href="https://haikotek.com/"><strong>Haikotek</strong></a>. We like solving tricky engineering problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ac78c1501c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Key Takeaways: Shipping a Single Cross-Platform Desktop App with Tauri and Rust]]></title>
            <link>https://haikotek.medium.com/key-takeaways-shipping-a-single-cross-platform-desktop-app-with-tauri-and-rust-4b09656d56fc?source=rss-180bcc1f78bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b09656d56fc</guid>
            <dc:creator><![CDATA[Haikotek Insights]]></dc:creator>
            <pubDate>Sun, 30 Aug 2026 09:09:32 GMT</pubDate>
            <atom:updated>2026-08-30T09:35:56.207Z</atom:updated>
            <content:encoded><![CDATA[<p>A modern approach to cross-platform desktop development avoids building two separate native products for macOS and Windows. Instead of picking separate UI frameworks per operating system and risking out-of-sync codebases, teams can leverage a single engine, a unified user interface, and distinct platform installers for local-first desktop utilities.</p><h3>1. Core Architecture: The Tauri &amp; Rust Stack</h3><p>Tauri acts as a thin native shell. It relies on the operating system’s built-in webview — <strong>WKWebView</strong> on macOS and <strong>WebView2</strong> on Windows — to render the user interface built with standard web technologies (such as React).</p><p>Critical business logic and risk-heavy operations (file system access, scanners, OS API calls, licensing) reside entirely in a background <strong>Rust core</strong> communicating with the UI over a lightweight Inter-Process Communication (IPC) layer.</p><ul><li><strong>Tauri (OS Chrome):</strong> Manages native windows, title bars, menus, and system trays.</li><li><strong>React (UI Layer):</strong> Handles display components, settings screens, and user input.</li><li><strong>Rust (Kernel):</strong> Owns destructive operations, file rules, background scheduling, and CLI access.</li></ul><p>Separating risk-heavy operations into Rust ensures that secondary surfaces, such as a Command-Line Interface (CLI) or background jobs, reuse the exact same engine rules without duplicating safety checks.</p><h3>2. Core Trade-offs</h3><p>Choosing this architecture requires accepting specific trade-offs over fully native toolkits or Electron:</p><h3>What Is Given Up</h3><ul><li><strong>Native Widget Density:</strong> Webview CSS cannot perfectly match native system settings.</li><li><strong>First-Class Mobile Integration:</strong> Tauri 2 supports mobile, but it represents code reuse rather than a phone-first experience.</li><li><strong>Hiring Simplicity:</strong> Staffing for Rust plus native FFI is more complex than hiring pure C# or Swift developers.</li></ul><h3>What Is Gained</h3><ul><li><strong>Single Engineering Roadmap:</strong> macOS and Windows share the exact same kernel logic.</li><li><strong>Guaranteed Rule Consistency:</strong> GUI, CLI, and background workers call the same executable paths.</li><li><strong>Lightweight Installers:</strong> Eliminates bundling a Chromium runtime, drastically reducing installer size and idle RAM footprint.</li></ul><h3>3. Technology Evaluation</h3><ul><li><strong>Tauri vs. SwiftUI / WinUI:</strong> SwiftUI and WinUI offer native UX density but lock the application to a single ecosystem, requiring duplicate teams for cross-platform support. Tauri provides a cross-platform middle ground.</li><li><strong>Tauri vs. Electron:</strong> Electron remains suitable for web apps wrapped as desktop applications. However, for local utilities that run continuously in the background, Electron incurs high RAM usage and large update payloads.</li><li><strong>Rust vs. Other Kernels:</strong> Rust provides cross-platform compilation, explicit memory safety, and zero garbage-collection pauses during heavy disk I/O, outperforming managed runtimes like C# or Kotlin Multiplatform for low-level OS tasks.</li></ul><pre>struct ReviewView: View {<br>    @State var items: [Leftover] = []<br><br>    var body: some View {<br>        List(items) { item in<br>            Toggle(item.title, isOn: $items[item.id].selected)<br>        }<br>        Button(&quot;Move to Trash&quot;) {<br>            Task { try await TrashService.move(items.filter(\.selected)) }<br>        }<br>    }<br>}</pre><h3>4. Key Subsystem Strategies</h3><h3>On-Device AI Pipeline</h3><ul><li><strong>Unified Stack:</strong> Use <strong>ONNX Runtime</strong> across both operating systems (backed by CoreML on macOS and DirectML on Windows) to avoid platform-specific prompt drift.</li><li><strong>Deterministic Boundaries:</strong> Local AI models handle display formatting or text suggestions only. <strong>AI models are never given direct authority to execute file deletions or system changes.</strong></li></ul><h3>Local Database &amp; State Strategy</h3><ul><li><strong>SQLite with WAL:</strong> SQLite serves as the durable local store, using Write-Ahead Logging (WAL) and busy timeouts to allow concurrent access between the GUI, CLI, and background tasks.</li><li><strong>Static Rules in Binary:</strong> Rule catalogs ship directly inside the executable binary rather than being fetched remotely at scan time, guaranteeing offline reliability.</li></ul><h3>Safe System Operations</h3><ul><li><strong>Two-Phase Execution:</strong> Risky actions follow a <strong>Plan $\rightarrow$ Execute</strong> pattern. Partial failures generate partial receipts, and file removals leverage native OS Trash/Recycle Bin tokens for safe restoration.</li></ul><h3>5. CI/CD &amp; Deployment</h3><p>Building for production requires automating multi-platform pipelines via CI/CD (such as GitHub Actions) rather than local developer machines.</p><ul><li><strong>Code Signing:</strong> macOS releases require Apple Developer ID signing and notarization via Gatekeeper. Windows builds require Authenticode signing to satisfy SmartScreen requirements.</li><li><strong>Updater Control:</strong> Automatic updates should remain disabled until signed artifact delivery pipelines are fully established.</li></ul><h3>Conclusion</h3><p>If an application is essentially a web service wrapped in a window, Electron remains a straightforward choice. However, for local utilities driven by OS-level APIs, high-performance file operations, and strict business rules, <strong>Tauri 2 combined with Rust</strong> offers a maintainable, lightweight, and secure architectural foundation across macOS and Windows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b09656d56fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>