<?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 Amit.Saini on Medium]]></title>
        <description><![CDATA[Stories by Amit.Saini on Medium]]></description>
        <link>https://medium.com/@amitworld?source=rss-51e87c8e944c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EMryueJajXdTmx8kggy8YQ.jpeg</url>
            <title>Stories by Amit.Saini on Medium</title>
            <link>https://medium.com/@amitworld?source=rss-51e87c8e944c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 23:08:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amitworld/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[Vibe Coding — Shortcomings and Best Practices (Part 2 of 2)]]></title>
            <link>https://medium.com/@amitworld/vibe-coding-shortcomings-and-best-practices-part-2-of-2-b7e9bcdac8c0?source=rss-51e87c8e944c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7e9bcdac8c0</guid>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[code-generation]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[ai-coding-assistance]]></category>
            <category><![CDATA[learning-ai-coding]]></category>
            <dc:creator><![CDATA[Amit.Saini]]></dc:creator>
            <pubDate>Mon, 19 May 2025 04:51:02 GMT</pubDate>
            <atom:updated>2025-05-19T04:51:02.169Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YxHyHkARXbsjIuW0oHwprQ.png" /></figure><h3>Vibe Coding — Shortcomings and Best Practices (Part 2 of 2)</h3><p>In <a href="https://medium.com/@amitworld/vibe-coding-shortcomings-and-best-practices-part-1-of-2-65a90ca71a17">Part 1</a>, I shared my experience using Claude Desktop to write code and discussed the unpredictable behavior of AI-generated code when building complex applications.</p><p>In this second part, I’ll dive deeper into how I used AI to build a production grade system — a <strong>Hospital Management System</strong> from scratch — the lessons learned, the adjusted approach, and the outcomes.</p><h3>Implementing the Learning</h3><p>From Part 1, one key takeaway was this: <strong>AI-generated code often lacks consistency in standards, structure, and reliability</strong>. It can break existing code while fixing bugs and might even shift its architectural approach mid-stream. This creates a discouraging and chaotic development experience.</p><p>To avoid repeating these mistakes, I made some major changes to how I approached the project:</p><h3>📋 Step 1: Define Requirements in Detail</h3><p>I started by creating a <strong>detailed requirements document</strong> in Markdown format. This served as the foundation for the rest of the development process.</p><h3>🧠 Step 2: Generate an Implementation Plan</h3><p>I asked Claude to create an <strong>implementation roadmap</strong>, which I saved as a development plan (also in Markdown). This helped maintain focus and direction.</p><h3>🛠 Step 3: Define the Tech Stack</h3><p>I clearly specified:</p><ul><li><strong>Database</strong>: PostgreSQL</li><li><strong>Frontend</strong>: React with Next.js</li><li><strong>UI Components</strong>: Hero UI</li></ul><p>This ensured the model didn’t drift across frameworks or technologies.</p><h3>🏗 Step 4: Ask AI to Design the Database</h3><p>Claude created a well-structured database schema covering all key entities — users, staff, patients, appointments, labs, pharmacy, and more. I also had it generate:</p><ul><li><strong>Sample data complete with relational integrity</strong></li><li><strong>Data load scripts (it generated them and sequenced them correctly)</strong></li><li><strong>A loading plan</strong> to maintain relational integrity</li></ul><h3>📏 Step 5: Establish Coding Standards</h3><p>Before writing any code, I asked Claude to generate a <strong>coding standards document</strong> — covering naming conventions, file structure, authentication, api standards, error handling, and more.</p><h3>⚙️ Step 6: Generate the Initial Codebase</h3><p>Using all of the above as references, I asked Claude to generate the initial project code.</p><p>As I anticipated, this time around much of it <strong>worked right out of the box</strong>. Functionality for user management, Patient Management, and staff management were functional and required minimal tweaking. The UI followed the standards and the API calls were functional instead of any dummy data on the UI.</p><h3>Iterating with Structure</h3><p>Once the base code was running, I used <strong>Windsurf</strong> (with Claude 3.7) to continue development in small, testable increments. For each new feature — editing users, creating new users, handling enums like staff types (doctor, nurse, etc.) — I did the following:</p><ol><li>Prompted Claude to generate the code.</li><li>Had it <strong>review its own code</strong> for violations of the previously defined standards.</li><li>Manually reviewed and tested the output.</li></ol><p>Each review-fix cycle added roughly an hour of elapsed time, but the result was far better: cleaner, more consistent code with fewer surprises. I could continue to work on other things and would focus on reviewing the fixes and testing them.</p><p>Of course, it wasn’t flawless. Fixes still occasionally introduced new bugs, and I had to course-correct at times. But <strong>prompting the model to adhere to standards made a noticeable difference</strong> in reliability of the generated code.</p><h3>Real Results</h3><p>With this new approach, I had <strong>multiple working modules ready within 3 days</strong> — a vast improvement over my earlier attempt. In these three elapsed days my own effort was around 6 hours for prompting and reviewing progress and code.</p><p>To put that in perspective, the output was equivalent to what <strong>a team of one lead engineer and two developers</strong> would normally have accomplished over <strong>three person-months</strong> of effort. So the time saving was phenomenal.</p><p>I’m still working on the lab and pharmacy modules, but the current ones are stable and extensible and new features are not breaking existing functionality as much now.</p><h3>Key Takeaways</h3><p>Here’s what I learned from this hands-on experience building production grade software with AI:</p><h3>✅ Set the Groundwork</h3><ul><li><strong>Detailed requirements</strong>, <strong>implementation plans</strong>, and <strong>coding standards</strong> are non-negotiable.</li><li>Think of it like a traditional software development methodology: the architect lays out the vision, designers create a high level design, and engineers implement it.</li><li>Implement iteratively and with every iteration keep updating the documentation for future reference.</li></ul><h3>🧠 AI Coding Tools Are Evolving Fast</h3><ul><li>Today’s tools are still maturing, but in <strong>1–2 years</strong>, I expect AI-based coding to reach a point where <strong>it can autonomously build production-grade systems</strong>.</li><li>If these models <strong>learn from all the bugs they are creating and fixing</strong>, their reliability will skyrocket.</li></ul><h3>🧪 Windsurf’s SWE-1 Model Shows Promise</h3><ul><li>I also tested Windsurf’s new <strong>SWE-1 model</strong>, and its output was indistinguishable from Claude 3.7 in most cases.</li><li>That’s impressive and bodes well for the future of alternative AI coding tools and models.</li></ul><h3>Final Thoughts</h3><p>I haven’t yet explored many other popular AI assisted IDE tools like VSCode, Cursor, Zed, or other AI code generation products like Lovable, Replit or Bolt. Some of my teammates tried Cursor and they reported good experience, when using <strong>GPT-4o</strong> and other top-tier models.</p><p>The bottom line?</p><blockquote><strong><em>AI-assisted coding is no longer an experiment — it’s becoming a serious option for building real-world, production-ready software.</em></strong></blockquote><p>At the pace it’s evolving, in the coming months, we are likely to see entire production grade applications being designed, coded, tested, and maintained — entirely by AI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7e9bcdac8c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vibe Coding: Shortcomings and Best Practices (Part 1 of 2)]]></title>
            <link>https://medium.com/@amitworld/vibe-coding-shortcomings-and-best-practices-part-1-of-2-65a90ca71a17?source=rss-51e87c8e944c------2</link>
            <guid isPermaLink="false">https://medium.com/p/65a90ca71a17</guid>
            <category><![CDATA[ai-assisted-coding]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <dc:creator><![CDATA[Amit.Saini]]></dc:creator>
            <pubDate>Mon, 19 May 2025 02:18:37 GMT</pubDate>
            <atom:updated>2025-05-19T07:35:50.209Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-PaLfk60sFY2ZT1LVG_oMw.png" /></figure><h3>Vibe Coding — Shortcomings and Best Practices (Part 1 of 2)</h3><p>For the past few months, I’ve been experimenting with <strong>AI-assisted coding</strong> for various tasks — ranging from code reviews and bug detection to writing code snippets and, more recently, building small applications.</p><p>This two-part series shares my experiences with using AI for coding. If you’re just getting started or want to go deeper with AI tools in your development workflow, I hope these insights will help you make the most of them.</p><p>In this <strong>first part</strong>, I’ll focus on situations where AI tools performed well. In the second part, I’ll dive into the shortcomings and how to work around them effectively.</p><h3>Building Small Prototypes: Where AI Shines</h3><p>One of the most promising use cases I found was building <strong>small prototypes</strong>. In these scenarios, the AI tools were surprisingly accurate, often getting things right on the first try.</p><p>Some examples I worked on:</p><ul><li>A <strong>document analyzer</strong> with a Python backend and Streamlit frontend</li><li>A utility for <strong>identifying and masking keywords or phrases</strong> in a given text</li><li>A <strong>demo for Anthropic’s MCP server</strong> (Python + Streamlit)</li><li>A prototype for <strong>Google’s A2A protocol</strong></li></ul><p>I relied entirely on <strong>Claude Desktop Pro</strong>, coupled with <strong>Desktop Commander</strong> by <em>Eduards Ruzga</em>. If you haven’t tried Desktop Commander yet, I highly recommend it. It allows Claude to <strong>write code, execute commands, and help debug interactively</strong>, making it an incredibly powerful development assistant.</p><h3>How I Used It</h3><ol><li>I started by describing what I wanted to build in plain text.</li><li>Claude would then generate a detailed implementation plan.</li><li>I fed that plan into the Claude Desktop interface, and it generated the code.</li></ol><p>The results were usually spot-on. Minor issues — mostly in the frontend — were easy to resolve by prompting Claude further. The iterative flow felt natural and surprisingly productive.</p><h3>Building Applications: Where Things Break Down</h3><p>Encouraged by the success with prototypes, I tried to push the limits — by asking AI to help build a <strong>complete Hospital Management System</strong>.</p><p>The process started the same way:</p><ul><li>I described the application and provided detailed requirements.</li><li>Claude Desktop generated the folder structure and started building the code.</li></ul><p>But this is where things got tricky.</p><h3>Challenges I Faced</h3><ul><li><strong>Session limits</strong>: Claude kept hitting its chat limit, and every new session meant re-explaining the context.</li><li><strong>Inconsistent coding standards</strong>: The generated code didn’t follow any clear conventions.</li><li><strong>Frontend inconsistency</strong>: Components lacked a uniform structure.</li><li><strong>Tech stack confusion</strong>: At one point, Claude started using MongoDB, even though we had specified PostgreSQL.</li><li><strong>Brittle code</strong>: Fixing one bug would often break other working parts.</li></ul><p>To mitigate these issues, I introduced <strong>Windsurf</strong> into the mix, using <strong>Claude Sonnet 3.7</strong>. It helped somewhat — but not enough. The bugs kept piling up, and I eventually decided to abandon that project.</p><h3>What’s Next</h3><p>Despite the setbacks, these experiments weren’t in vain. They led me to rethink how to use AI coding tools <strong>methodically</strong>. I began developing a structured approach — and that made a <strong>huge difference</strong>.</p><p>In <a href="https://medium.com/@amitworld/vibe-coding-shortcomings-and-best-practices-part-2-of-2-b7e9bcdac8c0"><strong>Part 2</strong></a>, I’ll cover:</p><ul><li>What methodology helped me overcome those challenges</li><li>Practical tips to make AI-assisted coding more reliable and scalable</li></ul><p><strong>Stay tuned!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65a90ca71a17" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>