I used to ask myself this same question once, "how can I think like a programmer?" I actually didn't find any useful books or courses on this, just a couple of articles that hepled me a bit, I started from them, then on my own.
If you're interested:
This from freecodecamp blog
And this one
Hope you find them at least a bit useful.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.