I had this same problem. Not sure where to start.
I pretty much had to take a class to get going, because it kicked my ass into gear with the stuff. The organized approach really helped me.
MIT OpenCourseWare has a section on Electrical Engineering and Computer Science. One of their basic intro to programming courses would be a good bet. If you’ve got a particular language in mind, there’s basic courses on many of the major ones.
I started with C++, myself, and I feel like it was a good choice, but choice of language really doesn’t matter as much as learning the basic ideas.