-
Watch the bar turn green with TDD
When there are bugs, there is probably nothing more pleasing than figure out a way to: Write a failing unit test that reproduces that bug. Fix it and watch the bar turn green again, forever and ever 😉 If your goal is to stay green for all of your existing tests by using the Test Driven Development (TDD) approach, you need to mentally train yourself to: Think about the behavior around the next pieces of functionalities that you need in your code, then start moving towards your end goal in tiny steps and you will end up seeing tangible progress every moment. Write unit test first, they shouldn’t be written…