<?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 Ravi on Medium]]></title>
        <description><![CDATA[Stories by Ravi on Medium]]></description>
        <link>https://medium.com/@rkdfx?source=rss-6dee7d87a712------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*f_B1hyDScsH5V029kLcUkw.png</url>
            <title>Stories by Ravi on Medium</title>
            <link>https://medium.com/@rkdfx?source=rss-6dee7d87a712------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 09:05:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rkdfx/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[Understanding Gradle Without Plugins]]></title>
            <link>https://medium.com/@rkdfx/understanding-gradle-without-plugins-772dc1b9291a?source=rss-6dee7d87a712------2</link>
            <guid isPermaLink="false">https://medium.com/p/772dc1b9291a</guid>
            <category><![CDATA[gradle-plugin]]></category>
            <category><![CDATA[gradle]]></category>
            <category><![CDATA[build-tool]]></category>
            <dc:creator><![CDATA[Ravi]]></dc:creator>
            <pubDate>Tue, 26 May 2026 18:32:39 GMT</pubDate>
            <atom:updated>2026-05-26T18:32:39.935Z</atom:updated>
            <content:encoded><![CDATA[<p>Most developers experience Gradle through plugins.</p><p>You apply:</p><pre>plugins {<br>    java<br>}</pre><p>and suddenly you get:</p><ul><li>build</li><li>test</li><li>jar</li><li>compileJava</li></ul><p>It feels like Gradle already knows how to build Java projects.</p><p>But remove all plugins and something interesting happens.</p><p>Gradle becomes extremely small.</p><p>At its core, Gradle is basically:</p><blockquote><em>a task execution engine.</em></blockquote><h3>Empty Gradle</h3><p>I started with an empty build.gradle.kts:</p><pre>// intentionally empty</pre><p>Then ran:</p><pre>./gradlew tasks</pre><p>There was no:</p><ul><li>build</li><li>test</li><li>jar</li></ul><p>because those tasks do not belong to Gradle core.</p><p>Plugins add them dynamically.</p><p>This was the first big realization:</p><blockquote><em>Gradle itself is mostly infrastructure.</em></blockquote><h3>Creating Tasks Manually</h3><p>Then I added my own tasks:</p><pre>tasks.register(&quot;compile&quot;) {<br>    doLast {<br>        println(&quot;Compiling...&quot;)<br>    }<br>}</pre><pre>tasks.register(&quot;test&quot;) {</pre><pre>    dependsOn(&quot;compile&quot;)</pre><pre>    doLast {<br>        println(&quot;Testing...&quot;)<br>    }<br>}</pre><p>Running:</p><pre>./gradlew test</pre><p>produced:</p><pre>&gt; Task :compile<br>Compiling...</pre><pre>&gt; Task :test<br>Testing...</pre><p>At this point Gradle stopped feeling magical.</p><p>I was explicitly building a task graph.</p><h3>Gradle Is Really a DAG Engine</h3><p>Underneath everything, Gradle builds a graph:</p><pre>compile ---&gt; test</pre><p>Then it:</p><ol><li>resolves dependencies</li><li>orders execution</li><li>runs tasks</li></ol><p>This is basically a DAG (Directed Acyclic Graph).</p><p>Once I saw this, Gradle started looking more like a workflow engine than a build tool.</p><h3>Plugins Are Just Task Generators</h3><p>The next realization was important.</p><p>Plugins mostly:</p><ul><li>create tasks</li><li>wire dependencies</li><li>apply conventions</li></ul><p>Conceptually, the Java plugin does something like:</p><pre>tasks.register(&quot;compileJava&quot;)<br>tasks.register(&quot;test&quot;)<br>tasks.register(&quot;jar&quot;)</pre><p>So this:</p><pre>plugins {<br>    java<br>}</pre><p>really means:</p><blockquote><em>mutate the Gradle model with Java-related tasks.</em></blockquote><p>That completely changed how I viewed plugins.</p><h3>Configuration vs Execution</h3><p>Another important concept appeared quickly:</p><pre>println(&quot;CONFIGURATION&quot;)</pre><pre>tasks.register(&quot;hello&quot;) {</pre><pre>    println(&quot;CONFIGURING TASK&quot;)</pre><pre>    doLast {<br>        println(&quot;EXECUTION&quot;)<br>    }<br>}</pre><p>Running:</p><pre>./gradlew hello</pre><p>showed:</p><pre>CONFIGURATION<br>CONFIGURING TASK</pre><pre>&gt; Task :hello<br>EXECUTION</pre><p>Gradle has two phases:</p><ul><li>configuration</li><li>execution</li></ul><p>The build script is not simply running commands.</p><p>It is building a model first.</p><h3>Final Insight</h3><p>Before this, I thought Gradle was:</p><ul><li>a Java build tool</li><li>a Maven replacement</li></ul><p>Now I think of it differently.</p><p>Gradle is really:</p><blockquote><em>a DAG-based task execution engine with a plugin system on top.</em></blockquote><p>The Java ecosystem is just one use case of that engine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=772dc1b9291a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning curl]]></title>
            <link>https://medium.com/@rkdfx/learning-curl-57796cefd8e3?source=rss-6dee7d87a712------2</link>
            <guid isPermaLink="false">https://medium.com/p/57796cefd8e3</guid>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[curl]]></category>
            <dc:creator><![CDATA[Ravi]]></dc:creator>
            <pubDate>Sun, 19 Apr 2026 10:15:58 GMT</pubDate>
            <atom:updated>2026-04-19T10:15:58.222Z</atom:updated>
            <content:encoded><![CDATA[<p>Most people think curl is complicated.<br>Too many flags. Weird syntax. Hard to remember.</p><p>But you don’t need most of it.</p><p>You just need enough to:</p><ul><li>hit an API</li><li>send some data</li><li>debug when things break</li></ul><p>That’s it.</p><h3>What is curl?</h3><p>curl is a command line tool which lets you send HTTP requests.</p><p>Instead of opening something like Postman, you just type a command and get the response.</p><p>So it’s basically:</p><ul><li>a browser without UI</li><li>a simple API client</li><li>a way to see the real response</li></ul><h3>Start simple</h3><p>If you just want to call an API:</p><pre>curl https://api.github.com/users/octocat</pre><p>This sends a GET request and prints the response.</p><p>Nothing else is needed.</p><h3>Sending data</h3><p>Most APIs need you to send data.</p><p>For example:</p><pre>curl -X POST https://api.example.com/login \<br>  -d &quot;username=ravi&amp;password=1234&quot;</pre><p>But usually APIs use JSON:</p><pre>curl -X POST https://api.example.com/login \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{&quot;username&quot;:&quot;ravi&quot;,&quot;password&quot;:&quot;1234&quot;}&#39;</pre><p>Shortcut:</p><pre>curl --json &#39;{&quot;username&quot;:&quot;ravi&quot;}&#39; https://api.example.com/login</pre><p>So the idea is simple.<br>You send data and you get a response.</p><h3>Headers</h3><p>You will use this mostly for authentication.</p><pre>curl https://api.example.com/data \<br>  -H &quot;Authorization: Bearer YOUR_TOKEN&quot;</pre><p>You can add multiple headers if needed.</p><pre>-H &quot;Header1: value&quot; -H &quot;Header2: value&quot;</pre><h3>Saving output</h3><p>By default curl prints everything.</p><p>If you want to save it:</p><pre>curl -o response.json https://api.example.com/data</pre><p>Downloading a file:</p><pre>curl -O https://example.com/file.zip</pre><h3>When things don’t work</h3><p>This is where curl becomes useful.</p><pre>curl -v https://api.example.com</pre><p>Now you can see:</p><ul><li>what request was sent</li><li>what response came back</li></ul><p>If there are redirects:</p><pre>curl -L https://example.com</pre><p>For scripts:</p><pre>curl -sS https://api.example.com</pre><h3>Authentication</h3><p>Basic auth:</p><pre>curl -u username:password https://api.example.com</pre><p>Token:</p><pre>curl -H &quot;Authorization: Bearer TOKEN&quot; https://api.example.com</pre><h3>Real workflow</h3><p>This is what you’ll actually end up doing.</p><p>Login → get token → call another API</p><pre>TOKEN=$(curl -s --json &#39;{&quot;user&quot;:&quot;ravi&quot;,&quot;pass&quot;:&quot;1234&quot;}&#39; https://api.example.com/auth \<br>  | jq -r &#39;.token&#39;)</pre><pre>curl -H &quot;Authorization: Bearer $TOKEN&quot; <a href="https://api.example.com/me">https://api.example.com/me</a></pre><p>Instead of manually copying tokens, you just chain commands.</p><h3>One simple way to remember</h3><p>Don’t try to remember everything.</p><p>Just think:</p><ul><li>call API → curl URL</li><li>send data → -d or --json</li><li>headers → -H</li><li>debug → -v</li></ul><p>That already covers most cases.</p><h3>Final thought</h3><p>Most people use curl by copying commands from DevTools.</p><p>But once you understand the basics, you don’t need any UI.</p><p>You can:</p><ul><li>try things quickly</li><li>debug faster</li><li>automate small workflows</li></ul><p>It’s simple. That’s the point.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57796cefd8e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Worktree Explained]]></title>
            <link>https://medium.com/@rkdfx/git-worktree-explained-0ebb7fd74733?source=rss-6dee7d87a712------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ebb7fd74733</guid>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[git-worktree]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Ravi]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 18:44:42 GMT</pubDate>
            <atom:updated>2026-02-21T18:44:42.006Z</atom:updated>
            <content:encoded><![CDATA[<p>Most people hear about git worktree, try it once, and either love it or get confused.</p><p>Let’s simplify it properly.</p><h3>What Problem Does Git Worktree Solve?</h3><p>Normally with Git it is:</p><ul><li>One repository</li><li>One working directory</li><li>One active branch</li></ul><p>If you switch branches, your files change.</p><p>If you are building a feature and suddenly need to fix a production bug, you either stash or commit unfinished work before switching.</p><p>That context switching adds friction.</p><p>git worktree allows you to have multiple working directories for the same repository at the same time.</p><p>One repository. Multiple active branches. No switching.</p><p>That is the core idea.</p><h3>The Mental Model</h3><p>Think of it like this:</p><pre>project/<br>project-feature-x/<br>project-hotfix/</pre><p>All of these share the same Git history.</p><p>But each directory has a different branch checked out.</p><p>You can run separate servers.<br>You can open separate IDE windows.<br>You can work in parallel.</p><p>No stashing required.</p><h3>Creating a Worktree</h3><p>If the branch already exists:</p><pre>git worktree add ../feature-x feature-x</pre><p>This means:</p><ul><li>Create a folder at ../feature-x</li><li>Checkout branch feature-x inside it</li></ul><p>If the branch does not exist yet:</p><pre>git worktree add -b feature-x ../feature-x</pre><p>This creates the branch and the working directory in one step.</p><p>The folder name does not need to match the branch name. It is just a directory.</p><h3>Where Does Git Store the Data?</h3><p>Worktrees are lightweight.</p><p>The new folder does not contain a full .git directory.</p><p>Inside the worktree you will see a .git file. That file points back to the original repository.</p><p>All commits, objects, and references are shared.</p><p>Additional metadata is stored inside:</p><pre>original-repo/.git/worktrees/</pre><p>So you are not cloning the repo. You are creating another checkout of the same repo.</p><h3>What If the Worktree Is Inside the Same Repo?</h3><p>Example:</p><pre>git worktree add worktrees/feature-x feature-x</pre><p>Now your structure looks like:</p><pre>repo/<br>  worktrees/<br>    feature-x/</pre><p>Git understands this is another working tree.</p><p>However, the worktrees/ folder may show up as untracked in git status.</p><p>To avoid noise, add it to .gitignore:</p><pre>worktrees/</pre><p>That keeps your main working directory clean.</p><h3>Removing a Worktree</h3><p>When you are done:</p><pre>git worktree remove &lt;path&gt;</pre><p>Do not manually delete the folder.</p><p>If you accidentally delete it manually, run:</p><pre>git worktree prune</pre><p>This cleans up stale metadata.</p><h3>Important Rule</h3><p>You cannot checkout the same branch in two worktrees at the same time.</p><p>Git will prevent it.</p><p>Each branch can only be active in one working directory.</p><h3>When Is Git Worktree Useful?</h3><p>It is most useful when:</p><ul><li>You need to work on a hotfix without touching your feature branch</li><li>You want to experiment without affecting your current work</li><li>You run multiple services locally tied to different branches</li><li>You want clean mental separation between tasks</li></ul><p>If you rarely switch branches, you probably do not need it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ebb7fd74733" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TestCafe MCP]]></title>
            <link>https://medium.com/@rkdfx/testcafe-mcp-47a4585087a2?source=rss-6dee7d87a712------2</link>
            <guid isPermaLink="false">https://medium.com/p/47a4585087a2</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[testcafe]]></category>
            <dc:creator><![CDATA[Ravi]]></dc:creator>
            <pubDate>Sun, 25 Jan 2026 10:03:07 GMT</pubDate>
            <atom:updated>2026-01-25T10:03:07.601Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>A comprehensive MCP server that bridges AI assistants with TestCafe testing capabilities, enabling AI-driven browser automation and test creation.</p><h3>Why I Built testcafe-mcp</h3><p>When MCP servers started gaining traction for AI-assisted development, I noticed Playwright had solid MCP support, but TestCafe didn’t have anything equivalent. We’ve started adopting Playwright for some newer work, but the majority of our existing test suite still runs on TestCafe. Switching frameworks wholesale just to get AI tooling wasn’t realistic.</p><p>So I built an MCP server for TestCafe.</p><h3>What it provides</h3><p>The server exposes five tools to AI assistants:</p><ul><li>create_test – Generate TestCafe test files from structured input or natural language descriptions, with support for fixtures, URLs, and action sequences (navigate, click, type, wait, assert)</li><li>execute_test – Run tests against real browsers (headless or headed), with configurable screenshots, video recording, multiple reporters, concurrency, and quarantine mode</li><li>validate_test – Check test code for syntax errors, structural issues, and best practices at basic, comprehensive, or strict validation levels</li><li>interact – Perform live browser interactions with real-time feedback, and optionally generate test code from those interactions</li><li>inspect_page – Analyze page structure, discover interactive elements, suggest optimal selectors, and generate test code snippets</li></ul><h3>Current status</h3><p>This is still early days. It doesn’t do everything the Playwright MCP does, no persistent browser sessions, network interception, or some of the fancier stuff yet. I’m focusing on getting the basics right first and adding more as I go.</p><p>If you find it useful or have ideas, feel free to open an issue or PR.</p><h3>Where to find it</h3><p>GitHub: <a href="https://github.com/rkdfx/testcafe-mcp">GitHub — rkdfx/testcafe-mcp</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47a4585087a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Colima: A Lightweight Alternative to Docker Desktop on macOS]]></title>
            <link>https://medium.com/@rkdfx/colima-a-lightweight-alternative-to-docker-desktop-on-macos-b0ee9537116a?source=rss-6dee7d87a712------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0ee9537116a</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[colima]]></category>
            <dc:creator><![CDATA[Ravi]]></dc:creator>
            <pubDate>Wed, 01 Oct 2025 17:20:29 GMT</pubDate>
            <atom:updated>2025-10-01T17:20:29.660Z</atom:updated>
            <content:encoded><![CDATA[<p>When I ran Docker Desktop or Rancher Desktop on macOS, my laptop would heat up, fans spin like crazy, and the battery drain was noticeable. I only needed containers for development, but the overhead was too much. That’s when I switched to <strong>Colima</strong>.</p><h3>Why Colima?</h3><p>Colima is short for <em>Containers on Lima</em>. It’s a container runtime for macOS that runs inside a Linux virtual machine, but unlike Docker Desktop or Rancher, it’s designed to be lean. No heavy GUI, no always-on processes eating resources in the background. Just a clean, CLI-driven setup that does exactly what you ask it to.</p><p>Think of it as Docker Desktop’s minimalist cousin: simple, fast, and focused on developers.</p><h3>Installing Colima</h3><p>If you’re on macOS with Homebrew, installation is just a few commands:</p><pre># install colima<br>brew install colima</pre><pre># docker client (required)<br>brew install docker</pre><p>That’s it — you’re ready to run containers without the bloat.</p><h3>Starting Colima</h3><p>You can start Colima with a single command, and even customize resources (CPUs, memory, runtime):</p><pre>colima start --vm-type vz --runtime docker --arch aarch64 --cpu 4 --memory 6</pre><p>We can use the short flags like -c for cpu, -m for memory:</p><pre>colima start -c 4 -m 8 --mount-type sshfs --vm-type vz</pre><h3>What those flags mean</h3><ul><li>--vm-type: virtualization type (vz on Apple Silicon, qemu on Intel)</li><li>--runtime: container runtime (docker or containerd)</li><li>--arch: VM architecture (like aarch64)</li><li>--cpu: number of CPUs to allocate</li><li>--memory: memory in GB</li><li>--mount-type: how files are mounted to VM</li></ul><p>Now we can we docker command as usual to pull, list and run containers</p><h3>Stopping and Cleaning Up</h3><p>Colima is just as easy to manage as it is to start:</p><pre># stop colima<br>colima stop</pre><pre># delete colima instance<br>colima delete</pre><h3>Why I Prefer It Over Docker Desktop</h3><ul><li><strong>Lightweight</strong>: Nothing runs unless you start it.</li><li><strong>Cooler &amp; quieter</strong>: My laptop doesn’t sound like it’s prepping for takeoff.</li><li><strong>Flexible</strong>: CLI flags let me fine-tune performance.</li><li><strong>Free &amp; open source</strong>: No license prompts, no nags.</li></ul><h3>Final Thoughts</h3><p>Colima isn’t flashy. it doesn’t come with dashboards or a GUI. But that’s exactly the point. It does one job and does it well: giving developers a lightweight, efficient container runtime.</p><p>If Docker/Rancher Desktop has ever made your laptop feel like a furnace, try <strong>Colima</strong>. It’s one of the simplest ways to reclaim performance without giving up the convenience of containers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0ee9537116a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>