You should write tests first because this will catch edge cases in your functions and you can then write your functions to match the expected logic behaviour of your tests cases.
Don't be these people - it's funny because it's wrong:
You should write tests first because this will catch edge cases in your functions and you can then write your functions to match the expected logic behaviour of your tests cases.
Don't be these people - it's funny because it's wrong: