TJ Walker argues that while the brain isn't literally a computer, you can 'program' habits using repeated 'if-then' patterns. He explains that many external agents (for example, soft drink companies) program behavior through constant repetition, and that deliberately forming habits requires repeated, specific if-then planning.
Chapters
Imagine you could program your brain as if it were a computer. Imagine a whole series of if then statements. If this happens, then you will do this. Now, your brain is not exactly a computer and you can't just put one program in. The problem is our brains are like computers with multiple, multiple programs running all at once. Every single soft drink company in the world is programming our brains through constant repetition. Hey, when you're thirsty, put this sugar filled liquid down your throat. Don't drink water. If you want to program your brain, you can. But it's going to require constant repetition and really thinking in terms of if this happens, if you want this, then you will do this every single time.