Told myself well in advance that I'd quit 11 months in to my girlfriend's pregnancy (EDIT - obviously the residual effects are still there. I quit 8 months in to her pregnancy. This is what drugs do, kids.)
Since then (now almost a year later) my ability to comprehend and concentrate on technical things has improved a lot. I've learn things in web development that I just couldn't back then. Probably due to the fact I was a daily smoker for almost 20 years.