While reviewing an article by James Clear, about how and why habits are formed, it struck me that the process is very similar to subroutines used in computer programming.
A subroutine is basically a small chunk of code that deals with repetitive tasks within a program. Therefore when writing a program it is much simpler for the programmer to use a subroutine, when required, rather than frequently typing the same code sequence over and over again.
From my programming days using subroutines in programming code was the invariably the best way to produce “elegant” code. Subroutines are good!
The human mind uses subroutines or habits all the time to make our life easier. According to research there is a habit cycle as follows:
Routine (the habit)
Reward (what you get out of it)
If the Reward is positive then the next time you receive the Trigger you will be reminded to repeat the habit.
Having read and thought about this it would appear that the mind is continually striving to create habits or routines to make our life easier. For example a complex task like driving a car is eventually made quite simple once the various habit / routines required to control the car are formed, allowing a person to drive in an almost trance like state. This is a big difference from the state of total concentration when learning to drive.
In fact the following statement is so true!
Your life today is essentially the sum of your habits