A software engineer wanted to resist the usual algorithms. So he created his own—and transformed his whole existence.