paint-brush
What is so wrong with TDD?by@codonomics
8,857 reads
8,857 reads

What is so wrong with TDD?

by Karthik SirasanagandlaDecember 20th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This question was posted recently in <a href="https://www.quora.com/What-is-so-wrong-with-TDD/answer/Karthik-Sirasanagandla?srid=iaOA" target="_blank">Quora</a>. I read other’s answers first and felt an itch to share my thoughts on it. This post is a re-production of that answer:

Company Mentioned

Mention Thumbnail
featured image - What is so wrong with TDD?
Karthik Sirasanagandla HackerNoon profile picture

This question was posted recently in Quora. I read other’s answers first and felt an itch to share my thoughts on it. This post is a re-production of that answer:

I hate TDD (aka Test Driven Development) and think there are a lot of things wrong with it. Only some of them off my mind are below.

copyright: codonomics

In a team practicing TDD for quite a long time:

  1. the after-hours time of spending time in office, fixing bugs that keep propping every now and then is now gone.
  2. the opportunity for lonely bachelors to compete with family-oriented colleagues by working sleep-less in office is gone.
  3. the opportunity to intelligent code rather that readable/maintainable code is largely reduced.
  4. the easy opportunity to look hard-working is gone. I now have to really work hard to look smarter with this TDD, CI and stuff that forces discipline in what I do. I hate it like hell.
  5. the team’s dependency on me to understand code and its functionality is reduced big-time because the tests act as spec or documentation that talks for itself.
  6. the easy opportunity cost of amassing a ton of money from my clients for code-refactoring or feature change requests is minimized in a big way.
  7. the cost of manual testing in terms of time and money is greatly reduced. This practice killed so many QA jobs.
  8. the easy chance of developer blaming the QA for the bugs is a bygone era.
  9. evolutionary design and architecture is made possible, making me code everyday. Earlier I used to brag myself as Architect that doesn’t code.
  10. product go-live anxiousness is nowhere to be seen. Every release used to be a big event earlier.
  11. and on and on…

Teams that has refrained from TDD has the following points by their side:

  1. TDD is for the average Joe. My team has no place for him.
  2. TDD is so damn un-intuitive and really weird.
  3. TDD is for those junior developers who are not adept in up-front code design.
  4. My teams has just seasoned developers and domain experts who have been coding this product right from its inception. They are solid hackers. They don’t need TDD.
  5. TDD hurts our productivity.
  6. TDD is for those large process oriented enterprises. We don’t have the luxury of time.
  7. TDD is for those chaotic start-ups that has no processes in place.
  8. TDD is like buying all the lottery tickets to win the lottery money.
  9. TDD is no science. We don’t believe in things that not scientific.
  10. TDD is not magic. Bad test code is worse than bad regular code.
  11. TDD is so broken. I have not seen 2 TDD specialists solving a problem the same way and using same tool-set.
  12. and on and on..

Let us work together to stop the practice of TDD and bring the old world of chaos and uncertainty.

Devil: “Let us work together to stop the practice of TDD and bring the old world of chaos and uncertainty. Game?”

NOTE: This answer is a parody of the devil inside a developer. You’re expected to have a loud laughter reading this, instead of embracing it. You sure will do good to think about these points instead of dismissing it right away. May “peace to all” be our driving factor. Cheers!

Hoping you would care to show your love for this written work of mine by clicking claps and spread it on twitter. You may also up-vote this answer of mine in Quora. Thank you in advance for your encouragements :)