DEV Community

Discussion on: Can you describe how you visualize or form mental models around your work?

Collapse
 
tttfifo profile image
Todor Todorov

Here is what happened recently to me: I completely underestimated the complexity of one requirement and started coding all the abstractions coming out of my mind, hoping this will resolve the task. Of course, after few hours I realized that I am producing a pile of crap which does not correspond to the requirement at all. Here is how I mitigated this:

  • I sketched everything on a piece of paper
  • I coded all the tests based on my sketch
  • I produced the code which is able to pass the tests

Somewhere at this moment I reinvented the Test Driven Development, huh? LoL :)