I read/listened to some of Jonathan Stark's work. It was like a bolt of lightning came out of the sky and shook me out of my stupor.
The basic problem is that our entire profession is disconnected from the value we provide. We're often treated like ticket handling robots, and it's mostly incompetent business people doing that. Once you realize that sooo much of this stuff is out of your control, you look at work for what it is (for most people), basically trading dollars for hours while some clueless person steers the ship.
You can try to do better to understand how the code you provide connects to the value you provide, and you can improve your work to help provide more value. That's about it, really.
Clients will start micromanaging you / treating you poorly once they feel like the value they get from your work is less than what you're charging. This is a natural human reaction. It isn't your fault, and it isn't theirs. It's just the economic reality.
You can be a fantastic dev or a mediocre one, perhaps even a bad one. It still wouldn't matter. Value rules all. No need to feel bad.
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.