DEV Community

When Test-driven Development Clicks

Ben Halpern on November 09, 2018

Test-driven development (TDD) is a tremendous approach for writing reliable software programs, but it's not a tremendously intuitive one. I recentl...
Collapse
 
leightondarkins profile image
Leighton Darkins

It's okay to not TDD.

This is a close second for my TDD aha moment.

Collapse
 
ben profile image
Ben Halpern

Well didn't you hear that TDD is dead?

Collapse
 
chenge profile image
chenge

I prefer Test Support First not Test First.

Respect test value and design support test first, not much magic here we only need Dependence Injection, so we can mock when we need test.

So after verify our design can support test, we focus on code features. When need or happy we can write one or two tests.

TDD is too heavy word.

TSF no TF.

Collapse
 
jochemstoel profile image
Jochem Stoel

Sorry, off topic but not worth a new topic. How do we embed a dev.to post like that?

Collapse
 
somedood profile image
Basti Ortiz

You can do that by using Liquid tags. Type in {% link <insert the URL to your DEV.to post here> %} in the editor. Seek the Help section whenever you "Write a Post" for more built-in Liquid Tags for embedding content.

Collapse
 
edisonywh profile image
Edison Yap

Curious too!

Collapse
 
quii profile image
Chris James
Collapse
 
nektro profile image
Meghan (she/her)

How does one do TDD when the majority of the work is front-end web dev?

Collapse
 
dev_in_the_house profile image
Devin

Nice post