DEV Community

Discussion on: My first Coderetreat experience

Collapse
 
russ profile image
Russ

Hey Micheal, I'll be giving my best attempt to practice TDD. I'll just have to sit down and write out what the particular methods in the file are going to be and start writing my tests as I go down that list.

Collapse
 
michaelrice profile image
Michael Rice

It's pretty great when you get used to it! Really, really helps you think through what you're trying to accomplish before you start writing the implementation. At least me anyway.......... let us know how it goes with another dev.to post!

Thread Thread
 
russ profile image
Russ

That is true before I would just be like "ah I need this, oh and this, oh and this" and in the end, I avoid tests because everything works at that moment. I'll definitely be leaving an update in the near future as I refactor a project. Going from NoSQL to SQL and had like 0 tests.

Thread Thread
 
michaelrice profile image
Michael Rice

EXACTLY! Saves so much unnecessary design and catches both bugs and design mistakes early. That said, there are some instances where it's hard to do in practice. Thanks for sharing again Russ!