<?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 Kushal Mishra on Medium]]></title>
        <description><![CDATA[Stories by Kushal Mishra on Medium]]></description>
        <link>https://medium.com/@mishrakushal?source=rss-a7bc2cef6c6f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FeOuALg_XZPRrJDXC0jFOw.jpeg</url>
            <title>Stories by Kushal Mishra on Medium</title>
            <link>https://medium.com/@mishrakushal?source=rss-a7bc2cef6c6f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 21:21:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mishrakushal/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[How Agentic Coding is rewriting Software Engineering Principles]]></title>
            <link>https://mishrakushal.medium.com/how-agentic-coding-is-rewriting-software-engineering-principles-b5312ce5f15a?source=rss-a7bc2cef6c6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5312ce5f15a</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agentic-programming]]></category>
            <dc:creator><![CDATA[Kushal Mishra]]></dc:creator>
            <pubDate>Fri, 24 Apr 2026 06:31:01 GMT</pubDate>
            <atom:updated>2026-04-24T07:26:12.540Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Abstract software architecture diagram, dark slate background, modular blocks connected by lines, some blocks dissolving or being redrawn, cool blue and white with faint amber highlights, clean geometric style, no text, no people, feels like a blueprint being rewritten" src="https://cdn-images-1.medium.com/max/1024/1*gwYpFa_TwWtAjc7sdIhW4Q.png" /></figure><blockquote>Disclaimer: This is not a commentary on the state of the job market and whether or not we’re doomed. It’s a dive into how the core software engineering principles taught in textbooks are no longer directly applicable as they once were.</blockquote><p>Most software engineering principles were not found inscribed on cave walls in eastern Europe. They were practical responses to specific pain:</p><ul><li>programmers are expensive,</li><li>time is finite,</li><li>copying logic across a codebase means fixing the same bug in six places at once.</li></ul><p>Agentic coding is changing those constraints. And when the constraints shift, the principles built on top of them must also be re-examined. That is what this is.</p><h3>Part 1: The Old Rules, Revisited</h3><h4><strong>Technical Debt</strong></h4><p>The traditional definition of technical debt is fairly clean: when you make a quick, suboptimal decision today, you pay for it later in maintenance cost. You cut corners to ship fast, and eventually the interest compounds.</p><p>Agentic coding introduces a new form of debt that the traditional definition does not capture, often called <strong>code comprehension debt</strong>. With tools like Cursor, Claude, and Copilot, you can generate entire modules within minutes. The code is often syntactically correct, well-structured, and does what you ask (usually with a bit of handholding). And with Codex updates and Claude’s periodic free usage resets, we can now <strong>produce code much faster than we can realistically understand it.</strong></p><p>The debt is no longer always about the quality of the code. It’s about whether the humans in the loop actually understand what they shipped. A codebase full of AI-generated modules that nobody fully understands is not technically in debt by any classical measure. It might even be clean. But the moment something goes wrong at 2am, or a requirement changes, or a new engineer joins the team, you feel the weight of all that accumulated incomprehension.</p><blockquote>“The obvious pushback: good code is self-documenting. If the AI writes clean code with good names and structure, comprehension debt is just a skill issue.”</blockquote><p>Fair enough, partially. But self-documenting code tells you what something does, and not why it was built that way, what edge cases were considered, or why a particular approach was chosen over another. That context lives in the engineer’s head when they write code manually. When an agent writes it, that context often evaporates entirely. The code exists, but the understanding does not.</p><h4><strong>Refactoring</strong></h4><p>Refactoring, as classically defined, is improving the internal structure of code without changing its observable behaviour. Entire books have been written on it. It was never supposed to be a last resort, even though it’s treated as such.</p><p>Agentic coding inverts the economics of refactoring in a subtle but important way because now it is often cheaper to rewrite than to refactor. For many modules, a rewrite with modern context and a clean prompt produces a better result than carefully restructuring the existing code. It also saves more time.</p><p>This is not necessarily bad. But it changes what refactoring means in practice. If you are reaching for a rewrite instead of a gradual restructure, you need to be more disciplined about specs and behaviour documentation. You cannot refactor something you have not specified. If you rewrite a module without knowing what it was supposed to do, you do not get a refactor, rather you get a reimplementation that might miss subtle behaviours.</p><blockquote>“But rewrites are risky, and there’s a reason the advice has always been <strong>not</strong> to do them.”</blockquote><p>That advice was written in a world where rewrites took months. <a href="https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/">Joel Spolsky’s famous “never rewrite” post</a> was responding to complete product rewrites, not module-level rewrites done in an afternoon. The risk profile is different at different scales. Module-level rewrites, done with good tests and clear specs, are viable now. Full product rewrites are still risky for the same reasons they always were.</p><h4><strong>SOLID: SRP and OCP</strong></h4><p>The Single Responsibility Principle says a module should have one reason to change. The Open / Closed Principle says you should extend functionality rather than modify existing code.</p><p>Both of these made a lot of sense when changes were expensive. If modifying existing code was risky because the test coverage was patchy and the module was large, you <strong>wanted</strong> to minimise how often you touched it. Extension over modification was a safety strategy as much as a design philosophy.</p><p>Agentic coding changes the risk profile of modification. With good tests and a fast agent, modifying an existing module is not much riskier than extending it. The fear of change that OCP was partly designed to manage is less acute. SRP’s value still holds, but the size of what constitutes a single responsibility can now be smaller, because decomposing into smaller units is easy.</p><blockquote>“SOLID principles are about design clarity, not just risk management. They make code easier to reason about regardless of how easy changes are to make.”</blockquote><p>SRP still makes code easier to read and test, that part holds. But these principles were adopted because engineers had been badly burned by large, brittle codebases. That scar tissue shaped the rules. The scar tissue is still real. The urgency is just calibrated differently now.</p><p>So if the old principles are the diagnosis, here is what the treatment looks like.</p><h3>Part 2: Principles for the Agentic Era</h3><p>These are not replacements. Think of them as sitting one layer above the traditional principles, governing how you <strong>work with agents</strong> rather than how you write code directly.</p><p><strong>1. Specify Before You Generate</strong></p><p>In classical development, a fuzzy requirement would reveal itself in the struggle to implement it. Writing code <strong><em>forced clarity</em></strong>.</p><p>Agents will happily implement fuzzy requirements. They will fill in the gaps with assumptions, and those assumptions will be coherent and plausible and wrong. The discipline of writing clear, testable specifications before prompting an agent is now a primary engineering skill.</p><p>This maps loosely to design-before-code, but it is more specific. It is about treating the specification as the artefact instead of the code. Code is now cheap, because specs are what carry the intent.</p><p><strong>2. Own What You Ship</strong></p><p>This is the direct response to code comprehension debt. If you cannot explain what a piece of code does, why it does it that way, and what it will do under edge conditions, you do not own it. You are just hosting it.</p><p>This principle does not say you must write everything yourself. It says you must understand everything you ship. That means reading agent-generated code, questioning it, testing it at the edges, and being able to answer for it in a postmortem. Ownership is the new standard, and not the authorship.</p><p><strong>3. Test Coverage is Now a First-Class Deliverable</strong></p><p>When you write code manually, tests catch regressions. When an agent writes code, tests are still the only reliable signal that the agent did what you intended.</p><p>An agent that generates code and an agent that generates tests for the same spec are two independent checks on the same requirement. That redundancy is valuable. The discipline of writing tests before or alongside generation, and not as an afterthought, is now load-bearing in a way it was not before.</p><p><strong>4. YAGNI Still Applies. It Is Just Harder to Follow.</strong></p><p>YAGNI tells you not to build features you are speculating about. It keeps codebases lean and engineers focused on what is actually needed today.</p><p>Agentic coding does not invalidate this. However, it makes violating it easier to justify in the moment. If generating a feature takes an afternoon instead of a week, the internal resistance to speculation drops. You build the thing, try it, and if it does not work, you move on. The cost felt low because the time investment was low.</p><p>But YAGNI was never really about time. It was about ownership. Every module you add is a module someone has to understand, maintain, and eventually delete or defend. That cost does not change just because the code was generated quickly. A codebase full of cheap experiments that were never cleaned up loses its narrative.</p><blockquote>Why does this module exist? Is it still needed?</blockquote><p>These questions get harder when the threshold for adding things was artificially low. Now we are no longer failing YAGNI because building is too hard, but <strong>we fail it because building feels free.</strong></p><p><strong>5. Context Degrades. Document the “why” and not the “what”.</strong></p><p>Agents are stateless between sessions in ways that human memory is not. A human engineer accumulates context about a codebase over months. An agent starts fresh every time.</p><p>Good inline documentation used to mean explaining what the code does. In the agentic era, the more valuable documentation is why: why this approach was chosen, what alternatives were rejected, what constraints the code is operating under. That context helps agents make better decisions in future sessions. It also helps the humans who inherit the code. Comment the reasoning because the code explains itself.</p><p><strong>6. Reversibility Over Permanence</strong></p><p>When changes are cheap, the best hedge against a wrong decision is making it easy to undo. So you should</p><ul><li>design for reversibility from the start</li><li>prefer feature flags over hard deployments</li><li>keep modular boundaries tight to isolate blast radius</li><li>build interfaces that let you swap implementations without cascading rewrites</li></ul><p>This is not really “new” advice, but its priority has shifted. When everything can be rewritten quickly, the main cost of a bad decision is the time between making it and reversing it. And now that is what you are optimising against.</p><p><strong>7. Comprehension is a System Property, Not a Personal One</strong></p><p>In a world where multiple agents, multiple engineers, and multiple tools touch a codebase, you cannot rely on any individual’s mental model as the source of truth. The codebase must be legible at a system level. That means</p><ul><li>architecture documentation that stays current,</li><li>module boundaries that are obvious from the outside, and</li><li>naming conventions that make intent clear without requiring context.</li></ul><p>The goal is a codebase that any sufficiently capable agent or engineer can navigate without needing a guided tour.</p><p>This also means that <strong><em>intent engineering</em></strong> deserves the same attention we give to prompt engineering and context engineering. Prompts tell an agent what to do. Context tells it what exists. Intent tells it why any of it was built in the first place. Without that third layer, agents optimise locally and miss the bigger picture. And so do the engineers who come after you.</p><p>These seven principles do not replace the old ones. SOLID still holds and technical debt still accumulates. The fundamentals of good software design did not expire the moment agents got good at writing code.</p><p>Software engineering principles were always a response to pain. The pain is different now, so consequently the principles should be too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5312ce5f15a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[git pull --autostash]]></title>
            <link>https://mishrakushal.medium.com/git-pull-autostash-07724f7ae70d?source=rss-a7bc2cef6c6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/07724f7ae70d</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[programming-tools]]></category>
            <dc:creator><![CDATA[Kushal Mishra]]></dc:creator>
            <pubDate>Fri, 16 Jan 2026 03:04:08 GMT</pubDate>
            <atom:updated>2026-01-16T03:04:08.345Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PyfR9Nsmhd8sYZcjmyd-pg.png" /></figure><p><em>A simple flag to save you the trouble of handling stashes during pulls</em></p><p>Yesterday I wanted to pull the latest changes from the remote GitHub repo of my organisation, but I was already working on a new feature on my local machine.</p><p>Of course I could do the good ol’</p><pre>git stash<br>git pull origin main<br>git stash pop </pre><p>But that felt like too much effort. I now understand why companies are after replacing devs with AI.</p><p>Instead of spending ~20 seconds to execute 3 commands, I spent 15 mins searching for better ways to go about this same task, as is my birthright as a developer.</p><p>It was then that I came across</p><pre>git pull --autostash</pre><h4><strong>What the </strong><strong>--autostash flag does</strong></h4><ol><li>Creates a temporary stash of your <a href="https://www.kernel.org/pub/software/scm/git/docs/gitglossary.html#def_dirty:~:text=get%20with%20%22ls%22%20%3A%2D)-,dirty,modifications%20which%20have%20not%20been%20committed%20to%20the%20current%20branch.,-evil%20merge">dirty work</a>.</li><li>Performs the pull to get you the latest updates from the remote server.</li><li>After the sync is successful, it pops your work from the temporary stash created previously.</li></ol><h4>Cool. Any potential issues or risks to be mindful of?</h4><ul><li><strong>merge conflict resolution:</strong> If the remote changes overlap with your stashed work, the pop step will fail. You’ll then have to resolve the merge conflicts manually.</li><li><strong>forgetting your untracked files:</strong> By default, Git only stashes files it’s already tracking. So if you have brand-new files you haven’t git add-ed yet, they might get left behind or cause a collision.</li><li><strong>pull issue:</strong> If the pull itself fails (either due to a network error or a merge conflict), Git is smart enough <strong><em>not to pop</em></strong> your stash, which can be confusing if you expected your work to be right there.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07724f7ae70d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“How do websites work?”]]></title>
            <link>https://mishrakushal.medium.com/how-do-websites-work-6e520a43cf5b?source=rss-a7bc2cef6c6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e520a43cf5b</guid>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[website]]></category>
            <dc:creator><![CDATA[Kushal Mishra]]></dc:creator>
            <pubDate>Mon, 03 Jul 2023 07:15:46 GMT</pubDate>
            <atom:updated>2023-07-03T14:16:14.683Z</atom:updated>
            <content:encoded><![CDATA[<p>You use the Internet almost every day. And there’s a high chance that you visit websites. But have you ever wondered how you typing in <em>“cat pictures”</em> and hitting Enter results in your monitor being covered with images of cute cats? Well, we’ll go over that today!</p><figure><img alt="A man browsing the internet" src="https://cdn-images-1.medium.com/max/1024/1*WajTpOUqCfKTsEYCwpzIvw.png" /></figure><h4>“So, what exactly is a website?”</h4><p>In the simplest way possible, a website is <em>just a file</em>.</p><h4><strong><em>“What? Just a file?”</em></strong></h4><p>Yes! Any website on the internet is a file.</p><p>It can be as simple as this:</p><figure><img alt="Image of a simple website that contains only text and has no pictures" src="https://cdn-images-1.medium.com/max/1024/1*BiGrPVBcyPYFpnHVoryDbA.png" /><figcaption>Credits: University of York (<a href="https://www.york.ac.uk/teaching/cws/wws/webpage1.html">website</a>)</figcaption></figure><p>Or as complex as this:</p><figure><img alt="Image of the Reddit home page" src="https://cdn-images-1.medium.com/max/1024/1*9Ig1fJ3UfTGcCIhJz82wOA.png" /><figcaption>Credits: Reddit Homepage (<a href="https://www.reddit.com/">website</a>)</figcaption></figure><h4>“Then, how do we make it?”</h4><p>By writing code, of course. The process of making any website can be split into 2 parts:</p><ol><li>the front-end (what you see)</li><li>the back-end (what you don’t see)</li></ol><p>Let us first talk about front-end development.</p><p>The front-end of almost every website on the internet has 3 major components:</p><ol><li>HTML</li><li>CSS</li><li>JavaScript</li></ol><h4>“Woah! Sounds fancy…”</h4><p>Nah, not really. It’s pretty straightforward, honestly.</p><h3>HTML (HyperText Markup Language)</h3><p>In simple words, HTML is what’s left when you remove all the fancy animations, styling, and colours from the website.</p><p>It is the bare minimum required to make a website. So you can think of it as the website’s skeleton or structure.</p><p>Here’s a website with only HTML:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p-txgZlbya3uMOz703EWaw.png" /></figure><h4>“Ugh, that’s horrifying to look at. How do I change that?”</h4><blockquote>Why do you want it to change? You must learn to love things for what they are, and not what they could be.</blockquote><h4>“Okay, I’m leaving”</h4><p>NO, wait, listen. The answer you’re looking for is —</p><h3>CSS (Cascading Style Sheets)</h3><p>You can think of HTML as drawing. Then, that would make CSS equivalent to colouring.</p><p>A website doesn’t need to have CSS, but when used correctly, it does makes the website more user-friendly. Like Uncle Ben said —</p><blockquote>“With great style-sheets comes great aesthetics”</blockquote><p>…or something.</p><p>The point is, always remember to use matching colours, in the right proportions! CSS can <em>make or break</em> the look of your website.</p><p>The same website that we saw earlier, with CSS, now looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XJAJddgcLDhjiLzw0dbuJg.png" /></figure><h4>“Wow! That looks so much better. Are we done? Isn’t that the entire website?”</h4><figure><img alt="An image that says “well yes, but actually no”" src="https://cdn-images-1.medium.com/max/960/1*0ZgbUzfSordArY_EngNQ6g.jpeg" /></figure><p>For the website to actually <strong><em>do</em></strong> stuff, it needs just one more thing —</p><h3><strong>JavaScript</strong></h3><p>From our previous analogy, where HTML is like drawing, and CSS is colouring, then the only way to describe JavaScript is that it’s magic.</p><p>You made a poorly drawn picture of a cow (i.e. HTML) and then added colour (CSS). Now, guess what? You can make the cow give milk by adding JavaScript to it.</p><p>Every self-respecting website utilises JavaScript in some way, either for drop-drown menus or fancy background animations — you name it!</p><figure><img alt="A GIF of a dropdown menu" src="https://cdn-images-1.medium.com/max/800/1*6kJj_xFRs-BbJ2AUvzGWeQ.gif" /><figcaption>Source: <a href="https://www.pinterest.com/pin/dropdown-menu-animation--452400725081970942/">Pinterest</a></figcaption></figure><h4>“But, won’t all of this require a lot of code?! Is there an easier way?”</h4><p>Spoken like a true programmer! And, you know what, there is! Instead of writing our own code, we can use the code others have already written <strong><em>for</em></strong> <strong><em>us</em></strong>.<strong><em> </em></strong>How? By using —</p><h3>Libraries</h3><p>A library is a bunch of code someone wrote long ago to make everyone’s lives <strong><em>a bit</em></strong> easier.</p><p>In fact, even <strong><em>you</em></strong> can write your very own library and put it on the internet for others to use!</p><blockquote>You can do anything you put your mind to, kiddo</blockquote><h4>“Okay, I think I get it. So, all this was just for front-end development. What about the back-end?”</h4><p>Right on cue!</p><p>Like front-end development, back-end development also, has a few major components, all of which are necessary! Some of those components are:</p><ul><li>APIs</li><li>Databases</li><li>Servers</li></ul><h4>“…what”</h4><p>I’ll explain.</p><p>Let’s say you open Spotify and start playing your <em>Joji</em> playlist because it’s just “<em>one of those days”</em>. You click on a song, and it starts to play. Magic?</p><p><strong>NO!</strong> It’s —</p><h3>APIs (Application Programming Interface)</h3><p>An API is a software interface that takes your <em>“request”</em> to play <em>Glimpse of Us</em> and sends it to the Spotify servers.</p><p>The servers process the request, and then on your device, you hear the soothing voice of Joji. Awesome, isn’t it?</p><p>Hmm… Maybe it <strong><em>is</em></strong> a bit like magic! :D</p><figure><img alt="Animation of an API requesting a list of users from the server" src="https://cdn-images-1.medium.com/max/880/1*YcZzHhIlw-QJlMey8dlENw.gif" /><figcaption>Credits: <a href="https://dev.to/lydiahallie/cs-visualized-cors-5b8h">dev.to</a></figcaption></figure><h4>“But to whom are we sending this request? And, how do they have this song ready all the time?”</h4><p>The answer to your question is not “who” but <em>“what”.</em></p><p>Nobody is sitting “on the other side”, manually responding to your frantic song-changing. It’s actually a lifeless entity called —</p><h3>Servers</h3><p>Servers are a bunch of computers (and sometimes software) that respond to your 2 AM Netflix <em>requests</em> to watch FRIENDS.</p><p>They collect all these <em>“requests”</em> and process them. They are even connected to magic boxes called (<strong>*SPOILER ALERT*</strong>) databases that store all user and company data!</p><p>With the help of these magic boxes, the servers can respond to your requests at any time, <strong><em>all the time</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*245UOGTa8MAsIePGw7jI5Q.gif" /><figcaption>Credits: Marcin Sasin (<a href="https://dribbble.com/shots/5122311-Server">link</a>)</figcaption></figure><p>The big towering object in the above animation is a server.</p><h4>“I see! But what are these magic boxes you talked about?”</h4><h3>Databases</h3><p>A database is a collection of, well, data that can be accessed at any time.</p><p>The data can be simple things such as names, phone numbers, email ids but also, complex stuff like your favourite Taylor Swift songs!</p><p>Databases have a special language called <strong><em>SQL</em></strong> (Structured Query Language), that is used to get information via special commands called <em>queries.</em></p><figure><img alt="An image of a database showing multiple folders inside it" src="https://cdn-images-1.medium.com/max/512/1*BFewAcwBVEADdWdY-pA5vg.png" /><figcaption>Credits: CleanPNG (<a href="https://www.cleanpng.com/png-computer-icons-scalable-vector-graphics-database-p-7051691/">link</a>)</figcaption></figure><h4>“Woah… I don’t know what to say.”</h4><p>That’s alright. But hey! At least now, you know how most websites on the internet work. And if you want to know more, Google is your friend!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kImcmSnOZg0B3kKoDZipZg.png" /><figcaption>Credits: Warner Bros.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e520a43cf5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>