It's always possible that your weren't that into programming first place, but also some jobs/projects/people just suck and may have given you a bad look into the field.
Your options are pretty straightforward:
1. Press on with programming, perhaps find another job or sub-field.
2. Do something else.
Like so many other things (and like your past projects, it seems) the devils in the details. There are a million ways to go about either option. Figuring things like this out is basically what life is. There is is a good chance you'll find a good path from here and far from now look back at this point as a inflection point on your life, where you took a turn for the better.
Your options are pretty straightforward:
1. Press on with programming, perhaps find another job or sub-field.
2. Do something else.
Like so many other things (and like your past projects, it seems) the devils in the details. There are a million ways to go about either option. Figuring things like this out is basically what life is. There is is a good chance you'll find a good path from here and far from now look back at this point as a inflection point on your life, where you took a turn for the better.