I found a big problem that remains unsolved in our industry - how to practice TDD in legacy code? I found the solution after many years.
I agree, the biggest challenge in TDD is applying it to code in real life.
Yes, many developers might understand TDD with katas, but not know how to apply in real life projects. That's why we need to practice on sandbox projects first.
Sandbox projects? What is this?
A Sandbox Project is an imitation of a Real Life Project. Sandbox Project is useful for practicing new technical skills. I wrote an article about setup instructions for the Sandbox Project https://journal.optivem.com/p/legacy-code-sandbox-project (it's part of my premium series TDD in Legacy Code https://journal.optivem.com/p/tdd-in-legacy-code-transformation)
Thank you!
You're welcome! Looking forward to our learning journey!
The solution is not to use TDD. It is ok to write tests without doing TDD.
Could you further elaborate on what you see as the pros & cons of TDD vs TLD?
I agree, the biggest challenge in TDD is applying it to code in real life.
Yes, many developers might understand TDD with katas, but not know how to apply in real life projects. That's why we need to practice on sandbox projects first.
Sandbox projects? What is this?
A Sandbox Project is an imitation of a Real Life Project. Sandbox Project is useful for practicing new technical skills. I wrote an article about setup instructions for the Sandbox Project https://journal.optivem.com/p/legacy-code-sandbox-project (it's part of my premium series TDD in Legacy Code https://journal.optivem.com/p/tdd-in-legacy-code-transformation)
Thank you!
You're welcome! Looking forward to our learning journey!
The solution is not to use TDD. It is ok to write tests without doing TDD.
Could you further elaborate on what you see as the pros & cons of TDD vs TLD?