article thumbnail

When TDD Is Not a Good Fit

Henrik Warne

I like to use Test-Driven Development (TDD) when coding. However, in some circumstances, TDD is more of a hinderance than a help. Last week, I came across examples of where I developed new functionality without using TDD. Last week, I came across examples of where I developed new functionality without using TDD.

article thumbnail

TDD or Test-Last? One Thing at a Time

Xebia

That is precisely what TDD helps with. TDD to Separate Concerns At the core of TDD is its mantra : red, green, refactor. We’re fleshing out the problem piecemeal, specifying behavior we want of the system. Conclusion Do you need TDD to do this? TDD can help to separate concerns in the act of programming.

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

The Real Reasons for Doing Test-Driven Development ??

Xebia

Why do people apply TDD? What Are the Real Reasons for Doing TDD? Test-Driven Development (TDD) is a controversial topic amongst developers. After many years of doing TDD daily, I think part of the reason is that some people do not fully grasp the reasons behind TDD. TDD and the Values of XP.

article thumbnail

TDD saved the day

Xebia

To tackle each operation, I started with a small test, following the principles of Test-Driven Development (TDD). As an aside, TDD is an iterative workflow that involves describing a specific aspect you want to solve in terms of the programming language you’re using. Truly, TDD saved the day!

article thumbnail

Daily Crunch: After glitch causes a two-hour global outage, WhatsApp restores service

TechCrunch

Emergency response services have had a big boost of data thanks to advances in connected technology, with watches that can detect when their wearers are falling down and are experiencing trauma, cars that can pinpoint where their drivers are located and home systems that can transmit important data about fires when you cannot.

article thumbnail

Effective Software Testing – A Developer’s Guide

Henrik Warne

I have used randomly generated tests to very good effect before, but always on complete systems (like generating random calls between phones), never as property based tests. This chapter uses the example of converting Roman numerals to integers to show how TDD works. Not all situations benefit from TDD. Test doubles and mocks.

article thumbnail

TDD: primitive obsession ( part 3 )

Apiumhub

Last month we talked about TDD example in software development ( part 1 ) and TDD first cycle ( part 2 ). In this new TDD and primitive obsession article, we will focus on removing duplication and reinforcing the constructors of our entities, something key to have a robust system. TDD: primitive obsession.