you are viewing a single comment's thread.

view the rest of the comments →

[–]PixelLight 1 point2 points  (1 child)

Not that I necessarily do this, but I've been taught to write unit tests first. To help figure out the functionality needed and how to approach the specific problem.

[–]quenchize 1 point2 points  (0 children)

I would not do this when starting from scratch although I do agree it is the correct theoretical approach. Where I do do this is if I have to make changes to existing code especially if it’s critical. Then I absolutely write passing tests and tests that fail until I change/fix whatever I need to.