DEV Community

Discussion on: Do you write tests when exploring a new idea?

Collapse
 
alchermd profile image
John Alcher

Thank you for your insight. I agree on all your points, perhaps this is just a matter of deciding when to pull the trigger. I guess I just get too attached to my prototypes. I have this habit of hacking on top of a working prototype until it's "good enough" when I should have extracted out the core logic and restart with a solid base.

Collapse
 
sargalias profile image
Spyros Argalias

Fair enough. I think restarting or refactoring the prototype code would work as long as the code quality is good in the end, whatever works for you. Since I like TDD a lot, just like you, I tend to restart. However, I keep the prototype code nearby for reference and / or even copy some parts of it.