There are a lot of 🔥 takes out there about Test-Driven Development (#TDD)

Let's bust 5 of the most common myths! 🧵 👇
Myth 1️⃣: TDD takes too long.

Yes, you will spend a bit more time upfront writing tests versus just writing production code.

However, typing is not the bottleneck for developers. Manually verifying a system works takes way longer.
Myth 2️⃣: TDD is just about writing tests.

With TDD, tests are the means to the end. TDD is all about writing production code in a different way.

1. Write a small, failing test.
2. Write just enough code to make the test pass.
3. Refactor.
Myth 3️⃣: 100% Code coverage is the goal.

With TDD, it's all about quality over quantity. Code coverage only tells you what code isn't covered.

It's very easy to write a test that doesn't actually cover a use case. Use code coverage tools carefully!
Myth 4️⃣: TDD replaces the need for QA.

TDD is a development technique. It does not replace the need for integration, functional and exploratory testing.
Myth 5️⃣: TDD means we don't need to do architecture.

Yes, you will think about architecture a bit differently when you do TDD. However, having a high-level idea of the system and software architecture is still important to ensure a cohesive codebase.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Alex Kates 👋

Alex Kates 👋 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @thealexkates

21 Aug
Extreme Programming (XP) is an agile framework that ...

1️⃣ Maximizes quality software
2️⃣ Improves quality of life for the development team
3️⃣ Thinks in terms of the "whole team"

New to XP? Checkout out 5 Essential XP Resources 🧵👇
1️⃣Extreme Programming Explained: Embrace Change - Kent Beck

amazon.com/Extreme-Progra…
2️⃣Planning Extreme Programming - Kent Beck & Martin Fowler

amazon.com/Planning-Extre…
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(