From what I understand from others who have battled addiction, you learn to get through one day at a time. When you deal with such a highly addictive drug like heroin, it's only harder not to pick up the needle again.
Hoffman's death is tragic, especially with his wife and kids losing him to drug addiction.