DEV Community

Discussion on: Welcome Thread - v16

Collapse
 
nwaweru profile image
Ndirangu Waweru

Welcome!

Any tips on doing Test-Driven Development (TDD)? Have been thinking of going that direction in a while.

Collapse
 
jeancarloschavarriahughes profile image
Jean Carlos Chavarria Hughes

Hello, do you have a specific project in mind to implement such method.? As far as see the TDD is very useful for projects with medium - high complexity, specially when multiple people will touch the code and changes are not allowed to even move the production source code out of the expected.

If your project has a testing framework, the TDD will mean that you first write test cases and then functional code. It is nice to see the test cases failing at first and letting you know when you are doing wrong