DEV Community


Discussion on: Does TDD slow you down or help you go faster?

alphpkeemik profile image
Mati Andreas

Eh, just a lucky match from accumulated experience :D. Nice to know there is a proven experiment to confirm that.

For beginners, testing is hard, mainly that their produced code is not SOLID enough. So they struggle to get enough coverage or test working at all because the unit is too big. With time and or guided help, they see the benefit of making units smaller and writing tests.

When starting implementation from a test, the assertion itself can be too big. Whit makes the unit non-SOLID.

An example: assertFlyToMoon().
Or starting from code as smaller units:

Enter fullscreen mode Exit fullscreen mode
Thread Thread
toureholder profile image
Touré Holder Author

Kudos for the example!

Forem Open with the Forem app