<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sanket pathak</title>
    <description>The latest articles on DEV Community by sanket pathak (@sanketpathak64).</description>
    <link>https://dev.to/sanketpathak64</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F472213%2F612a6118-2d6a-4a9c-b830-1ef59cf23ef6.jpeg</url>
      <title>DEV Community: sanket pathak</title>
      <link>https://dev.to/sanketpathak64</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sanketpathak64"/>
    <language>en</language>
    <item>
      <title>Why TDD Feels Like a Trap (Sometimes): A Rant</title>
      <dc:creator>sanket pathak</dc:creator>
      <pubDate>Mon, 07 Apr 2025 14:02:04 +0000</pubDate>
      <link>https://dev.to/sanketpathak64/why-tdd-feels-like-a-trap-sometimes-a-rant-2f61</link>
      <guid>https://dev.to/sanketpathak64/why-tdd-feels-like-a-trap-sometimes-a-rant-2f61</guid>
      <description>&lt;p&gt;I come from a consulting background, having worked with companies similar to TW. Naturally, TDD was drilled into our brains. I’m well-versed with it.&lt;/p&gt;

&lt;p&gt;For those unfamiliar, Test-Driven Development (TDD) flips the usual process: instead of writing code first and tests later, you write the test first—watch it fail—then write just enough code to make it pass. Rinse, repeat.&lt;/p&gt;

&lt;p&gt;There are some solid advantages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It forces you to focus on the input/output contract of functions.&lt;/li&gt;
&lt;li&gt;You tend to write only the necessary code to pass the test—promoting cleaner, leaner implementations.&lt;/li&gt;
&lt;li&gt;You think through edge cases before jumping into implementation.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Sounds clean, right?&lt;br&gt;
But even after trying it seriously, I find myself not loving it. Here's why:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When clarity is missing, it's hard to TDD. At early stages of dev, I often don’t know the exact input/output—I’m still exploring the shape of the problem.&lt;/li&gt;
&lt;li&gt;It demands iteration. Write a test. Make it pass. Refactor. Repeat. But in real-world scenarios with time pressure and legacy systems, this ideal workflow can feel like a luxury.&lt;/li&gt;
&lt;li&gt;For known problems, where I already know what to build, TDD sometimes feels like a ceremony for ceremony’s sake.
When you already have clarity, writing the code first is simply faster and more intuitive.&lt;/li&gt;
&lt;li&gt;Mild OCD here. I hate seeing red tests or compilation errors, even temporarily. It bugs me more than it should, but it does affect my focus.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Recently, in an interview, I mentioned that I prefer writing code first and testing later—and that it's a controversial take. The interviewer laughed, said “Yeah, that’s controversial,” and shut down the conversation without hearing me out.&lt;/p&gt;

&lt;p&gt;That rubbed me the wrong way. Not because I wasn’t challenged—I'm open to being wrong—but because it felt dismissive.&lt;br&gt;
So, fellow devs: Am I missing something here? Are these real drawbacks, or am I just bad at sticking to the process?&lt;/p&gt;

&lt;p&gt;Would love to hear what other folks think.&lt;/p&gt;

</description>
      <category>testing</category>
      <category>tdd</category>
      <category>softwaredevelopment</category>
      <category>programming</category>
    </item>
    <item>
      <title>First post</title>
      <dc:creator>sanket pathak</dc:creator>
      <pubDate>Thu, 15 Oct 2020 08:19:34 +0000</pubDate>
      <link>https://dev.to/sanketpathak64/first-post-2ho4</link>
      <guid>https://dev.to/sanketpathak64/first-post-2ho4</guid>
      <description>&lt;h2&gt;
  
  
  What I Learned From Hacktoberfest
&lt;/h2&gt;

&lt;p&gt;Well It was my first hacktober fest and I quite enjoyed it.&lt;/p&gt;

</description>
      <category>hacktoberfest</category>
    </item>
  </channel>
</rss>
