I don't know if you'll see this, but I hope you do.
I've struggled with addiction and I've made decisions that I'm ashamed of and disgusted with. There was a period of my life when I was also hopeless. I thought that I had lost everything. In a sense, it was true. (Rather, I destroyed most of what I had and subsequently lost the remaining pieces.)
Despite all of that, it does get better. It took me far too long to accept that.
The fact that you are posting here tells me that on some level you are ready to get better. Recognition of the problem begets hope.
Maintaining an attitude of "it doesn't get better" turns out to be a recursive function. Since lives are finite, the base case turns out to be total self-destruction.
At each time step, each recursive call, sustained hopelessness only begets more hopelessness.
Not only do the effects of addiction and hopelessness compound, but you get a first row seat. You watch the function expand, you see every call. You literally destroy yourself in a slow, humiliating, dangerous, and deliberate fashion.
A friend of mine liked to quote a man named Albert J. LaChance, he wrote: "Addiction is a slow form of suicide- suicide on the installment plan."
Whichever metaphor you choose, one thing is clear: changing your attitude is a necessary (but not sufficient) prerequisite for recovery.
You are obviously intelligent, so it should go without saying, there is no avoiding the fact a chemical addiction is a uniquely difficult problem to solve. Fortunately, it is a problem that a great deal of science is expended upon. And there are many ways to receive medical treatment.
Tedious self-help meetings and hollow platitudes are NO substitute for scientifically validated medical treatment. In your case, it is essential that you have medical intervention while you detox.
(Self-help is very helpful to some, and it does have a reported effectiveness of (last I heard) 10 - 50% (surely, a study carried out with utmost statistical rigor!)
Self-help meetings aren't right for me, but I will vouch for their occasional effectiveness.
Should you choose to follow the self-help branch of your recovery timeline, be aware that the self-help phase comes after the detox branch. All future recovery branches of your recovery timeline form after the medical detox node.)
You need medicine and science right now!
Alcohol withdrawal can kill late stage addicts. You wrote six months ago that you attempted a cold turkey solo-detox and experienced DTs. Those suck. They are also a sign that you need to be extra cautious in your recovery.
When you go to detox, go to a licensed recovery center where a doctor can monitor you. Usually this means a hospital equipped with mental health facilities. An ER will suffice if you are out of other options or are having seizures. You can also go to a rehabilitation center (with a competent medical staff)! The last option might start your detox and then segue into a 28 day (or longer) program.
Alcohol is perhaps the most dangerous drug to detox from. (Perhaps surprising to some, you won't die from heroin withdrawals.)
You can (and should) get medical leave from your employer for treatment. I'm fairly certain it's illegal for them to deny that. (Since you are a competent developer, I'm assuming you work at a company with benefits.)
If you do not have health insurance, please contact your local medicaid office.
Please do this. For your the mother of your child, for your kids. For the person in the future who you will come across who needs help with their addiction. But most of all, for you.
------------------------------------------------------------------------------------------
This last part is my favorite aspect of hacker news. I get to tell someone that they are wrong.
I used to have your attitude. I even attempted suicide. By the grace of faulty nylon, I'm still here.
"It doesn't get better." <- That quote is factually incorrect. I'm just one instance of its disproof.
Now, to break Hacker News guidelines with extreme prejudice:
IT DOES GET BETTER. PLEASE, PLEASE SEEK MEDICAL TREATMENT. IT DOES WORK. YOU ARE WRONG. NA NA NA NA NA.
If you don't post an email in your profile in the next few hours so that I can talk to you. Via email, skype, phone, whatever. I will reply to my comment with an email address so that you can contact me when you are ready to talk and/or seek treatment.