I'm a developer with bipolar disorder. I gave a about it last year at Business of Software called Developers, Entrepreneurs and Depression that some founders have found useful:
http://businessofsoftware.org/2013/11/developers-entrepreneu...
http://businessofsoftware.org/2013/11/developers-entrepreneu...
Also struggling with starting something and the need to finish it the same night. That one hit hard. The anxiety while I work on something only goes away when I finish, so longer projects are impossible. To avoid the pain I just stop trying to work on them.
I'm trying to get better with medication and a doctor and it is certainly better than constantly thinking about suicide but I worry that I'm never going to be productive.
Thanks for so much for your talk. And having the courage to put such a big part of yourself out there to help others.