daily-email: add 2023-10-04
The best solution is the one that gets the tests to pass
This commit is contained in:
parent
1ebd1ec69e
commit
223daa2ee9
1 changed files with 21 additions and 0 deletions
21
src/content/daily-email/2023-10-04.md
Normal file
21
src/content/daily-email/2023-10-04.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
title: >
|
||||
The best solution is the one that gets the tests to pass
|
||||
pubDate: 2023-10-04
|
||||
permalink: >
|
||||
archive/2023/10/04/the-best-solution-is-the-one-that-gets-the-tests-to-pass
|
||||
tags:
|
||||
- software-development
|
||||
- automated-testing
|
||||
- test-driven-development
|
||||
---
|
||||
|
||||
As I said yesterday, there is no perfect solution or approach for every situation.
|
||||
|
||||
However, when doing test-driven development, there is a best solution.
|
||||
|
||||
The simplest thing that gets a failing test to pass.
|
||||
|
||||
Whether it's hard-coding a return value or putting the initial logic in a Controller, that's the objective.
|
||||
|
||||
Once the test is passing, you can refactor the code or continue writing tests, which will each have their own best solution.
|
Loading…
Add table
Add a link
Reference in a new issue