Alex Banul

Why you must use TDD now!

Stop finding bugs in production. TDD's 'test-first' approach forces you to write cleaner, more robust code from the start.

Why you must use TDD now!
#1about 3 minutes

The problem with traditional development cycles

Traditional development, where tests are written after implementation, often leads to bugs slipping through QA and into production.

#2about 3 minutes

Understanding the Red-Green-Refactor TDD cycle

TDD inverts the traditional process by first writing a failing test (Red), then writing just enough code to make it pass (Green), and finally cleaning up the code (Refactor).

#3about 8 minutes

Demo: Writing the first failing test for a health endpoint

The demo begins by creating a test for a server health endpoint, which fails because the endpoint and server configuration do not exist yet.

#4about 9 minutes

Demo: Implementing an addition feature using TDD

A calculator's 'add' endpoint is built by writing a failing test, implementing minimal code to pass, and then refactoring the test with multiple cases to ensure correct logic.

#5about 5 minutes

Evaluating the pros and cons of adopting TDD

TDD leads to more testable solutions and cleaner architecture but requires discipline and team buy-in to overcome the initial temptation to write implementation code first.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
BR
Benjamin Ruschin
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
WeAreDevelopers LIVE days are changing - get ready to take part
CH
Chris Heilmann
With AIs wide open - WeAreDevelopers at All Things Open 2025
Last week our VP of Developer Relations, Chris Heilmann, flew to Raleigh, North Carolina to present at All Things Open . An excellent event he had spoken at a few times in the past and this being the “Lucky 13” edition, he didn’t hesitate to come and...
With AIs wide open - WeAreDevelopers at All Things Open 2025

From learning to earning

Jobs that call for the skills explored in this talk.

Front-End QA Tester

Front-End QA Tester

REC Solutions Ltd
Charing Cross, United Kingdom

Python
Cypress
GraphQL
Selenium
JavaScript
+3
Java Software Engineer

Java Software Engineer

Test Driven Solutions
Edinburgh, United Kingdom

Intermediate
Java
MySQL
NoSQL
Scrum
Jenkins
+4