Move daily emails into the blog page

This commit is contained in:
Oliver Davies 2025-08-21 00:28:10 +01:00
parent be69398931
commit 1b8441608f
828 changed files with 9 additions and 196 deletions

View file

@ -0,0 +1,22 @@
---
title: >
Test-driven development makes you more productive
pubDate: 2023-07-15
permalink: >-
daily/2023/07/15/test-driven-development-makes-you-more-productive
tags:
- automated-testing
- test-driven-development
---
I think that test-driven development (TDD) makes you productive.
Firstly, you save time by not needing to switch from your code to a terminal or browser to test it.
But, just as importantly, TDD reduces procrastination. It's much clearer to see what the next steps are.
You're either thinking and designing your code when writing a failing test or fixing the test failures in the implementation code to get the test to pass. You can focus on each failure and message separately and get them to pass instead of thinking about the whole feature or the rest of the application.
Once you have a working test, you can focus on refactoring any code or moving on to writing the next assertion or the next test.
I think that achieving small tasks with short feedback loops using test-driven development makes it much easier to remain productive and focussed.