News for hackers. Stuff that matters.
Re:An Unexpected Benefit of Unit Tests by QuercusMax on Saturday January 21, 2023 @11:57PM (#34474454)
You commit and push your working code, then write a failing test and go home.
Re:An Unexpected Benefit of Unit Tests by uldo on Sunday January 22, 2023 @10:02AM (#34477985)
Yes, you are right about the technical aspect, but my comment was about psychology. Writing test and going to sleep is abit like asking a question to your friend and waiting for answer to the morning - it might get annoying.
Re:An Unexpected Benefit of Unit Tests by QuercusMax on Monday January 23, 2023 @11:26AM (#34490898)
Have you tried it? It's actually quite refreshing since you don't need to remember what you were doing in the back of your mind. The test is there for whenever you get back to it.