TDD should lead to better design - Deepstash
TDD should lead to better design

TDD should lead to better design

TDD should simplify code, not make it more complicated. If your code becomes harder to read or maintain when you make it testable, you're doing TDD wrong.

You can learn two things:

  • You can write decoupled code without dependency injection, and
  • Maximising code coverage results in diminishing returns.

More complex code often means more cluttered code. Cluttered code is a convenient place for bugs to hide. It's also easier to find things when there's less clutter.

3

1 read

CURATED FROM

IDEAS CURATED BY

jopineda

Illustrator

The idea is part of this collection:

Introduction to Web 3.0

Learn more about technologyandthefuture with this collection

The differences between Web 2.0 and Web 3.0

The future of the internet

Understanding the potential of Web 3.0

Related collections

Similar ideas to TDD should lead to better design

Undefined values can lead to compounding culture debt

When a company is small, the high degree of interaction between team members allows for efficient decisions without having values defined. But as a company starts to grow, communication and alignment around decision-making and hiring become increasingly challenging. Delegating responsibility beco...

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates