<?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 Software Engineer on Medium]]></title>
        <description><![CDATA[Stories by Software Engineer on Medium]]></description>
        <link>https://medium.com/@vvandanapdev?source=rss-eabee9c19f6c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Software Engineer on Medium</title>
            <link>https://medium.com/@vvandanapdev?source=rss-eabee9c19f6c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:23:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vvandanapdev/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[I Built a Personal AI Browser Agent with Gemini 3.7 Flash (And It Runs on My Own Laptop)]]></title>
            <link>https://medium.com/lets-code-future/i-built-a-personal-ai-browser-agent-with-gemini-3-7-flash-and-it-runs-on-my-own-laptop-49c035d61f96?source=rss-eabee9c19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/49c035d61f96</guid>
            <category><![CDATA[google-gemini]]></category>
            <category><![CDATA[personal-browser]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[google-antigravity]]></category>
            <dc:creator><![CDATA[Software Engineer]]></dc:creator>
            <pubDate>Tue, 08 Sep 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-09-08T14:01:02.727Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why I stopped using cloud browser agents and built a local-first bot that controls my real Chrome browser.</h3><p>A few weeks ago, I was looking into autonomous AI browser agents like bots, where you can give an instruction like <em>“Go check this website, find information, and tell me what you see.”</em></p><p>The concept is awesome, but every tool I tried had the same deal-breaker:</p><p><strong>They all run inside a virtual browser in the cloud.</strong></p><p>Because cloud browsers start with zero history and zero cookies, the second you want to do something useful on a site where you’re already logged in, you have to type your real passwords or 2FA codes into someone else’s cloud server.</p><p>I didn’t want to hand over my accounts or cookies to a third-party server.</p><p>So I decided to build my own local setup: <a href="https://github.com/Vandanareddy2/personal-ai-browser-agent"><strong>personal-ai-browser-agent</strong></a>.</p><h3>What I Built</h3><p>Instead of sending my data to the cloud, I created a web app that runs strictly on localhost:8000 and controls a visible Google Chrome window right on my machine.</p><p>It uses <strong>Google Gemini 3.7 Flash</strong> to look at web pages, understand what’s on the screen, and click around like a human would.</p><p>Here is what the local control console looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hFjojPfTLJGMN8HdCQxtAA.png" /></figure><p><em>The dark-mode dashboard running on my computer where I can give the browser instructions, watch active pages, and manage settings.</em></p><h3>Testing It Out in the Real World</h3><p>To see how well it worked, I gave the agent a real task:</p><blockquote>“Search for dance studios in Lincoln, Nebraska on Google Maps and find top-rated places.”</blockquote><p>Here’s what happened next:</p><h3>1. Real Chrome opened up on my screen</h3><p>The agent didn’t hide in a black box. A real Chrome window launched right in front of me. It navigated to Google Maps, typed the query into the search bar, and waited for the map and sidebar to populate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZbY6B8NYIyrFys6Y.png" /></figure><p><em>The agent in action: navigating Google Maps, searching for local businesses, and analyzing the results.</em></p><h3>2. Gemini 3.7 Flash visually inspected the results</h3><p>Instead of just parsing messy raw HTML, the agent took screenshots of what Chrome was displaying and fed them to <strong>Gemini 3.7 Flash</strong>.</p><p>Gemini looked at the layout, identified the top-rated school (<em>BElevé Dance Company</em> with a 5.0 rating), and chose the next action: click into the business profile.</p><h3>3. Inspecting the details</h3><p>The agent clicked on the card, opening up the full profile view with photos, opening hours, address, and phone number:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Xem3VuoB0Eieoo19.png" /></figure><p><em>The agent clicking into the selected business to extract its address, photos, and contact info.</em></p><h3>Three Things That Made This Actually Practical</h3><h3>1. Persistent Chrome Profile (No Re-Logging In)</h3><p>Because it runs on my actual machine, it uses a persistent Chrome profile. If you’re logged into a website on your browser, you stay logged in. No pasting passwords into prompts.</p><h3>2. Safety First: The Emergency Stop</h3><p>Giving an AI control of a mouse and keyboard sounds scary. To make sure it never does anything unintended:</p><ul><li><strong>Read-only actions</strong> (searching, clicking links, reading information) happen automatically.</li><li><strong>Sensitive actions</strong> (anything like checking out, payments, or deleting) automatically pause the agent and pop up a prompt asking for permission first.</li><li>If anything goes sideways, there’s an immediate <strong>Emergency Stop</strong> button that halts execution on the spot.</li></ul><h3>3. Local SQLite Database</h3><p>All task history, logs, and screenshots are stored locally on my drive in a SQLite database. None of my browsing habits or search results leave my laptop.</p><h3>How to Run It Yourself</h3><p>I open-sourced the entire project under the MIT license on GitHub so anyone can clone it and run it.</p><p>All you need is Python, Google Chrome, and a free Gemini API key:</p><pre># 1. Clone the repo<br>git clone https://github.com/Vandanareddy2/personal-ai-browser-agent.git<br>cd personal-ai-browser-agent<br># 2. Install dependencies<br>pip install -r requirements.txt<br>playwright install<br># 3. Start the app<br>run.bat</pre><p>Open your browser to http://127.0.0.1:8000, add your Gemini API key in the <strong>Settings</strong> tab, and you&#39;re ready to try it!</p><p>Check out the full code and star the repo on GitHub:<br>👉 <a href="https://github.com/Vandanareddy2/personal-ai-browser-agent"><strong>github.com/Vandanareddy2/personal-ai-browser-agent</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49c035d61f96" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-code-future/i-built-a-personal-ai-browser-agent-with-gemini-3-7-flash-and-it-runs-on-my-own-laptop-49c035d61f96">I Built a Personal AI Browser Agent with Gemini 3.7 Flash (And It Runs on My Own Laptop)</a> was originally published in <a href="https://medium.com/lets-code-future">Let’s Code Future</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Spent Two Years Manually Emailing Recruiters. So I Built an AI Workflow to Do It in One Minute.]]></title>
            <link>https://medium.com/lets-code-future/i-spent-two-years-manually-emailing-recruiters-so-i-built-an-ai-workflow-to-do-it-in-one-minute-0f5fe62376db?source=rss-eabee9c19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f5fe62376db</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[n8n]]></category>
            <dc:creator><![CDATA[Software Engineer]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 14:01:04 GMT</pubDate>
            <atom:updated>2026-09-07T03:18:48.368Z</atom:updated>
            <content:encoded><![CDATA[<p>For the last two years, my routine on evenings, weekends, and holidays has looked roughly the same. Alongside applying to postings directly on job boards, I’d also reach out to recruiters myself. That meant opening LinkedIn, finding a recruiter’s post, a role, a company, sometimes a location, sometimes a visa line buried at the bottom, and an email address I’d have to copy by hand. Read the job description. Tailor my resume to it in Word. Go back, copy the recruiter’s email into my inbox, dig through Notepad or OneNote for whichever outreach template I’d used last time, and edit it by hand: the name, the role, the location if it mattered. Attach the resume. Send.</p><p>Ten to twelve minutes. Every recruiter. And out of every ten posts I’d act on, maybe only five or six were legitimate, active roles, the rest were noise I couldn’t identify until after I’d already spent the twelve minutes.</p><p>That ratio is what actually got me building. If reading a JD and pulling out a name, a role, and an email is just information extraction, and writing the follow-up is just templating, then this wasn’t a job-search problem, it was a small backend problem I already knew how to think about. So I built it as one: n8n running locally in Docker, one pipeline, four nodes.</p><pre>Form Trigger -&gt; Information Extractor (LLM) -&gt; Merge -&gt; Send Email (SMTP)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gwZsJXjR-Lfi1FUWA6Cbcw.png" /></figure><p><strong>Paste the mess in, get structure out</strong></p><p>The form itself is deliberately dumb, a textarea for whatever text I paste in, a file upload for my resume, a select field for the sending account. All the intelligence sits one node downstream, in an Information Extractor backed by gemini-flash-lite-latest via the Gemini API.</p><p>I gave it a defined schema of seven fields:</p><pre>recruiter_name, recruiter_email, job_title, company_name,<br>job_description, job_location, visa_sponsorship</pre><p>The part that made this actually reliable instead of a novelty was writing per-field descriptions rather than one global prompt. A recruiter post that leads with the company reads the same as one that leads with the role, because the model is doing semantic mapping, not positional parsing, the way a regex-based scraper would.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oy5nwtdcXBmR5i84u11cJw.png" /></figure><p>Two fields needed real tuning before I trusted them. company_name would go blank whenever a recruiter didn&#39;t state their company outright, so I instructed it to infer the company from the recruiter&#39;s email domain instead, jane@techcorp.com becomes &quot;Techcorp&quot;, while explicitly excluding generic providers like Gmail so it doesn&#39;t fabricate a company from a personal address. And visa_sponsorship originally returned a value on every single run, including &quot;no&quot; or &quot;not mentioned,&quot; which is worse for templating than an empty field. I rewrote the description so it only populates on an explicit, positive mention, and stays empty otherwise.</p><h3>The part nobody mentions: LLM nodes drop your files</h3><p>This was the one bug that actually cost me time to diagnose. The moment the resume passes through the Information Extractor, it’s gone. LLM nodes in n8n operate on and return JSON, so binary data attached to the incoming item doesn’t survive the trip.</p><p>The fix is a Merge node set to <strong>Combine by Position</strong>, sitting right after the extractor, with two inputs: the original Form Trigger output, which still has the resume as binary data, and the Information Extractor’s structured JSON. Combined positionally, the next node gets both.</p><h3>Writing the email so it doesn’t sound like a mail merge</h3><p>The Send Email node authenticates to smtp.gmail.com on port 465 over SSL using an app-specific password. No OAuth consent flow, no token refresh logic, a single-user local deployment doesn&#39;t need it.</p><p>Subject and body are fixed templates with the extracted fields interpolated in through n8n’s expression syntax, since the extractor nests its output under an output key:</p><pre>Subject: Application for {{ $json.output.job_title }}</pre><pre>Hi {{ $json.output.recruiter_name || &quot;Recruiter&quot; }},</pre><p>That || fallback matters more than it looks. If extraction fails to find a name on a messy input, the email still goes out with &quot;Hi Recruiter,&quot; instead of a blank or a broken template string. Optional fields like location or visa sponsorship use .filter() and .join() so the sentence composes cleanly from whatever fields actually got extracted, instead of leaving empty placeholders in a sent email. Body format is plain text, not HTML, specifically because n8n&#39;s HTML rendering collapses manual line breaks unless they&#39;re wrapped in markup, and plain text preserves them exactly as typed.</p><h3>Where it landed</h3><p>Ten to twelve minutes of jumping between LinkedIn, Word, Notepad, and my inbox is now about one minute: paste, upload once, submit. The system holds up against the actual variability in how recruiters write, no separate parsing logic per format, and because the “bad” postings now cost a minute instead of twelve, it’s no longer worth pre-filtering by hand before trying.</p><p>The whole thing is a portable JSON workflow file. Paired with Docker, the runtime, node logic, LLM integration, and SMTP config travel as one artifact, no dependency management beyond docker compose up. Anyone can pull it, drop in their own Gemini key and Gmail app password, and be running the same system in about fifteen minutes.</p><h3>Try it yourself</h3><p>I open-sourced the whole project, workflow JSON, a full setup guide starting from an empty machine, and notes on exactly which fields need to be customized before sending a real email.</p><p><a href="https://github.com/Vandanareddy2/recruiter_outreach_automation"><strong><em>https://github.com/Vandanareddy2/recruiter_outreach_automation</em></strong></a></p><p>If you’re deep into the same grind I was, tailoring resumes and copy-pasting between five windows on every evening and weekend you can spare, this should get you those hours back.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f5fe62376db" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lets-code-future/i-spent-two-years-manually-emailing-recruiters-so-i-built-an-ai-workflow-to-do-it-in-one-minute-0f5fe62376db">I Spent Two Years Manually Emailing Recruiters. So I Built an AI Workflow to Do It in One Minute.</a> was originally published in <a href="https://medium.com/lets-code-future">Let’s Code Future</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI in July 2026: A Release a Day for a Week, and the Four That Actually Matter]]></title>
            <link>https://medium.com/@vvandanapdev/ai-this-month-a-release-a-day-for-a-week-and-the-four-that-actually-matter-e09d6fdb93a5?source=rss-eabee9c19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e09d6fdb93a5</guid>
            <category><![CDATA[new-tools]]></category>
            <category><![CDATA[ai-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-tools]]></category>
            <dc:creator><![CDATA[Software Engineer]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 14:01:04 GMT</pubDate>
            <atom:updated>2026-08-11T20:54:36.573Z</atom:updated>
            <content:encoded><![CDATA[<p>July did not lack for launches. By one count, <strong>seven notable models</strong> shipped from <strong>five different labs</strong> in the single week between <strong>July 17 and 23</strong> alone, on top of everything else that landed earlier and later in the month. Reading every launch post is not a realistic plan for anyone with a job to do. Most of July’s volume was noise, positioning moves and efficiency plays dressed up as breakthroughs. Four releases actually changed what a developer can build or how carefully they need to test before shipping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hhW2agxJoH2_aPyH" /></figure><p>Before you dive in, four things worth knowing about July:</p><ul><li>Anthropic shipped <strong>Claude Opus 5</strong> on <strong>July 24</strong>, and it carries two breaking changes that will bite quietly if you skip the migration guide.</li><li>Moonshot AI released <strong>Kimi K3</strong>, a <strong>2.8 trillion parameter</strong> model, as fully open weights, the largest open model published to date.</li><li>OpenAI’s <strong>GPT-5.6</strong> family launched <strong>July 9</strong> after a government review delay tied to a cybersecurity executive order, a process worth knowing about even if it doesn’t change how you use the model.</li><li>Poolside proved a <strong>118 billion parameter</strong> open model can hold its own against much larger rivals, and it fits on a single desktop-class GPU box.</li></ul><h3>Claude Opus 5 is priced like a routine update and behaves like one you need to test first</h3><p>Anthropic released <strong>Claude Opus 5</strong> on <strong>July 24</strong>, available immediately as claude-opus-5 on the Claude API, Amazon Bedrock, Google Cloud Vertex AI, and Microsoft Foundry. Pricing held at <strong>$5 per million input tokens</strong> and <strong>$25 per million output tokens</strong>, identical to Opus 4.8. Anthropic isn&#39;t pitching this as a new frontier flagship, it&#39;s pitching it as a model meant for daily use, one that closes in on the intelligence of <strong>Claude Fable 5</strong> at roughly half that model&#39;s price.</p><p>Here’s the part that actually matters if you have anything running in production. Two behavior changes are silent, not loud. Opus 5 turns on thinking by default even when you omit the field entirely, and your max_tokens limit now covers thinking tokens and response text combined, not response text alone. On Opus 4.8, a request with no thinking field simply didn&#39;t think. On Opus 5, it does, and if your token budget was tuned for the old behavior, you can end up with a request that returns <strong>HTTP 200</strong>, a stop_reason of max_tokens, and an answer cut off mid sentence. Nothing throws an error. You just get quietly truncated output until someone notices. The second change is that you can&#39;t disable thinking above the high effort setting, doing so returns a <strong>400</strong>.</p><p>None of this makes Opus 5 a bad upgrade. The self verification behavior it adds, catching its own edge cases without being told to, is a genuine improvement for agentic work. But it also means prompts written for Opus 4.8 that included manual verification instructions are now doing redundant work and burning tokens for it. Budget a real afternoon, not five minutes, before you swap the model string on anything that matters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lE4rZneOeCQotnu1" /></figure><h3>Kimi K3 is the month’s actual headline, and it’s not close</h3><p>Moonshot AI announced <strong>Kimi K3</strong> on <strong>July 16</strong> and released the full model weights on <strong>July 27</strong>, ahead of its own promised date. It’s a <strong>2.8 trillion parameter</strong> mixture of experts model, with roughly <strong>104 billion parameters</strong> active on any given token, a <strong>one million token context window</strong>, and native support for text, image, and video input. Moonshot calls it the first open model in the three trillion parameter class, and by parameter count that claim holds.</p><p>The benchmark story is genuinely strong, not just large. On a private long horizon knowledge work evaluation from Artificial Analysis, K3 landed behind only <strong>Claude Fable 5</strong>, and independent blind testing on Design Arena ranked it <strong>first</strong> for front end coding, ahead of Fable 5 in that specific evaluation. API pricing settled at <strong>$3 per million input tokens</strong> and <strong>$15 per million output tokens</strong>, with a steep <strong>$0.30 rate</strong> for cached input, exactly matching Claude Sonnet 5’s headline pricing. That’s a real jump from Kimi’s earlier models, more than <strong>triple</strong> the output cost of K2.6, and it tells you Moonshot thinks the quality is there to support it.</p><p>What actually changes for a developer is the open weight release. You can now download, audit, fine tune, and self host a model that’s competitive with closed frontier systems on real coding benchmarks. That’s a different proposition than a hosted API call, and it matters most if data sovereignty, licensing terms, or the ability to run inference inside your own network are real constraints for you, not just nice to haves.</p><h3>GPT-5.6 shipped on schedule, but the path there says something worth remembering</h3><p>OpenAI released the <strong>GPT-5.6</strong> family, three tiers called <strong>Sol</strong>, <strong>Terra</strong>, and <strong>Luna</strong>, to the public on <strong>July 9</strong>. Sol is the flagship, tuned specifically for coding, scientific research, and cybersecurity work, and OpenAI calls it its strongest cybersecurity model yet, built to support defensive tasks like threat modeling and code review. What’s unusual is the runway. OpenAI first limited GPT-5.6 to a small group of government-approved partners in late June, at the request of the U.S. government under an AI cybersecurity executive order asking major labs to submit their most capable models for review before public release. OpenAI said publicly it didn’t think that kind of review process should become the long term default, then complied anyway, and the public rollout followed about two weeks later than the original plan, though notably faster than the full <strong>thirty day</strong> review window many expected.</p><p>For a developer, the model itself is the news, not the politics around it. Sol is a genuine step up on coding and agentic benchmarks and is meant to power ChatGPT Work, OpenAI’s higher end workspace product. But the review process is worth filing away, because it’s a preview of how the most capable models are likely to reach the public going forward, at least for the models a government decides warrant a look first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qSSy5_gieG7qyIBK" /></figure><h3>Poolside shows a small model doesn’t have to act small</h3><p>Poolside released <strong>Laguna S 2.1</strong> on <strong>July 21</strong> as fully open weights under a permissive <strong>OpenMDW-1.1</strong> license. It’s a <strong>118 billion parameter</strong> mixture of experts model that activates only about <strong>8 billion parameters</strong> per token, with a <strong>one million token context window</strong> and separate thinking and non-thinking modes. On Terminal-Bench 2.1 it scored <strong>70.2 percent</strong>, matching or beating models several times its size, including DeepSeek-V4-Flash and Nvidia’s Nemotron 3 Ultra. Quantized down to <strong>4 bit precision</strong>, the weights fit on a single Nvidia DGX Spark, meaning you can run a genuinely capable coding model on one desktop-class machine rather than a data center rack.</p><p>The part I find most credible is the transparency angle. Poolside published its evaluation trajectories publicly rather than just the summary numbers, and the model went from the start of training to launch in <strong>under nine weeks</strong>. If you’re evaluating self hosted coding models for a regulated environment where sending code to a third party API isn’t an option, this is now a real option, not a compromise pick.</p><h3>Also shipped this month, and why I’m not giving each one a full section</h3><p>The week of <strong>July 17 to 23</strong> alone produced three more releases from Alibaba, plus one each from Google, Ant Group, and Black Forest Labs. Worth knowing about, none of them changed my recommendations above.</p><p>Alibaba compressed three flagship-tier Qwen releases into <strong>72 hours</strong>, and every one of them was API-only, with no weights, no license, and in most cases no independent benchmark table at launch. <strong>Qwen3.8-Max-Preview</strong> appeared <strong>July 19</strong> as a <strong>2.4 trillion parameter</strong> multimodal model, previewed at the World AI Conference in Shanghai with no benchmark table attached, and its full launch didn’t actually land until August. <strong>Qwen-Audio-3.0-TTS</strong> followed <strong>July 20</strong> as a hosted voice model, and <strong>Qwen-Image-3.0</strong> shipped <strong>July 21</strong> as a third generation image generator. Alibaba has built its reputation on open weights, so a run of three closed, preview-only announcements in one week is a real shift worth watching, but there’s nothing here yet a developer can download or build on.</p><p>Google released three Gemini models in a single <strong>July 21</strong> drop: <strong>Gemini 3.6 Flash</strong> as the new default workhorse model, plus <strong>3.5 Flash-Lite</strong> and a restricted <strong>3.5 Flash Cyber</strong> available only to government and trusted partners. The real story is economics rather than capability. Output pricing dropped from <strong>$9</strong> to <strong>$7.50 per million tokens</strong>, and Google reports the model uses about <strong>17 percent fewer output tokens</strong> to finish the same work, so the two savings compound. On the independent Artificial Analysis Intelligence Index it scored a flat <strong>50</strong>, unchanged from its predecessor. Cheaper and faster, not smarter, and notably, Gemini 3.5 Pro still hasn’t shipped.</p><p>Ant Group’s inclusionAI lab released <strong>Ling-3.0-Flash</strong> on <strong>July 23</strong>, a <strong>124 billion parameter</strong> model that activates only about <strong>5.1 billion parameters</strong> per token, and the company claims it matches or beats its own much larger <strong>1 trillion parameter</strong> flagship on core benchmarks. It’s free on OpenRouter through early August, with open weights promised after that window closes, though they weren’t live at launch. If the efficiency claim holds up under independent testing, it’s a good data point for the same trend Laguna S 2.1 represents. I’d wait for the actual weights before recommending it for anything real.</p><p>Black Forest Labs announced <strong>FLUX 3</strong> on <strong>July 23</strong>, its first video and multimodal model, generating <strong>20 second</strong> clips with synchronized audio from a single architecture that also extends to image generation and robotic action prediction, already being tested on Audi’s production lines. It’s a genuinely ambitious architectural bet, but as of launch only the video and action components were available, and only through gated early access to approved applicants. No public pricing exists yet for any tier. This is one to watch, not one to build on this month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2Ev9IlR2Fj_RGgR6" /></figure><h3>What I wouldn’t chase yet</h3><p><strong>Fast mode</strong> on Claude Opus 5 is a tempting toggle, roughly <strong>2.5x</strong> the output speed for the same model. I’m not defaulting to it because it also doubles the price, to <strong>$10 and $50 per million tokens</strong>, and it’s a research preview limited to the first party API only, no Bedrock or GCP support yet. It’s a legitimate call for a latency sensitive customer facing surface. It’s an easy way to quietly triple your bill on background work if you leave it on without noticing.</p><p>I’d also hold off migrating any stable Opus 4.8 production workload to Opus 5 purely because of the token budget behavior change. The capability gain is real, but the failure mode is silent truncation, and that’s exactly the kind of bug that doesn’t show up until it’s already shipped to a user.</p><p>Any of the three <strong>Qwen</strong> releases from <strong>July 19–21</strong> are worth skipping for now, simply because none of them have published weights, licenses, or independent benchmarks yet. There’s nothing to actually evaluate.</p><h3>If I were building today</h3><p>Test <strong>Claude Opus 5</strong> against your actual agentic workflows before assuming the migration is free. The self verification improvement is real, but the token budget change is the kind of thing that costs an afternoon to catch and longer to explain to a user if you don’t.</p><p>Give <strong>Kimi K3</strong> a real evaluation if data residency, fine tuning access, or self hosting have ever been blockers for using a frontier grade model. This is the first time in a while that open weights and actually competitive have both been true at once.</p><p>If you’re weighing a self hosted coding model for a regulated or air gapped environment, put <strong>Laguna S 2.1</strong> on the shortlist. Running on a single DGX Spark is a genuinely different deployment story than needing a GPU cluster.</p><p>Hold <strong>GPT-5.6 Sol</strong> for cybersecurity adjacent coding tasks specifically, that’s the niche OpenAI clearly built it for, and it’s where the benchmark story is strongest relative to general purpose use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FZU-dcg3FE-RgIBl" /></figure><h3>The bottom line</h3><p>July wasn’t a month where any one model rewrote what’s possible, it was a month where the volume of releases outran anyone’s ability to actually test them. The four that mattered shared a common thread: real evidence you could check, weights you could download or a migration guide you could read, not just a launch post and a promise. Everything else, the previews with no benchmarks, the gated access with no pricing, the weights promised but not delivered, is worth a bookmark, not a decision. The actual skill this month wasn’t keeping up with all seven releases in a week. It was telling which ones were finished products and which were still announcements about announcements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e09d6fdb93a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[100 AI Tools Worth Knowing in 2026]]></title>
            <link>https://medium.com/@vvandanapdev/100-ai-tools-worth-knowing-in-2026-de0570b12758?source=rss-eabee9c19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/de0570b12758</guid>
            <category><![CDATA[100-top]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Software Engineer]]></dc:creator>
            <pubDate>Tue, 04 Aug 2026 14:01:03 GMT</pubDate>
            <atom:updated>2026-08-04T14:01:03.931Z</atom:updated>
            <content:encoded><![CDATA[<p>A couple of years ago, “using AI” basically meant opening ChatGPT and typing a question. That’s changed fast. Today there’s a dedicated tool for almost every task you can think of: writing your emails, cloning your voice, editing your videos, generating your app’s frontend, running your sales pipeline, even scheduling your calendar around your actual energy levels instead of just open slots.</p><p>The upside is obvious: whatever you’re trying to do, there’s probably something built specifically for it. The downside is that keeping track of what exists, what’s actually good, and what’s just a thin wrapper around someone else’s model has turned into a small research project on its own.</p><p>That’s the gap this list is trying to close. I’ve pulled together 100 tools across 10 categories, from general assistants to coding, design, video, audio, productivity, research, sales, and the agent frameworks quietly powering a lot of it behind the scenes. Each one gets a real explanation, not just a name and a tagline, plus a sense of who it’s actually built for. Along the way I’ve dropped in a few pro tips, cases where one tool clearly pulls ahead of the pack for a specific job, worth knowing before you pick one and commit.</p><p>Bookmark this, skim the categories that matter to you, and come back to the rest later. Let’s get into it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*S5gwLoD3wJXEQFu_" /></figure><h3>1. General Purpose AI Assistants</h3><ol><li><strong>ChatGPT (OpenAI)</strong>: The tool that kicked off the current AI wave. Handles conversation, writing, coding, brainstorming, and research, with plugins and custom GPTs for more specialized workflows. Good default choice if you want one assistant for everything.</li><li><strong>Claude (Anthropic)</strong>: Known for handling long documents and complex reasoning without losing track of context. Popular for writing, coding, and analysis tasks where the input is large (think full contracts, codebases, or research papers) rather than a quick one line question.</li><li><strong>Gemini (Google)</strong>: Google’s assistant, tightly woven into Search, Gmail, Docs, and Android. Its biggest advantage is native access to Google’s ecosystem, so it can pull from your calendar or drive without extra setup.</li><li><strong>Microsoft Copilot</strong>: Built into Windows and the Microsoft 365 suite (Word, Excel, Outlook, Teams). Best suited for people already living inside Microsoft’s tools who want AI help without switching apps.</li><li><strong>Perplexity AI</strong>: Less a chatbot, more a search engine that answers in full sentences and always shows its sources. Useful when you want an answer plus a paper trail to verify it.</li><li><strong>Grok (xAI)</strong>: Integrated directly into X (Twitter), giving it real time access to what’s trending and being discussed on the platform. Leans more casual and opinionated in tone than most assistants.</li><li><strong>Meta AI</strong>: Baked into Instagram, WhatsApp, and Facebook, so it shows up where people are already chatting rather than in a separate app. Handles quick questions, image generation, and casual conversation.</li><li><strong>Poe (Quora)</strong>: A single app that lets you access and switch between many different AI models (ChatGPT, Claude, Gemini, and more) without juggling separate subscriptions or tabs.</li><li><strong>You.com</strong>: An AI search engine that blends web results with chat, and lets you customize different “modes” for coding, research, or creative work depending on what you’re doing.</li><li><strong>Pi (Inflection AI)</strong>: Designed less for productivity and more for conversation itself, positioned as a supportive, personable AI companion rather than a task focused tool.</li></ol><blockquote><strong><em>Pro tip:</em></strong><em> If you only pick one assistant, base the choice on where you already work. Deep in Google Docs and Gmail all day? Gemini removes the copy paste friction. Living in Microsoft 365? Copilot does the same there. If you’re not locked into an ecosystem, Claude tends to hold up best on long documents and multi step reasoning, while Perplexity is the better pick when you want an answer with receipts attached.</em></blockquote><h3>2. Coding &amp; Developer Tools</h3><ol><li><strong>GitHub Copilot</strong>: The original AI pair programmer. Lives inside your IDE and suggests entire lines or blocks of code as you type, trained on a massive amount of public code.</li><li><strong>Claude Code</strong>: An agentic coding tool you run from the terminal, desktop app, or inside your editor. You describe a task and it can read your codebase, make multi file changes, run tests, and iterate, rather than just autocompleting single lines.</li><li><strong>Cursor</strong>: A code editor built from the ground up around AI, rather than AI bolted onto an existing editor. Popular for its chat driven refactors and ability to reason across an entire project.</li><li><strong>Replit AI</strong>: Built into Replit’s browser based coding environment, so you can go from a text prompt to a running app without installing anything locally.</li><li><strong>Codeium</strong>: A free alternative to Copilot that offers code completion and an in editor chat assistant across most major IDEs, popular with students and budget conscious developers.</li><li><strong>Tabnine</strong>: Focused on privacy and enterprise use cases, with options to run models on your own infrastructure so proprietary code never leaves your servers.</li><li><strong>Amazon Q Developer</strong>: AWS’s answer to AI coding assistants, tuned specifically for building, debugging, and maintaining applications that run on AWS infrastructure.</li><li><strong>Sourcegraph Cody</strong>: Built for large, complex codebases. Its strength is understanding how files, functions, and services relate to each other across an entire repository, not just the file you have open.</li><li><strong>Windsurf</strong>: An agentic IDE that can take a task description and independently plan out and execute changes across multiple files, checking its own work as it goes.</li><li><strong>v0 by Vercel</strong>: Turns a text description into working frontend UI components, generating actual React and Tailwind code you can drop into a project rather than just a mockup image.</li></ol><blockquote><strong><em>Pro tip:</em></strong><em> For quick autocomplete inside an editor you already like, GitHub Copilot is still the safest default. But if you’re tackling a task that spans multiple files (a refactor, a new feature, a bug hunt across a codebase) an agentic tool like Claude Code or Windsurf will save you far more time, since it can plan, edit, and verify across the whole project instead of just finishing your current line.</em></blockquote><h3>3. Writing &amp; Content Creation</h3><ol><li><strong>Jasper</strong>: Aimed at marketing teams that need to produce a high volume of on brand content quickly, from ad copy to blog posts, with tools to keep tone and voice consistent across a team.</li><li><strong>Copy.ai</strong>: Generates short form marketing copy such as emails, product descriptions, and social captions, with templates built for specific campaign types.</li><li><strong>Grammarly</strong>: The long standing writing assistant that checks grammar, spelling, tone, and clarity as you type, now expanded with AI features that can rewrite entire passages on request.</li><li><strong>Sudowrite</strong>: Built specifically for fiction writers, with features for brainstorming plot twists, describing scenes, and rewriting passages in a chosen author’s style.</li><li><strong>Writesonic</strong>: A content generator geared toward SEO focused writing, producing blog posts, ad copy, and product descriptions optimized to rank in search.</li><li><strong>Rytr</strong>: A lighter, budget friendly writing assistant aimed at short form content like social posts and emails rather than long documents.</li><li><strong>QuillBot</strong>: Focused specifically on paraphrasing and summarizing, useful for rewording a sentence, condensing a long article, or checking for plagiarism.</li><li><strong>Hemingway Editor</strong>: Doesn’t generate text, it critiques it. Flags overly complex sentences, passive voice, and readability issues to make your writing punchier and easier to read.</li><li><strong>Notion AI</strong>: Built directly into Notion, so you can draft, summarize, or reorganize your notes and docs without leaving the app you’re already working in.</li><li><strong>Wordtune</strong>: Rewrites individual sentences to hit a different tone (more formal, more casual, shorter, longer) while keeping the original meaning intact.</li></ol><blockquote><strong><em>Pro tip:</em></strong><em> Don’t use one tool for the whole writing process. Draft with a general assistant like Claude or ChatGPT to get ideas down fast, then run the result through Grammarly or Hemingway Editor for a clarity and tone pass. Using a single tool end to end tends to produce noticeably flatter, more generic writing.</em></blockquote><h3>4. Image Generation &amp; Design</h3><ol><li><strong>Midjourney</strong>: Widely considered the leader in artistic, high quality AI image generation. Runs through Discord (with a web app now available too) and is favored by designers and illustrators for its distinctive aesthetic.</li><li><strong>DALL·E 3 (OpenAI)</strong>: Generates images directly inside ChatGPT from a text description, with strong ability to follow detailed, specific prompts accurately.</li><li><strong>Stable Diffusion</strong>: An open source image model you can run locally or fine tune yourself, giving far more control and customization than closed, hosted tools, at the cost of a steeper learning curve.</li><li><strong>Adobe Firefly</strong>: Adobe’s generative AI, built directly into Photoshop and Creative Cloud, trained on licensed content so the output is considered safer for commercial use.</li><li><strong>Canva AI (Magic Studio)</strong>: A full suite of AI design features inside Canva, including background removal, image generation, and layout suggestions, aimed at people without formal design training.</li><li><strong>Leonardo AI</strong>: Popular in gaming and creative circles for generating concept art, character designs, and game assets with fine tuned control over style.</li><li><strong>Ideogram</strong>: Stands out for actually rendering readable, accurate text inside generated images, a common weak point for most other image generators.</li><li><strong>Recraft</strong>: Built for practical design work like vector graphics, mockups, and brand assets rather than purely artistic images.</li><li><strong>Playground AI</strong>: A free to use image generation and editing platform with a straightforward interface, good for casual experimentation without a steep learning curve.</li><li><strong>Flux (Black Forest Labs)</strong>: A high fidelity, open weight image model known for photorealistic output, increasingly used as the base model behind other tools and apps.</li></ol><blockquote><strong><em>Pro tip:</em></strong><em> Match the tool to the job, not the hype. Midjourney wins for artistic, stylized visuals. Adobe Firefly is the safer commercial choice since it’s trained on licensed content. And if you need text to actually render correctly inside the image (a logo, a sign, a poster), skip straight to Ideogram, most other generators still struggle with legible text.</em></blockquote><h3>5. Video Generation &amp; Editing</h3><ol><li><strong>Runway ML</strong>: One of the most established AI video tools, with its Gen 3 and Gen 4 models generating and editing video clips from text or image prompts. Widely used by filmmakers experimenting with AI generated footage.</li><li><strong>Sora (OpenAI)</strong>: Generates realistic video clips directly from a text description, capable of producing complex scenes with consistent characters and camera movement.</li><li><strong>Pika</strong>: Focused on short, stylized video clips, popular for quick creative experiments and social media content rather than long form production.</li><li><strong>Synthesia</strong>: Creates videos of AI avatars reading a script you provide, heavily used for corporate training videos and localized content without needing an actual camera crew.</li><li><strong>HeyGen</strong>: Similar to Synthesia but with a strong focus on video translation, letting you turn a video in one language into a version with a synced avatar speaking another.</li><li><strong>Descript</strong>: An audio and video editor where you edit the transcript text and the media edits itself to match, making video editing feel more like editing a document.</li><li><strong>Kling AI</strong>: A high quality text to video model out of China, competitive with Sora and Runway on realism and motion consistency.</li><li><strong>Luma AI (Dream Machine)</strong>: Converts text or a still image into video with notably realistic, physically plausible motion.</li><li><strong>Opus Clip</strong>: Takes a long video (like a podcast or webinar) and automatically finds and cuts the most engaging short clips for platforms like TikTok and Reels.</li><li><strong>Veed.io</strong>: A browser based video editor with AI features like automatic subtitles, translation, and background noise removal, aimed at creators who don’t want to learn a traditional editing suite.</li></ol><blockquote><strong><em>Pro tip:</em></strong><em> If you’re repurposing existing content rather than generating new footage, Opus Clip is the highest leverage tool on this list, feed it one long podcast or webinar and it can hand back a week’s worth of short clips. For actual text to video generation, Runway and Sora currently lead on realism, but Kling AI is worth testing too since it’s closing the gap fast.</em></blockquote><h3>6. Audio, Music &amp; Voice</h3><ol><li><strong>ElevenLabs</strong>: The industry standard for realistic AI voice generation and cloning, used in everything from audiobooks to voiceovers to dubbing.</li><li><strong>Suno</strong>: Generates full songs, vocals and all, from a text description, letting anyone with an idea produce a finished sounding track without playing an instrument.</li><li><strong>Udio</strong>: A close competitor to Suno for AI generated music, also capable of producing full original songs and instrumentals from a prompt.</li><li><strong>Murf AI</strong>: Focused on text to speech for practical use cases like voiceovers for presentations, e-learning content, and explainer videos.</li><li><strong>Adobe Podcast</strong>: An AI audio enhancement tool that cleans up background noise and improves recording quality, useful for podcasters recording in less than ideal conditions.</li><li><strong>Krisp</strong>: Removes background noise from live calls in real time, popular for remote workers taking calls from noisy environments.</li><li><strong>Speechify</strong>: A text to speech app that reads articles, documents, and books aloud, popular for multitasking or for people who process audio better than text.</li><li><strong>AIVA</strong>: Composes original background and cinematic music, often used by video creators and game developers who need a soundtrack without licensing existing music.</li><li><strong>Voicemod</strong>: A real time voice changer popular with streamers and gamers who want to alter their voice live during a stream or call.</li><li><strong>Resemble AI</strong>: A developer focused platform for voice cloning and generative audio, built to be integrated into other products via API.</li></ol><blockquote><strong><em>Pro tip:</em></strong><em> ElevenLabs is the clear default for voice work, it’s what most other tools quietly plug into behind the scenes. For music, Suno and Udio are neck and neck, but Suno currently has the edge on vocal quality while Udio tends to produce more interesting instrumentals, worth generating the same prompt in both and comparing.</em></blockquote><h3>7. Productivity &amp; Automation</h3><ol><li><strong>Zapier AI (Zapier Agents)</strong>: Connects different apps together and automates the steps between them, now with AI driven logic that can make decisions mid workflow instead of following rigid rules only.</li><li><strong>Make (formerly Integromat)</strong>: A visual automation builder similar to Zapier, popular for more complex, branching workflows that need finer control over each step.</li><li><strong>Motion</strong>: Automatically builds your daily schedule around your tasks and meetings, re-arranging your calendar as priorities shift throughout the day.</li><li><strong>Reclaim.ai</strong>: Protects blocks of focus time on your calendar automatically, defending your schedule from being filled with meetings.</li><li><strong>Otter.ai</strong>: Transcribes meetings in real time and generates searchable notes and summaries afterward, widely used for remote and hybrid teams.</li><li><strong>Fireflies.ai</strong>: Similar to Otter, joining calls to record, transcribe, and summarize meetings, with extra focus on integrating those notes into your CRM or other tools.</li><li><strong>Superhuman</strong>: An email client built for speed, using AI to help triage your inbox, draft replies, and surface what actually needs your attention.</li><li><strong>Todoist AI Assist</strong>: Adds AI powered suggestions to the popular Todoist task manager, helping break down and organize tasks more effectively.</li><li><strong>Clockwise</strong>: Optimizes an entire team’s calendars at once, rearranging meetings to protect everyone’s focus time without manual back and forth.</li><li><strong>Mem</strong>: A note taking app that automatically organizes and connects your notes for you, reducing the need to manually file things into folders.</li></ol><blockquote><strong><em>Pro tip:</em></strong><em> Start with meeting transcription, it’s the lowest effort, highest impact automation on this list. Otter.ai or Fireflies.ai running quietly in the background means you stop taking notes by hand and start actually listening in meetings. Pair that with Motion or Reclaim.ai to protect the focus time those meetings would otherwise eat into.</em></blockquote><h3>8. Research, Data &amp; Analytics</h3><ol><li><strong>Elicit</strong>: An AI research assistant built for finding and summarizing academic papers, useful for literature reviews and early stage research.</li><li><strong>Consensus</strong>: A search engine specifically for scientific research, giving answers backed by citations pulled directly from published studies.</li><li><strong>Julius AI</strong>: Lets you upload a spreadsheet and ask questions in plain English, generating charts and analysis without writing any formulas or code.</li><li><strong>Wolfram Alpha</strong>: A computational engine (not a chatbot) built for precise answers to math, science, and data questions, trusted for its accuracy over general purpose AI.</li><li><strong>DataRobot</strong>: An enterprise platform for automating the machine learning model building process, aimed at data science teams working at scale.</li><li><strong>H2O.ai</strong>: An open source platform for automated machine learning, popular with data scientists who want more control and transparency than a fully closed platform offers.</li><li><strong>Tableau AI</strong>: Adds AI assisted insights and natural language querying to Tableau’s data visualization platform, helping surface patterns in data automatically.</li><li><strong>MonkeyLearn</strong>: A no code tool for text analysis and sentiment analysis, useful for teams that want to analyze customer feedback without a data science background.</li><li><strong>Akkio</strong>: A no code AI tool for building predictive models, aimed at business users rather than data scientists.</li><li><strong>Obviously AI</strong>: Turns a spreadsheet directly into a predictive model with no coding required, useful for quick forecasting tasks.</li></ol><blockquote><strong><em>Pro tip:</em></strong><em> If your work touches academic literature, Consensus is worth using before you ever open a general search engine, it’s built to answer with actual citations rather than plausible sounding guesses. For everyday spreadsheet work, Julius AI is the fastest way to get a chart or an answer out of messy data without opening Excel formulas at all.</em></blockquote><h3>9. Business, Sales &amp; Marketing</h3><ol><li><strong>HubSpot AI (Breeze)</strong>: AI features woven throughout HubSpot’s CRM and marketing tools, helping with everything from lead scoring to content generation.</li><li><strong>Salesforce Einstein</strong>: An AI layer built into Salesforce’s CRM, used for predicting deal outcomes, automating tasks, and surfacing insights from customer data.</li><li><strong>Gong</strong>: Analyzes recorded sales calls to give reps and managers coaching insights, flagging what worked and what didn’t in real conversations.</li><li><strong>Drift</strong>: Conversational AI chatbots built for websites, designed to engage visitors and qualify leads before they ever talk to a human.</li><li><strong>Clay</strong>: Enriches and personalizes sales outreach data, pulling information from multiple sources to help reps write more relevant, targeted messages.</li><li><strong>Apollo.io AI</strong>: A sales intelligence platform combining a large contact database with AI driven prospecting to help find and reach the right leads.</li><li><strong>Surfer SEO</strong>: Analyzes top ranking content for a given keyword and gives specific, data backed recommendations to optimize your own content for search.</li><li><strong>Jasper for Business</strong>: The enterprise version of Jasper, built for larger teams that need brand consistent content generation with more control and governance.</li><li><strong>AdCreative.ai</strong>: Generates ad creatives and banners automatically, optimized based on data about what tends to convert.</li><li><strong>Brandwatch</strong>: A social listening platform that uses AI to track brand mentions and sentiment across social media at scale.</li></ol><blockquote><strong><em>Pro tip:</em></strong><em> Sales teams tend to get the fastest ROI from Gong, since it turns calls you’re already having into a coaching tool without adding extra work for reps. On the content side, Surfer SEO is worth pairing with any AI writing tool, use the writer to draft and Surfer to make sure what you drafted actually has a shot at ranking.</em></blockquote><h3>10. AI Agents &amp; Infrastructure</h3><ol><li><strong>LangChain</strong>: A widely used framework for building applications powered by language models, handling the plumbing of connecting a model to data sources, tools, and memory.</li><li><strong>LlamaIndex</strong>: A data framework focused specifically on connecting LLMs to your own custom data, commonly used to build retrieval augmented generation (RAG) systems.</li><li><strong>AutoGPT</strong>: One of the earliest autonomous agent frameworks, designed to chain together multiple AI tasks to work toward a goal with minimal human input.</li><li><strong>CrewAI</strong>: A framework for orchestrating multiple AI agents that each play a specific role and collaborate together on a larger task.</li><li><strong>Hugging Face</strong>: The central hub for open source AI, hosting thousands of models, datasets, and tools that developers can download and build on.</li><li><strong>Pinecone</strong>: A vector database used to store and search embeddings, a core piece of infrastructure behind semantic search and RAG applications.</li><li><strong>Weights &amp; Biases</strong>: An MLOps platform for tracking, comparing, and managing machine learning experiments, widely used by teams training their own models.</li><li><strong>Ollama</strong>: Lets you download and run open source language models directly on your own machine, without sending data to an external server.</li><li><strong>Vercel AI SDK</strong>: A developer toolkit for building AI powered web applications, handling streaming responses and integrations with multiple model providers.</li><li><strong>Zapier Central / MCP Agents</strong>: An emerging category of agent building tools that connect AI models directly to real world apps and actions, using protocols like MCP to let an AI actually do things rather than just talk about them.</li></ol><blockquote><strong><em>Pro tip:</em></strong><em> Unless you’re building AI products yourself, you probably won’t touch most of this category directly, it’s infrastructure other tools are built on top of. The one exception worth knowing is Ollama: if you ever want to run a model locally for privacy reasons or to avoid API costs, it’s the easiest on ramp into open source AI without needing a research background.</em></blockquote><h3>Final Thoughts</h3><p>If you’ve made it this far, the temptation is to go try to sign up for a dozen of these at once. Resist that. Tool sprawl is its own kind of productivity tax: every new subscription is another login, another workflow to remember, another thing to maintain. Most of the value here comes from doing a few things really well, not from having every category covered.</p><p>A better approach: start with one general assistant as your home base, something like Claude, ChatGPT, or Gemini, and actually use it daily until it becomes second nature. Once that’s solid, look at whatever specific task is currently eating the most of your time, meetings, video editing, coding, content, sales outreach, whatever it is, and add exactly one specialized tool to fix that bottleneck. Get comfortable with that combination before adding anything else.</p><p>The tools themselves will keep changing. New models ship constantly, today’s leader in video generation might not hold that spot in six months, and a tool that seems niche today could be standard practice by next year. But the underlying skill, knowing what’s out there and being deliberate about what you actually adopt, is the part that keeps paying off no matter how the landscape shifts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*DkDDQ09EX_omnhUR" /></figure><p><strong>Which of these have earned a permanent spot in your toolkit, and which ones do you think are overrated? I’d genuinely like to know, drop a comment below.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de0570b12758" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Git-to-Kaggle Pipeline: Run Modular Deep Learning & AI Projects on Free GPUs]]></title>
            <link>https://medium.com/@vvandanapdev/the-git-to-kaggle-pipeline-run-modular-deep-learning-ai-projects-on-free-gpus-22ca60a70673?source=rss-eabee9c19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/22ca60a70673</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[kaggle]]></category>
            <dc:creator><![CDATA[Software Engineer]]></dc:creator>
            <pubDate>Tue, 30 Jun 2026 14:01:04 GMT</pubDate>
            <atom:updated>2026-06-30T14:01:04.437Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever tried to build a real <strong>Deep Learning</strong> or <strong>AI chatbot</strong> project on a local machine, you know the exact moment the excitement dies. You finish writing a clean, professional codebase and separate modules for your data loaders, your model architecture, and a <strong>main.py</strong> to orchestrate everything.</p><p>Then you hit run. Your laptop fans start screaming, your entire<strong> OS lags,</strong> and you realize training is going to take <strong>days.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*qZoYfDCVJsvNL3oXNHKfbQ.jpeg" /></figure><p>Naturally, you look for <strong>cloud GPUs.</strong> <strong>Kaggle </strong>is usually the first stop because they give you <strong>16GB VRAM GPUs (T4s and P100s)</strong> completely for free. But the moment you open a blank Kaggle notebook, you run into a miserable user experience: Kaggle expects you to write everything inside a giant, messy notebook cell.</p><p>If you want to keep your multi-file project structure, the standard advice is to copy and paste your code, file by file, into a single, massive <strong>1,000-line monolithic notebook cell.</strong> It’s incredibly <strong>frustrating</strong>, it <strong>ruins </strong>your git history, and it completely <strong>breaks </strong>local development standards.</p><p>But you don’t actually have to butcher your code to use <strong>free cloud hardware.</strong></p><p>Instead of treating <strong>Kaggle </strong>like a <strong>digital scratchpad</strong>, you can treat it like a headless remote server. In this post, we’re going to set up a clean <strong>Git-to-Kaggle Pipeline</strong>. We’ll automate cloning your GitHub repository into the cloud workspace, run your modular code safely in the background using Python’s subprocess module so the notebook UI doesn&#39;t freeze, and generate a quick download link to grab your trained model weights when it&#39;s done.</p><h3>The Project Blueprint</h3><p>Before looking at the automation script, let’s look at the project structure we are dealing with. For this guide, let’s assume you are working with a standard, modular layout. This could be a PyTorch model targeting image classification, a custom Transformer, or a backend data script for a chatbot.</p><p>It looks like this:</p><pre>my-deep-learning-project/<br>│<br>├── src/<br>│   ├── __init__.py<br>│   ├── dataset.py      # Data loaders, text tokenizers, or augmentations<br>│   ├── model.py        # Neural network layers (CNN, Transformer, etc.)<br>│   ├── train.py        # Single epoch training logic<br>│   └── utils.py        # Weight saving helpers and plotting scripts<br>└── main.py             # Orchestration script (Hyperparameters, Optimizer, Loop)</pre><p>In a professional setup, you want your data pipeline, architecture, and orchestration separated into clean modules. It makes your code reusable and easy to debug locally. But since Kaggle notebooks only want to run linear cells, we need a way to pull this exact folder structure into the cloud without flattening it into a single file.</p><h3>Setting Up Kaggle and Automating Git</h3><p>To use Kaggle as a remote runner, you only need to toggle a couple of settings in a blank notebook.</p><ol><li>Create a new notebook on <strong>Kaggle</strong>.</li><li>Look at the right-hand <strong>settings </strong>sidebar. Go to <strong>Accelerator</strong>, select either a <strong>Tesla T4</strong> or <strong>P100</strong> GPU.</li><li>Scroll down slightly in that same sidebar and make sure <strong>Internet on</strong> is toggled. If you forget this step, Kaggle won’t be able to talk to GitHub or install any missing <strong>pip </strong>packages.</li></ol><h3>The Git Automation Script</h3><p>Instead of manually dragging and dropping files or copying code into individual cells, paste this code into the very first cell of your notebook. This script checks if your repository already exists in the workspace; if it doesn’t, it clones it, and if it does, it pulls your latest local commits.</p><pre>!git clone https://github.com/Vandanareddy2/cifar10-classifier.git<br><br>!cd cifar10-classifier &amp;&amp; git pull<br><br>import subprocess<br>result = subprocess.run([&#39;python&#39;, &#39;-m&#39;, &#39;src.main&#39;], <br>                        capture_output=True, text=True,<br>                        cwd=&#39;/kaggle/working/cifar10-classifier&#39;)<br>print(result.stdout)<br>print(result.stderr)<br><br>from IPython.display import FileLink<br>FileLink(&#39;/kaggle/working/cifar10-classifier/outputs/best_model.pth&#39;)</pre><p>By doing this, your Kaggle environment stays completely synced with your GitHub repository. You can write your code locally in VS Code, push your changes to GitHub, and just hit <strong>“Run”</strong> on this cell in Kaggle to pull down your updates instantly.</p><p>By doing this, your Kaggle environment stays completely synced with your GitHub repository. You can write your code locally in VS Code, push your changes to GitHub, and just hit “Run” on this cell in Kaggle to pull down your updates instantly.</p><p>Here is exactly what is happening under the hood during execution:</p><ul><li><strong>The Module Flag (</strong><strong>-m src.main)</strong>: Running Python with the -m flag treats your script as a module. This is critical for modular architectures because it ensures Python correctly resolves all internal relative imports within your src/ directory without throwing ModuleNotFoundError exceptions.</li><li><strong>capture_output=True</strong>: This quietly intercepts your training metrics and standard logs, holding them safely in memory while the model trains. It keeps the Kaggle notebook UI completely stable and responsive during long training loops instead of freezing your browser tab.</li><li><strong>cwd=&#39;/kaggle/working/cifar10-classifier&#39;</strong>: This explicitly sets the current working directory to your cloned repository, making sure relative paths inside your code look in the correct folders for datasets, configs, or outputs.</li><li><strong>Instant Weights Download (</strong><strong>FileLink)</strong>: Instead of digging through Kaggle&#39;s sidebar file explorer to find your saved state, FileLink surfaces a clickable link directly in the notebook cell interface. The moment your training loop finishes saving best_model.pth, you just click the link to download the weights straight to your local computer.</li></ul><h3>Iterating and Version Controlling Your Runs</h3><p>The best part about this setup is that you don’t need to refresh your notebook or reset your cloud environment when you make changes to your <strong>architecture </strong>or <strong>hyperparameters</strong>.</p><p>If you realize your chatbot needs a different prompt template, or your deep learning model needs a lower learning rate:</p><ol><li>Make the change locally in <strong>VS Code.</strong></li><li>Commit and push the fix to <strong>GitHub</strong>.</li><li>Come right back to <strong>Kaggle </strong>and hit <strong>Run</strong> on your cell again.</li></ol><p>Because of the <strong>git pull</strong> logic at the top of your code, Kaggle will instantly grab your latest changes, spin up a fresh background subprocess, and start training your updated architecture.</p><h3>Saving Your Best Versions</h3><p>When a specific run gives you a massive jump in validation accuracy, you’ll want to preserve that exact state. Kaggle allows you to save independent snapshots of your notebook’s history.</p><p>In the top right corner of the interface, click the <strong>Save Version</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yJw_OvwUv82Oz1IUXj-32g.png" /><figcaption><strong>The Kaggle ‘Save version’ configuration panel.</strong></figcaption></figure><p>Under Version type, select <strong>Quick Save</strong> to instantly snapshot your notebook cell outputs, logs, and generated <strong>FileLink </strong>tokens. You can do this as many times as you want throughout the day. This creates an unchangeable, chronological history of your project&#39;s progress, allowing you to go back and download the weights or check the <strong>stdout </strong>terminal logs of your best-performing configurations whenever you need to.</p><h3>Results &amp; Conclusion</h3><p>Once the subprocess completes execution, print(result.stdout) will dump your full training history straight into your notebook cell output. If your codebase uses libraries like <strong>Matplotlib </strong>to save loss charts or evaluation graphics directly into an <strong>/outputs/</strong> directory, you&#39;ll find them waiting for you alongside your trained model file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x72w5LedPOiZF87gjznUxQ.png" /><figcaption><strong>A snapshot of the generated </strong><strong>/outputs/ directory and version history.</strong></figcaption></figure><p>Using this workflow means you no longer have to compromise on your engineering standards just to get access to fast cloud compute. You don’t have to sacrifice your modular project layout, ruin your local Git history, or force yourself to debug a messy, multi-thousand-line single-file notebook cell.</p><p>Instead, you can keep developing cleanly in your local IDE, use GitHub as your bridge, and let Kaggle’s free GPUs act as your remote headless runner.</p><p>Stop melting your local laptop hardware and start letting the background automation do the heavy lifting for you.</p><blockquote><strong>Enjoyed this workflow?</strong> I’m currently documenting my journey building modular deep learning pipelines and breaking down professional backend practices. If you want to skip the spaghetti code and build production-ready AI projects, hit <strong>Follow</strong> for more practical, step-by-step guides.</blockquote><p><em>Drop a comment below: What’s your biggest pet peeve when working with cloud notebooks? Let’s talk shop!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22ca60a70673" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an MNIST Digit Classifier with PyTorch: A Technical Walkthrough]]></title>
            <link>https://medium.com/@vvandanapdev/building-an-mnist-digit-classifier-with-pytorch-a-technical-walkthrough-d5745d65b152?source=rss-eabee9c19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5745d65b152</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pytorch]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Software Engineer]]></dc:creator>
            <pubDate>Tue, 19 May 2026 14:01:01 GMT</pubDate>
            <atom:updated>2026-05-19T14:01:01.605Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>MNIST </strong>is a dataset of <strong>70,000</strong> handwritten digit images: <strong>60,000 </strong>for <strong>training </strong>and <strong>10,000 </strong>for <strong>testing</strong>. Each image is <strong>28×28</strong> <strong>pixels</strong>, <strong>grayscale</strong>, labeled 0 through 9. The goal is to train a neural network that can correctly identify which digit an image contains.</p><p>This post covers the full pipeline data loading, model architecture, training, and evaluation with detailed explanations of the underlying concepts at each step.</p><p>Final test accuracy: <strong>97.59%</strong></p><p><strong><em>GitHub: </em></strong><a href="#"><strong><em>github.com/Vandanareddy2/mnist-digit-classifier</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/0*ca8epzXichPKuGCh.png" /></figure><h3>Data Loading and Preprocessing</h3><pre>transform = transforms.Compose([<br>    transforms.ToTensor(),<br>    transforms.Normalize((0.1307,), (0.3081,)),<br>    transforms.RandomRotation(10)<br>])</pre><pre>train_data = datasets.MNIST(<br>    root=&quot;./data&quot;,<br>    train=True,<br>    download=True,<br>    transform=transform<br>)</pre><p>Three transformations are applied to every training image:</p><p><strong>ToTensor()</strong> converts the raw PIL image into a PyTorch tensor and scales pixel values from [0, 255] to [0.0, 1.0]. Smaller input values produce smaller activations, which leads to more stable gradient flow during backpropagation.</p><p><strong>Normalize(0.1307, 0.3081)</strong> centers the pixel values around 0 using the actual mean and standard deviation of the entire MNIST dataset. Centered inputs allow gradients to flow more symmetrically through the network, which speeds up convergence.</p><p><strong>RandomRotation(10)</strong> randomly rotates each training image by up to 10 degrees. This is data augmentation by artificially increasing the diversity of training examples so the model learns that digit identity is invariant to small spatial transformations. A slightly tilted 7 is still a 7.</p><p><strong>Augmentation </strong>applies to training data only. The test set uses only ToTensor and Normalize as evaluation should reflect unmodified real-world conditions.</p><h3>The DataLoader</h3><pre>train_loader = DataLoader(train_data, batch_size=32, shuffle=True)<br>test_loader = DataLoader(test_data, batch_size=32, shuffle=False)</pre><p>Rather than processing all 60,000 images at once, the DataLoader feeds the model in batches of 32. With a batch size of 32:</p><pre>60,000 ÷ 32 = 1,875 weight updates per epoch<br>1,875 × 5 epochs = 9,375 total weight updates</pre><p>Smaller batches mean more frequent weight updates, which generally leads to faster and more stable convergence compared to updating once per epoch on the full dataset.</p><p>shuffle=True randomizes image order at the start of each epoch, preventing the model from learning patterns based on data ordering rather than digit content.</p><p>Each DataLoader iteration yields:</p><ul><li>images → shape [32, 1, 28, 28] (batch, channels, height, width)</li><li>labels → shape [32] (one integer label per image)</li></ul><h3>Model Architecture</h3><pre>class MNISTClassifier(nn.Module):<br>    def __init__(self):<br>        super(MNISTClassifier, self).__init__()<br>        self.flatten = nn.Flatten()<br>        self.fc1 = nn.Linear(28 * 28, 128)<br>        self.relu1 = nn.ReLU()<br>        self.fc2 = nn.Linear(128, 64)<br>        self.relu2 = nn.ReLU()<br>        self.fc3 = nn.Linear(64, 10)</pre><pre>    def forward(self, x):<br>        x = self.flatten(x)<br>        x = self.fc1(x)<br>        x = self.relu1(x)<br>        x = self.fc2(x)<br>        x = self.relu2(x)<br>        x = self.fc3(x)<br>        return x</pre><p>The model is a <strong>feedforward neural network</strong> and also called a <strong>Multi-Layer Perceptron (MLP).</strong> It inherits from nn.Module, which provides PyTorch&#39;s internal machinery for parameter tracking, training/eval mode switching, and gradient computation.</p><h3>Flatten</h3><pre>Input:  [32, 1, 28, 28]<br>Output: [32, 784]</pre><p>Linear layers require 1D input. Flatten unrolls the 28×28 pixel grid into a vector of 784 numbers: one value per pixel.</p><h3>Linear Layers</h3><p>Each nn.Linear layer computes:</p><pre>output = (input × weights) + bias</pre><p>The weight matrix for fc1 has shape [784, 128] 100,352 learnable parameters in this layer alone. During training, these parameters are adjusted after every batch to reduce prediction error.</p><p>The architecture progressively reduces dimensionality <strong>784 → 128 → 64 → 10</strong>. Each compression forces the model to retain only the most informative features and discard noise. By the final layer, the 784-dimensional pixel space has been distilled into 10 class scores.</p><h3>ReLU Activation</h3><pre>f(x) = max(0, x)</pre><p><strong>ReLU </strong>sets all negative values to 0 and passes positive values unchanged. Without a non-linear activation function between layers, stacking multiple linear layers is mathematically equivalent to a single linear layer regardless of depth and the transformations eventually collapses into one. ReLU breaks this equivalence and allows the network to learn non-linear decision boundaries.</p><h3>Output Layer</h3><p>The final nn.Linear(64, 10) outputs 10 raw scores, one per digit class. These are called <strong>logits</strong>. No activation function is applied here because CrossEntropyLoss applies <strong>Softmax </strong>internally. More importantly, negative logits carry meaningful information like a large negative score for class 3 means the model is highly confident the input is not a 3. Applying <strong>ReLU </strong>would destroy this signal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQY44GZpevVt0YRKAlsOgw.png" /></figure><h3>Forward Pass-Shape Trace</h3><pre>[32, 1, 28, 28]  ← input batch<br>      ↓ Flatten<br>[32, 784]<br>      ↓ Linear(784→128) + ReLU<br>[32, 128]<br>      ↓ Linear(128→64) + ReLU<br>[32, 64]<br>      ↓ Linear(64→10)<br>[32, 10]          ← output logits</pre><h3>Loss Function</h3><pre>criterion = nn.CrossEntropyLoss()<br>loss = criterion(predictions, labels)</pre><p><strong>CrossEntropyLoss </strong>measures the divergence between the model’s predicted probability distribution and the true label distribution. Internally it combines two operations:</p><ol><li><strong>Softmax </strong>: converts raw logits into a probability distribution that sums to 1</li><li><strong>Negative log likelihood</strong> : computes the penalty based on the predicted probability assigned to the correct class.</li></ol><p>The penalty is asymmetric: a high-confidence wrong prediction produces a much larger loss than an uncertain prediction. This drives the model toward both accuracy and calibrated confidence.</p><p>A useful initialization check: a randomly initialized model on a 10-class problem should produce a loss close to log(10) ≈ 2.303. If your initial loss deviates significantly from this, it indicates a problem with your model setup or data pipeline.</p><h3>Backpropagation and Optimization</h3><pre>optimizer = torch.optim.Adam(model.parameters(), lr=0.001)</pre><pre># inside training loop<br>optimizer.zero_grad()<br>loss.backward()<br>optimizer.step()</pre><h3>Backpropagation</h3><p>During the forward pass, <strong>PyTorch </strong>builds a computation graph which is a record of every mathematical operation from input to loss. loss.backward() traverses this graph in reverse using the chain rule, computing the partial derivative of the loss with respect to every learnable parameter. These derivatives are the gradients as they indicate the direction and magnitude of change needed to reduce the loss.</p><h3>Gradient Zeroing</h3><p>PyTorch accumulates gradients rather than overwriting them. Without calling optimizer.zero_grad() at the start of each batch, gradients from previous batches compound with the current batch&#39;s gradients, producing incorrect and increasingly noisy updates. Always zero gradients before each backward pass.</p><h3>Adam Optimizer</h3><p><strong>Adam (Adaptive Moment Estimation)</strong> maintains per-parameter adaptive learning rates based on the history of gradient magnitudes:</p><ul><li><strong>First moment</strong> (exponential moving average of gradients): tracks gradient direction</li><li><strong>Second moment</strong> (exponential moving average of squared gradients): tracks gradient magnitude</li></ul><p>Parameters with consistently large gradients receive smaller updates; parameters with small or infrequent gradients receive larger updates. This makes Adam robust to sparse gradients and less sensitive to the learning rate hyperparameter compared to vanilla <strong>SGD</strong>.</p><p>lr=0.001 is the standard default for <strong>Adam </strong>and works well for most problems without tuning.</p><h3>Training Loop</h3><pre>def train(model, train_loader, epochs=5):<br>    criterion = nn.CrossEntropyLoss()<br>    optimizer = torch.optim.Adam(model.parameters(), lr=0.001)</pre><pre>    for epoch in range(epochs):<br>        total_loss = 0</pre><pre>        for images, labels in train_loader:<br>            predictions = model(images)<br>            loss = criterion(predictions, labels)</pre><pre>            optimizer.zero_grad()<br>            loss.backward()<br>            optimizer.step()</pre><pre>            total_loss += loss.item()</pre><pre>        avg_loss = total_loss / len(train_loader)<br>        print(f&quot;Epoch {epoch+1}/{epochs} - Average Loss: {avg_loss:.4f}&quot;)</pre><p>Average loss per epoch is reported rather than the loss of the final batch. Averaging across all 1,875 batches gives a stable, representative measure of training progress. A single batch’s loss is too noisy to be meaningful on its own.</p><h3>Training Results</h3><pre>Epoch 1/5 - Average Loss: 0.2595<br>Epoch 2/5 - Average Loss: 0.1221<br>Epoch 3/5 - Average Loss: 0.0956<br>Epoch 4/5 - Average Loss: 0.0797<br>Epoch 5/5 - Average Loss: 0.0705</pre><pre>Test Accuracy: 97.59%</pre><p>Loss decreases consistently across all five epochs with no instability which indicates appropriate learning rate, batch size, and data pipeline configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QFeBe2tQXCsD4ORL4cZPiw.png" /></figure><h3>Evaluation</h3><pre>def evaluate(model, test_loader):<br>    model.eval()<br>    correct = 0<br>    total = 0</pre><pre>    with torch.no_grad():<br>        for images, labels in test_loader:<br>            predictions = model(images)<br>            predicted_digits = predictions.argmax(dim=1)<br>            total += labels.size(0)<br>            correct += (predicted_digits == labels).sum().item()</pre><pre>    accuracy = correct / total * 100<br>    print(f&quot;Accuracy: {accuracy:.2f}%&quot;)<br>    return accuracy</pre><p>model.eval() switches the model to inference mode. Layers like Dropout and BatchNorm behave differently during training versus inference and eval() ensures correct behavior during evaluation.</p><p>torch.no_grad() disables gradient computation. Since no weight updates occur during evaluation, building the computation graph is unnecessary. This reduces memory usage and speeds up inference.</p><p>Accuracy is computed across all 10,000 test images, data the model never encountered during training. Evaluating on training data measures memorization, not generalization. The test set is the only honest measure of real-world performance.</p><p><strong>97.59% accuracy. </strong>The model correctly classifies 9,759 out of 10,000 unseen handwritten digits.</p><h3>Saving and Loading</h3><pre># Save<br>os.makedirs(&quot;../models&quot;, exist_ok=True)<br>torch.save(model.state_dict(), &quot;../models/mnist_model.pth&quot;)</pre><pre># Load<br>model = MNISTClassifier()<br>model.load_state_dict(torch.load(&quot;../models/mnist_model.pth&quot;))</pre><p>state_dict() returns a dictionary mapping each layer&#39;s parameter names to their learned tensor values. Saving the state dict rather than the full model object avoids dependency on Python&#39;s pickle format and keeps the saved file independent of the codebase structure.</p><p>To load, the model architecture must be instantiated first as the state dict provides only the weights, not the architecture itself.</p><h3>Summary</h3><p><strong>Architecture : MLP (784→128→64→10)</strong>; Simple, interpretable baseline</p><p><strong>Activation : ReLU</strong>; Computationally efficient, avoids vanishing gradients</p><p><strong>Loss : CrossEntropyLoss</strong>; Standard for multi-class classification</p><p><strong>Optimizer : Adam (lr=0.001)</strong>; Adaptive learning rates, robust default</p><p><strong>Batch size : 32</strong>; Balance between update frequency and stability</p><p><strong>Epochs : 5</strong>; Sufficient convergence without overfitting</p><p><strong>Augmentation : RandomRotation(10°)</strong>; Improves robustness</p><h3>Potential Improvements</h3><p><strong>Validation split</strong> : adding a held-out validation set allows monitoring of generalization during training, enabling early stopping when validation loss begins to increase.</p><p><strong>Convolutional layers</strong> : CNNs process spatial structure directly by applying learned filters across local pixel neighborhoods. For image classification tasks they consistently outperform fully connected networks and typically achieve 99%+ on MNIST.</p><p><strong>GPU acceleration</strong> : moving the model and data tensors to a CUDA device with .to(device) can reduce training time significantly on compatible hardware.</p><p><strong><em>Full source code: </em></strong><a href="#"><strong><em>github.com/Vandanareddy2/mnist-digit-classifier</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5745d65b152" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Executing Database Stored Procedures from Spring Boot APIs]]></title>
            <link>https://medium.com/@vvandanapdev/executing-database-stored-procedures-from-spring-boot-apis-308176cb1a97?source=rss-eabee9c19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/308176cb1a97</guid>
            <category><![CDATA[jdbc]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[mysql-stored-procedures]]></category>
            <dc:creator><![CDATA[Software Engineer]]></dc:creator>
            <pubDate>Tue, 24 Feb 2026 15:01:12 GMT</pubDate>
            <atom:updated>2026-02-24T15:01:12.798Z</atom:updated>
            <content:encoded><![CDATA[<p>In the Spring Boot ecosystem, we are trained to believe that <strong>business logic</strong> belongs in <strong>Java</strong>. We build Controllers, Services, and Repositories. We map Entities and use <strong>ORMs </strong>like <strong>Hibernate </strong>because we want to keep our logic in Java, where it’s type-safe, testable, and comfortable.</p><p>But there is a fundamental inefficiency in this model: <strong>it relies on moving data to the code.</strong></p><p>Most of the time, this is fine. But when you need to <strong>process massive datasets</strong> or perform <strong>complex</strong>, <strong>atomic operations</strong>, dragging thousands of rows over the network just to filter them in your Service layer is a <strong>performance killer.</strong></p><p>This is where Stored Procedures come in. They aren’t just <strong>“legacy tech”</strong>; they are a mechanism for flipping the execution model. Instead of bringing the <strong>data to the code, you send the code to the data.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_nwQh3iVeBdneRj-gG_fdw.png" /></figure><h3>The Shift in Gravity</h3><p>When you implement a stored procedure, you are admitting that the <strong>“gravity” </strong>of your data is too strong to move.</p><p>In a standard Spring application, a complex operation might involve:</p><ol><li><strong>Fetching a list of objects (Network IO).</strong></li><li><strong>Looping through them in memory (CPU/RAM usage).</strong></li><li><strong>Updating their state.</strong></li><li><strong>Saving them back one by one (Network IO).</strong></li></ol><p>A stored procedure condenses this into a <strong>single RPC call</strong>. You send the parameters , “Recalculate for User X”, and the database engine executes the logic internally. It accesses the tables <strong>directly from disk or cache,</strong> performs the logic, and commits the result. Zero network latency for the data itself.</p><h3>The Role of Spring Boot</h3><p>When you use stored procedures, your Spring application changes its behavior. It stops being the <strong>“worker” </strong>and becomes the <strong>“dispatcher.”</strong></p><p>The Service layer doesn’t perform the business logic anymore; it manages the execution flow.</p><ul><li><strong>The Interface:</strong> You often trade complex JPA entity graphs for simpler JdbcTemplate calls or specific @Procedure definitions. The code becomes blunt and directive: <strong>&quot;Execute this, here are the inputs.&quot;</strong></li><li><strong>The Transaction:</strong> This is the most critical part. Even though the logic runs in the database, Spring usually owns the transaction boundary. You need to ensure your @Transactional annotations propagate correctly so that if the Java code crashes immediately after the procedure returns, the database changes are rolled back.</li></ul><h3>The Trade-offs</h3><p>If they are so fast, why don’t we use them for everything? Because they come with a heavy <strong>“maintainability tax.”</strong></p><p><strong>1. The “Split Brain” Problem:</strong> Your business logic gets fragmented. Half of it lives in your <strong>Git repository (Java),</strong> and the other half lives in your database schema <strong>(PL/SQL or T-SQL). </strong>This makes it harder to see the “full picture” of your system just by reading the code.</p><p><strong>2. The Debugging Black Box:</strong> When a Java service fails, you get a stack trace. You can step through it in your IDE. When a stored procedure fails, you often get a generic error code. You can’t set <strong>breakpoints </strong>inside the database from IntelliJ. You lose the immediate feedback loop that modern developers rely on.</p><p><strong>3. Vendor Lock-in:</strong> Java is portable. SQL dialects are not. If you write complex logic in T-SQL (SQL Server) and then try to migrate to PostgreSQL, you have to rewrite your business logic.</p><p>Stored procedures are a specialized tool, not a default architecture.</p><p>Use them when:</p><ul><li><strong>Performance is critical</strong> and network latency is the bottleneck.</li><li><strong>Data integrity is paramount</strong> and needs to be enforced at the lowest level.</li><li><strong>Multiple applications</strong> (non-Java) access the same database and need shared logic.</li></ul><p>Avoid them for standard <strong>CRUD </strong>operations or complex business rules that change frequently. Keep the logic in Java where it’s easier to test and change, and only push it to the database when the physics of data movement leaves you no other choice.</p><p>Let’s go through a simple example to understand…<br>1. We begin with a <strong>simple schema</strong> here.</p><pre>CREATE DATABASE sp_demo;<br>USE sp_demo;<br><br>CREATE TABLE users (<br>    id INT PRIMARY KEY,<br>    name VARCHAR(100),<br>    email VARCHAR(100)<br>);<br><br>INSERT INTO users VALUES<br>(1, &#39;Alice&#39;, &#39;alice@gmail.com&#39;),<br>(2, &#39;Bob&#39;, &#39;bob@gmail.com&#39;);</pre><p>At this stage, the database contains <strong>state </strong>but no <strong>encapsulated logic.</strong><br>A standard Spring application would issue SELECT queries directly against this table.</p><p>2. Instead, we introduce a<strong> stored procedure:</strong></p><pre>DELIMITER $$<br><br>CREATE PROCEDURE get_user_by_id(IN user_id INT)<br>BEGIN<br>    SELECT id, name, email<br>    FROM users<br>    WHERE id = user_id;<br>END $$<br><br>DELIMITER ;</pre><p>3. With the database defined, the Spring Boot application must establish a <strong>JDBC connection.</strong></p><p>Make sure you have spring-boot-starter-jdbc, spring-boot-starter-web, and the MySQL driver mysql-connector-j in your pom.xml</p><pre>spring.datasource.url=jdbc:mysql://localhost:3306/sp_demo<br>spring.datasource.username=username<br>spring.datasource.password=password<br>spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver</pre><p>4. Executing the Stored Procedure from Spring Boot</p><p>With the database exposing a <strong>callable routine,</strong> the application’s responsibility changes. It no longer constructs SELECT statements. It <strong>invokes </strong>a database program.</p><p>Rather than using a full <strong>ORM abstraction</strong>, the example uses JdbcTemplate to <strong>execute </strong>the procedure directly:</p><pre>@Repository<br>public class UserRepository {<br><br>    private final JdbcTemplate jdbcTemplate;<br><br>    public UserRepository(JdbcTemplate jdbcTemplate) {<br>        this.jdbcTemplate = jdbcTemplate;<br>    }<br><br>    public User getUserById(int id) {<br>        return jdbcTemplate.queryForObject(<br>                &quot;CALL get_user_by_id(?)&quot;,<br>                new Object[]{id},<br>                (rs, rowNum) -&gt; {<br>                    User user = new User();<br>                    user.setId(rs.getInt(&quot;id&quot;));<br>                    user.setName(rs.getString(&quot;name&quot;));<br>                    user.setEmail(rs.getString(&quot;email&quot;));<br>                    return user;<br>                }<br>        );<br>    }<br>}</pre><p>First, the application <strong>does not embed SQL logic</strong>. It issues a single CALL statement. The procedure encapsulates the query. The database owns execution strategy, index usage, and data retrieval.</p><p>Second, the ResultSet is mapped explicitly into a domain object. There is <strong>no ORM t</strong>ranslating entity graphs or generating dynamic SQL. The data flow is transparent and controlled.</p><p>5. Introducing the Service Layer</p><pre>@Service<br>public class UserService {<br><br>    private final UserRepository userRepository;<br><br>    public UserService(UserRepository userRepository) {<br>        this.userRepository = userRepository;<br>    }<br><br>    public User getUserById(int id) {<br>        return userRepository.getUserById(id);<br>    }<br>}</pre><p>6. Exposing the Operation Through an API</p><p>The stored procedure becomes reachable through a REST endpoint:</p><pre>@RestController<br>@RequestMapping(&quot;/users&quot;)<br>public class UserController {<br><br>    private final UserService userService;<br><br>    public UserController(UserService userService) {<br>        this.userService = userService;<br>    }<br><br>    @GetMapping(&quot;/{id}&quot;)<br>    public User getUser(@PathVariable int id) {<br>        return userService.getUserById(id);<br>    }<br>}</pre><p>7. Running the Application</p><p>Start the Spring Boot application and invoke:</p><pre>GET http://localhost:8080/users/1<br><br>Response:<br>{<br>  &quot;id&quot;: 1,<br>  &quot;name&quot;: &quot;Alice&quot;,<br>  &quot;email&quot;: &quot;alice@gmail.com&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*cn3V1KTBwsHEQt5udQVg9A.png" /></figure><p>Here, the application did not execute a SELECT statement directly. It issued a <strong>CALL get_user_by_id(?)</strong>.</p><p><strong>Stored procedures</strong> are not outdated. They are simply tools, and like any tool, they make sense in the right situation. When <strong>performance </strong>matters or when <strong>data integrity </strong>must be enforced as close to the database as possible, they can be incredibly effective.</p><p>At the same time, they come with<strong> trade-offs. </strong>Business logic becomes <strong>split </strong>between Java and the database. <strong>Debugging </strong>is <strong>less transparent</strong>. <strong>Portability </strong>across database vendors becomes harder. These are real costs that should not be ignored.</p><p>Spring Boot makes invoking stored procedures <strong>straightforward</strong>. The mechanics are simple. The real decision is <strong>not technical,</strong> it is <strong>architectural</strong>. The important question is not whether we can call a stored procedure, but whether the logic truly belongs in the database.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=308176cb1a97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Invisible Ad: The Illusion of Neutral Answer]]></title>
            <link>https://medium.com/@vvandanapdev/the-invisible-ad-the-illusion-of-neutral-answer-f276f6389e68?source=rss-eabee9c19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f276f6389e68</guid>
            <category><![CDATA[commercial]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[sponsored-content]]></category>
            <dc:creator><![CDATA[Software Engineer]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 15:02:30 GMT</pubDate>
            <atom:updated>2026-01-06T15:02:30.024Z</atom:updated>
            <content:encoded><![CDATA[<p>A few years ago, I searched for a credit card with <strong>specific cashback requirements</strong>. The first <strong>three results</strong> were <strong>sponsored links</strong> appearing before any <strong>organic matches</strong>, regardless of <strong>relevance</strong>. <strong>Banks had purchased that placement</strong>, and the <strong>ranking system prioritized their bid over my intent</strong>. We recognize this <strong>mechanism</strong>. The <strong>highest bidder</strong> takes the <strong>top slot</strong>, not the <strong>best solution</strong>. It is a <strong>transactional trade-off</strong> in search that we have, for the most part, <strong>silently accepted</strong>.</p><h4>The Shift from Selection to Acceptance:</h4><p>Now, consider the shift to <strong>AI-driven recommendations</strong>. The interface changes from a <strong>list of competing options</strong> to a <strong>singular, synthesized output</strong>. When I ask an AI for that same <strong>credit card recommendation</strong>, the <strong>visible friction of the marketplace</strong> disappears. I do not get a <strong>page of links</strong> with <strong>explicitly labeled sponsored placements</strong> that I can choose to ignore. I get a <strong>generated paragraph</strong>.</p><p>This shift matters because it trades <strong>transparency</strong> for <strong>convenience</strong>. It matters because <strong>AI systems</strong> move judgment from a visible <strong>marketplace</strong> into an internal <strong>weighted decision process</strong>, shaped by <strong>signals</strong>, <strong>priorities</strong>, and <strong>constraints</strong> the user cannot inspect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XF8pYAnfgiGShcX9-sqLIA.png" /></figure><h4>The Invisible Ad Layer:</h4><p>We tend to assume that because the <strong>“Sponsored” label</strong> is gone, the <strong>sponsorship itself is gone</strong>. But the <strong>economic necessity of monetization</strong> has not vanished; it has simply become <strong>structural</strong>. In the <strong>search era</strong>, the <strong>ad layer was distinct</strong>. It sat <strong>on top of the information</strong>, clearly <strong>demarcated by design</strong>. In the <strong>AI era</strong>, the <strong>ad layer is embedded into the information</strong>.</p><p>This creates a <strong>fundamentally different user relationship</strong>. The <strong>“ad” is no longer a distraction</strong> you can visually filter out; it is the <strong>advice itself</strong>. It manifests not as a <strong>banner</strong>, but as a <strong>subtle prioritization</strong>. It appears as the <strong>absence of a competitor</strong>, or the <strong>certainty with which a specific brand is recommended</strong>. The <strong>commercial intent</strong> is no longer a wrapper around the content; it has <strong>dissolved into the narrative</strong>, making it <strong>impossible to separate</strong> the helpful answer from the <strong>paid placement</strong>.</p><h4>The Illusion of Objectivity:</h4><p>This <strong>structural shift</strong> creates a <strong>distinct vulnerability</strong>. On a <strong>search engine</strong>, our engagement is <strong>active and inherently adversarial</strong>. We scan for the <strong>“Sponsored” tag</strong>. We skip the <strong>first few results</strong>. We <strong>cross-reference sources</strong>. We treat the results page as a <strong>marketplace</strong>, where everyone is trying to sell us something, and we navigate it with our <strong>guard up</strong>.</p><p>With <strong>AI</strong>, that <strong>defensive posture relaxes</strong>. The interface mimics a <strong>conversation with a neutral expert</strong>, quietly <strong>disarming our critical faculties</strong>. We assume the <strong>“best” recommendation</strong> is derived from <strong>objective calculation</strong>, not realizing that the calculation itself may be <strong>aligned with a commercial outcome</strong>. We are actively trading the <strong>visible clutter</strong> of the ad-supported web for a <strong>clean, conversational interface</strong> that <strong>quietly steers</strong> us toward the <strong>highest bidder</strong>. The risk is not just that we are <strong>being sold to</strong>, but that we <strong>no longer realize we are shopping</strong>.</p><h4>The Assumption of Neutrality:</h4><p>None of this is an argument against <strong>AI</strong>. It is an argument against treating its <strong>outputs as neutral by default</strong>.</p><p>We learned to navigate <strong>search engines</strong> by understanding that <strong>“best” often meant “best positioned”</strong>, and that positioning was <strong>influenced by money</strong>. AI <strong>compresses that process</strong>. It removes the <strong>visible clutter of the marketplace</strong>, presenting a result that feels <strong>cleaner and more objective</strong>. But the <strong>absence of noise</strong> does not mean the <strong>absence of incentives</strong>. It only means those incentives have moved from the <strong>surface to the system itself</strong>.</p><p>The <strong>“invisible ad”</strong> is not a <strong>failure of technology</strong>; it is a <strong>failure of assumption</strong>. When we stop asking <strong>why a recommendation appears</strong> and start accepting it as <strong>intelligence</strong>, influence no longer needs to <strong>announce itself</strong>. It simply becomes part of the <strong>logic we trust</strong>. The challenge is remembering that <strong>every output</strong>, no matter how <strong>fluent</strong>, is shaped by a system of <strong>weights and priorities</strong>. <strong>“Best” is rarely absolute</strong>. It is usually <strong>aligned with something</strong>. The question is whether that <strong>alignment is with us</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MtCBI5Hf0jpgZ8A9RSJ9sQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f276f6389e68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Data JPA Vs Hibernate Vs JDBC]]></title>
            <link>https://medium.com/@vvandanapdev/spring-data-jpa-vs-hibernate-vs-jdbc-dc51829309e8?source=rss-eabee9c19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc51829309e8</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[spring-data-jpa]]></category>
            <category><![CDATA[hibernate]]></category>
            <category><![CDATA[orm]]></category>
            <category><![CDATA[jdbc]]></category>
            <dc:creator><![CDATA[Software Engineer]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 15:02:27 GMT</pubDate>
            <atom:updated>2025-12-23T15:02:27.401Z</atom:updated>
            <content:encoded><![CDATA[<p>When I started learning backend development with Java and Spring, one thing confused me more than anything else: <strong>JDBC, Hibernate, and Spring Data JPA </strong>all seemed to be <strong>doing the same job</strong>.<br>Every tutorial or project I looked at used some combination of these three. Sometimes I saw raw <strong>JDBC </strong>code. Sometimes <strong>Hibernate</strong>. Most of the time, <strong>Spring Data JPA.</strong> That immediately raised a basic but important question.</p><ul><li>If <strong>JDBC </strong>already allows Java to talk to data, why does <strong>Hibernate </strong>exist?</li><li>And if <strong>Hibernate </strong>exists, why do we still need <strong>Spring Data JPA</strong> on top of it?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lq44dma3ZFt78-Lr0WkcNw.png" /></figure><p>At first, it felt like unnecessary layering. Three different technologies, all related to <strong>data access</strong>, all used in the same application. It wasn’t clear where one ended and the next began. The confusion cleared up once I stopped thinking of them as alternatives and started thinking about <strong>levels of abstraction</strong>.</p><p><strong>JDBC </strong>works at the lowest level. It expects the developer to write <strong>SQL</strong>, manage connections, and manually convert results into <strong>Java objects</strong>. It gives full control, but also full responsibility.</p><p><strong>Hibernate </strong>sits above <strong>JDBC</strong>. Instead of working with <strong>SQL </strong>and result sets, it lets you work with <strong>Java objects. </strong>Hibernate handles object mapping and <strong>SQL </strong>generation internally, while still relying on <strong>JDBC </strong>underneath to execute those queries.</p><p><strong>Spring Data JPA </strong>sits one level higher. It doesn’t replace <strong>Hibernate </strong>or bypass <strong>JDBC</strong>. It simplifies how <strong>Hibernate </strong>is used inside <strong>Spring </strong>applications by removing repetitive data-access code and standardizing common operations through repositories.</p><p>Seen this way, the roles stop overlapping. <strong>JDBC </strong>handles low-level communication. <strong>Hibernate </strong>handles object-relational mapping. <strong>Spring Data</strong> <strong>JPA </strong>handles developer convenience in <strong>Spring</strong>. Once I understood this separation, the stack finally made sense.</p><p>To make this abstraction clear in practice, I built a small realistic <strong>Spring Boot Application</strong> that uses <strong>Spring Data JPA</strong> on top of <strong>Hibernate</strong>, which in turn relies on <strong>JDBC </strong>to talk to <strong>MySQL</strong>.</p><p>The application follows a standard layered architecture:</p><p><strong><em>Controller → Service → Repository → Hibernate → JDBC → MySQL</em></strong></p><ol><li><strong>Entity Layer {User.java}</strong></li></ol><pre>@Entity<br>public class User {<br>    @Id<br>    private Long id;<br>    private String email;<br><br>    public User(){<br>    }<br><br>    public User(Long id, String email){<br>        this.id = id;<br>        this.email = email;<br>    }<br><br>    public Long getId() {<br>        return id;<br>    }<br><br>    public void setId(Long id) {<br>        this.id = id;<br>    }<br><br>    public String getEmail() {<br>        return email;<br>    }<br><br>    public void setEmail(String email) {<br>        this.email = email;<br>    }<br>}</pre><p>This class represents the <strong>domain model</strong> and maps directly to a <strong>database table</strong>. <strong>Hibernate</strong> uses this entity definition to understand how <strong>Java objects</strong> should be persisted as <strong>rows in MySQL</strong>. There is <strong>no SQL</strong> here; the mapping information is enough for Hibernate to <strong>generate queries internally</strong>, while still relying on <strong>JDBC under the hood</strong>.</p><p><strong>2. Repository Layer {UserRepository.java}</strong></p><pre>public interface UserRepository extends JpaRepository&lt;User, Long&gt; {<br>}</pre><p>The repository layer is where <strong>Spring Data JPA</strong> comes into play. By extending <strong>JpaRepository</strong>, common <strong>CRUD operations</strong> are provided automatically. Spring Data JPA <strong>translates repository method calls into Hibernate operations</strong>, removing the need for <strong>boilerplate data-access code</strong>.</p><p><strong>3. Service Layer {UserService.java}</strong></p><pre>@Service<br>public class UserService {<br>    private final UserRepository userRepository;<br>    public UserService(UserRepository userRepository) {<br>        this.userRepository = userRepository;<br>    }<br>    public User save(User user) {<br>        return userRepository.save(user);<br>    }<br>    public List&lt;User&gt; findAll() {<br>        return userRepository.findAll();<br>    }<br>}</pre><p>The service layer acts as an <strong>abstraction over the repository</strong>. Even though the logic is simple here, this layer exists to <strong>separate business concerns</strong> from HTTP and persistence concerns.</p><p><strong>4. Controller Layer {UserController.java}</strong></p><pre>@RestController<br>@RequestMapping(&quot;/users&quot;)<br>public class UserController {<br>    private final UserService userService;<br>    public UserController(UserService userService) {<br>        this.userService = userService;<br>    }<br><br>    @PostMapping<br>    public User create(@RequestBody User user) {<br>        System.out.println(&quot;USER RECEIVED: &quot; + user.getId() + &quot; | &quot; + user.getEmail());<br>        return userService.save(user);<br>    }<br><br>    @GetMapping<br>    public List&lt;User&gt; getAll() {<br>        return userService.findAll();<br>    }<br>}</pre><p>The controller layer handles <strong>HTTP requests and responses</strong>. It exposes <strong>REST endpoints</strong> and delegates all processing to the <strong>service layer</strong>. The controller does <strong>not contain persistence logic</strong>, SQL, or Hibernate-specific code. Its responsibility is limited to <strong>request handling and response mapping</strong>.</p><p><strong>5. Testing with Postman</strong></p><p><strong>Creating a user via post request:</strong><em> </em>The JSON payload is sent from Postman, received by the <strong>controller</strong>, passed through the <strong>service</strong>, persisted via <strong>Spring Data JPA</strong>, translated into SQL by <strong>Hibernate</strong>, and finally executed using <strong>JDBC</strong> against MySQL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CnBiZHcRcptxbpbdI8uMLQ.png" /></figure><p><strong>Fetching persisted data using GET request: </strong>This request confirms that the data was successfully stored in the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RteJmhfdrqnd6-Isgqtu0g.png" /></figure><p><strong>Project Structure: </strong>The project structure shown below follows a <strong>controller–service–repository</strong> pattern, separating HTTP handling, business logic, and data access as commonly seen in <strong>real-world Spring Boot applications</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*RwQj0Nf6P2_Yh5-Z5s3Zdg.png" /></figure><p><em>Understanding these layers helped me stop seeing Spring’s data stack as magic and start seeing it as a set of clearly defined tools, each solving a specific problem at a specific level.</em></p><blockquote>The full source code for this demo is available on <a href="https://github.com/Vandanareddy2/spring-data-jpa-hibernate-jdbc"><strong><em>GitHub</em></strong> </a>for reference.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc51829309e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[End-to-End XML to PDF Processing Using XSLT and Apache FOP]]></title>
            <link>https://medium.com/@vvandanapdev/end-to-end-xml-to-pdf-processing-using-xslt-and-apache-fop-9d12902da39a?source=rss-eabee9c19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d12902da39a</guid>
            <category><![CDATA[xml]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[xsl]]></category>
            <category><![CDATA[apache-fop]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Software Engineer]]></dc:creator>
            <pubDate>Tue, 16 Dec 2025 16:02:19 GMT</pubDate>
            <atom:updated>2025-12-16T16:02:19.918Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>The XML to PDF Processing Flow</strong></h3><p>Generating a <strong>PDF </strong>from <strong>XML </strong>is not a direct conversion. It is a structured transformation process where data, layout, and rendering are handled in separate stages. At a high level, the flow looks like this:</p><p><strong><em>XML → XSLT → XSL-FO → Apache FOP → PDF</em></strong></p><p>Each stage has a clearly defined role. <strong>XML </strong>carries the data, <strong>XSLT </strong>maps that data to a layout, <strong>XSL-FO</strong> describes how the document should look, and <strong>Apache FOP</strong> renders the final <strong>PDF </strong>output.</p><p>This separation makes the process easier to maintain, easier to scale, and well-suited for enterprise systems where document formats change independently of the data they represent.</p><h3><strong>Understanding Each Stage in the Pipeline</strong></h3><p>The XML to PDF pipeline is built around a simple idea: <strong>each stage solves one specific problem</strong>. Instead of mixing data, layout, and rendering into a single step, the process is broken into clear, independent layers.</p><h4>1. XML: Structured Data</h4><p><strong>XML </strong>acts as the source of truth for the document. It contains only structured data and no information about how the document should look.</p><p>Because <strong>XML </strong>is schema-driven and easy to validate, it works well as an input format for documents such as invoices, reports, and statements. Changes to the data structure can be handled without affecting the visual layout of the final <strong>PDF</strong>.</p><h4>2. XSLT: Transformation Logic</h4><p><strong>XSLT </strong>sits between raw data and presentation. Its responsibility is to read the <strong>XML </strong>and transform it into a format that describes how the document should be laid out.</p><p>This transformation is rule-based. For example, an <strong>XML </strong>element representing a customer name can be mapped to a specific position or style in the document. <strong>XSLT </strong>does not generate a <strong>PDF</strong>. Instead, it produces another <strong>XML </strong>document focused entirely on layout instructions.</p><h4>3. XSL-FO: Document Layout</h4><p><strong>XSL-FO</strong>, or Formatting Objects, is an <strong>XML</strong>-based language used to define the visual structure of a document.</p><p>It describes concepts such as page size, margins, fonts, text blocks, and tables. <strong>XSL-FO</strong> does not contain business data or transformation logic. Its sole purpose is to describe how content should appear on the page. This separation allows layout changes to be made without modifying the data source or the transformation logic.</p><h4>4. Apache FOP: Rendering Engine</h4><p><strong>Apache FOP</strong> is responsible for converting <strong>XSL-FO</strong> into a final output format, most commonly <strong>PDF</strong>.</p><p>It interprets the formatting instructions defined in the <strong>XSL-FO</strong> document and renders them into a paginated, printable document. <strong>Apache FOP</strong> does not understand business data or transformation rules. It focuses entirely on rendering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HjwvE4jdUx2AF5uaJgzIew.png" /></figure><h3>Building an End-to-End XML to PDF Generation Service</h3><ul><li>Make sure <strong>Java</strong> version is <strong>17 </strong>or above and <strong>Maven</strong> is installed.</li><li>Create new Spring project from <a href="https://start.spring.io/"><strong>https://start.spring.io</strong></a></li><li>Add the following dependency to pom.xml file. This dependency adds <strong>Apache FOP</strong>, the engine responsible for generating the <strong>PDF</strong>.</li></ul><pre>&lt;!-- Apache FOP dependency for rendering XSL-FO content into PDF --&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;org.apache.xmlgraphics&lt;/groupId&gt;<br>    &lt;artifactId&gt;fop&lt;/artifactId&gt;<br>    &lt;version&gt;2.9&lt;/version&gt;<br>&lt;/dependency&gt;</pre><ul><li>Create an <strong>input.xml</strong> file containing the invoice data and relevant fields.</li></ul><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;invoices&gt;<br><br>    &lt;invoice&gt;<br>        &lt;invoiceNumber&gt;INV-1001&lt;/invoiceNumber&gt;<br>        &lt;invoiceDate&gt;2025-01-12&lt;/invoiceDate&gt;<br>        &lt;customerName&gt;John Doe&lt;/customerName&gt;<br>        &lt;amount&gt;250.00&lt;/amount&gt;<br>    &lt;/invoice&gt;<br><br>    &lt;invoice&gt;<br>        &lt;invoiceNumber&gt;INV-1002&lt;/invoiceNumber&gt;<br>        &lt;invoiceDate&gt;2025-01-13&lt;/invoiceDate&gt;<br>        &lt;customerName&gt;Jane Smith&lt;/customerName&gt;<br>        &lt;amount&gt;420.00&lt;/amount&gt;<br>    &lt;/invoice&gt;<br><br>&lt;/invoices&gt;</pre><ul><li>Create a file named <strong>stylesheet.xsl</strong>. This file defines how the data from the <strong>XML </strong>should be transformed into a printable document layout.</li></ul><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;xsl:stylesheet<br>        version=&quot;1.0&quot;<br>        xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;<br>        xmlns:fo=&quot;http://www.w3.org/1999/XSL/Format&quot;&gt;<br><br>    &lt;!-- Entry point for the transformation --&gt;<br>    &lt;xsl:template match=&quot;/&quot;&gt;<br><br>        &lt;fo:root&gt;<br><br>            &lt;!-- Define page layout --&gt;<br>            &lt;fo:layout-master-set&gt;<br>                &lt;fo:simple-page-master<br>                        master-name=&quot;A4&quot;<br>                        page-width=&quot;21cm&quot;<br>                        page-height=&quot;29.7cm&quot;<br>                        margin=&quot;2cm&quot;&gt;<br>                    &lt;fo:region-body/&gt;<br>                &lt;/fo:simple-page-master&gt;<br>            &lt;/fo:layout-master-set&gt;<br><br>            &lt;!-- Start page content --&gt;<br>            &lt;fo:page-sequence master-reference=&quot;A4&quot;&gt;<br>                &lt;fo:flow flow-name=&quot;xsl-region-body&quot;&gt;<br><br>                    &lt;!-- Loop through each invoice --&gt;<br>                    &lt;xsl:for-each select=&quot;invoices/invoice&quot;&gt;<br><br>                        &lt;fo:block font-size=&quot;18pt&quot;<br>                                  font-weight=&quot;bold&quot;<br>                                  space-after=&quot;10pt&quot;&gt;<br>                            Invoice<br>                        &lt;/fo:block&gt;<br><br>                        &lt;fo:block&gt;<br>                            Invoice Number:<br>                            &lt;xsl:value-of select=&quot;invoiceNumber&quot;/&gt;<br>                        &lt;/fo:block&gt;<br><br>                        &lt;fo:block&gt;<br>                            Invoice Date:<br>                            &lt;xsl:value-of select=&quot;invoiceDate&quot;/&gt;<br>                        &lt;/fo:block&gt;<br><br>                        &lt;fo:block&gt;<br>                            Customer Name:<br>                            &lt;xsl:value-of select=&quot;customerName&quot;/&gt;<br>                        &lt;/fo:block&gt;<br><br>                        &lt;fo:block space-after=&quot;15pt&quot;&gt;<br>                            Amount:<br>                            &lt;xsl:value-of select=&quot;amount&quot;/&gt;<br>                        &lt;/fo:block&gt;<br><br>                        &lt;!-- Space between invoices --&gt;<br>                        &lt;fo:block space-after=&quot;20pt&quot;/&gt;<br><br>                    &lt;/xsl:for-each&gt;<br><br>                &lt;/fo:flow&gt;<br>            &lt;/fo:page-sequence&gt;<br><br>        &lt;/fo:root&gt;<br><br>    &lt;/xsl:template&gt;<br><br>&lt;/xsl:stylesheet&gt;</pre><h4>Service Layer</h4><ul><li>With the <strong>XML </strong>structure and layout rules in place, the next step is to wire everything together using a service layer.</li><li>Create a class named <strong>PdfService</strong> to contain the logic for generating a <strong>PDF </strong>from <strong>XML </strong>using <strong>XSLT </strong>and Apache <strong>FOP</strong>.</li></ul><pre>@Service<br>public class PdfService {<br>    private static final Logger log = LoggerFactory.getLogger(PdfService.class);<br>    public void generatePdf(){<br>        log.info(&quot;Starting PDF generation&quot;);<br>        try{<br>            // Load XML file from classpath<br>            InputStream xmlInput =<br>                    getClass().getClassLoader().getResourceAsStream(&quot;input.xml&quot;);<br>            // Load XSL file from classpath (layout rules)<br>            InputStream xslInput =<br>                    getClass().getClassLoader().getResourceAsStream(&quot;stylesheet.xsl&quot;);<br>            if (xmlInput == null || xslInput == null) {<br>                throw new IllegalStateException(&quot;XML or XSL file not found in classpath&quot;);<br>            }<br>            log.info(&quot;XML and XSL files loaded successfully&quot;);<br><br>            // Initialize Apache FOP factory<br>            FopFactory fopFactory =<br>                    FopFactory.newInstance(new File(&quot;.&quot;).toURI());<br>            // Tell the printer where to write the PDF<br>            File outputFile = new File(&quot;src/main/resources/output.pdf&quot;);<br><br>            try(OutputStream out = new FileOutputStream(outputFile)){<br>                // Create transformer (XSLT Processor)<br>                TransformerFactory transformerFactory =<br>                        TransformerFactory.newInstance();<br><br>                Transformer transformer =<br>                        transformerFactory.newTransformer(new StreamSource(xslInput));<br>                // Create the printer (PDF mode)<br>                Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);<br>                // Connect everything and start the transformation<br>                Source src = new StreamSource(xmlInput);<br>                Result res = new SAXResult(fop.getDefaultHandler());<br><br>                transformer.transform(src, res);<br>            }<br>            log.info(&quot;PDF generated successfully at {}&quot;, outputFile.getAbsolutePath());<br>        }catch (Exception e) {<br>            log.error(&quot;Error occurred while generating PDF&quot;, e);<br>            throw new RuntimeException(&quot;PDF generation failed&quot;, e);<br>        }<br>    }<br><br>}</pre><p>The <strong>PdfService </strong>begins by logging the start of the <strong>PDF </strong>generation process. This initial log statement helps confirm that the service has been triggered and provides a clear entry point when tracing execution flow during debugging.</p><p>The service loads both <strong>input.xml</strong> and <strong>stylesheet.xsl</strong> from the classpath using the application’s class loader. These files represent the <strong>data source</strong> and the <strong>layout rules</strong> respectively. A validation check ensures that the process stops immediately if either resource is missing.</p><p>An instance of <strong>Apache FOP</strong> is initialized using a factory, preparing the rendering engine that converts formatting instructions into a <strong>PDF</strong>. At this stage, <strong>FOP </strong>is configured and ready, but no rendering has started yet.</p><p>The output location for the generated <strong>PDF </strong>is defined, and a file output stream is opened using a <strong>try-with-resources</strong> block. This approach guarantees that system resources are safely released once the <strong>PDF </strong>generation completes.</p><p>A <strong>Transformer</strong> is created using the <strong>XSL </strong>stylesheet, enabling the <strong>XML </strong>data to be processed according to the defined transformation rules. The transformation output is streamed directly into <strong>Apache FOP </strong>using a <strong>SAX result</strong>, eliminating the need for intermediate files.</p><h4>Controller Layer</h4><ul><li>Create the controller to trigger PDF generation. Create a controller class named <strong>PdfController</strong> to expose a REST endpoint that triggers the PDF generation process handled by the service layer.</li></ul><pre>@RestController<br>public class PdfController {<br>    private final PdfService pdfService;<br><br>    public PdfController(PdfService pdfService){<br>        this.pdfService = pdfService;<br>    }<br><br>    @GetMapping(&quot;/generate-pdf&quot;)<br>    public String generatePdf(){<br>        pdfService.generatePdf();<br>        return &quot;PDF generated successfully&quot;;<br>    }<br>}</pre><p>The controller uses <strong>@RestController</strong> to expose a <strong>RESTful </strong>endpoint that can be triggered from a browser or any <strong>HTTP </strong>client. This keeps the interaction simple and avoids the need for a <strong>UI</strong>.</p><p>The <strong>PdfService </strong>is injected through the constructor, allowing the controller to delegate all <strong>PDF</strong>-related logic to the service layer. This keeps the controller lightweight and focused only on request handling.</p><p>The <strong>/generate-pdf</strong> endpoint invokes the <strong>generatePdf()</strong> method in the service. This single call kicks off the entire <strong>XML-to-PDF </strong>pipeline without exposing internal implementation details.</p><ul><li>Application is up and running.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lk_gWIiuRtmjJ6fKkKyLFw.png" /></figure><ul><li>Once the application is running, accessing the <strong>/generate-pdf</strong> endpoint from the browser successfully triggers the <strong>PDF </strong>generation process and returns a confirmation message.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hxJ-2VjkLiOP0N7wHiAaoA.png" /></figure><ul><li>The final project structure highlights a clear separation of concerns, with the <strong>PdfController </strong>handling <strong>HTTP </strong>requests, the <strong>PdfService </strong>encapsulating the XML-to-PDF logic, and transformation resources such as <strong>input.xml</strong>, <strong>stylesheet.xsl</strong>, and the generated <strong>output.pdf</strong> organized under <strong>src/main/resources</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*VFlVE4T6imBJaJZKq_FQSA.png" /></figure><ul><li>This approach provides a clean, scalable way to generate PDFs from structured <strong>XML </strong>data using well-defined transformation and rendering stages. By separating <strong>data</strong>, <strong>layout</strong>, and <strong>rendering </strong>responsibilities, the solution remains <strong>flexible </strong>and easy to extend as document requirements evolve.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d12902da39a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>