Link: Test && Commit || Revert

Jesse Warden - Sep 19 '22 - - Dev Community

Feeling masochistic? Want a tactical way to learn how to make frequent & smaller changes to your code base with confidence? Kent Beck of XP fame has a technique he's tried called test && commit || revert. It's nuts and horrible. I have to try it.

Here's how it works:

  1. write some code and commit it
  2. if the tests pass, your commit can live
  3. if the tests fail, your commit is reverted; all the code you wrote is deleted forever and you have to try again.

https://medium.com/@kentbeck_7670/test-commit-revert-870bbd756864

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .