So true. OP would attract more opportunity just by simply changing his attitude. With his current perspective he is only creating more of the same and attracting those with similar attitudes. The vicious cycle he describes is one of his own making and a self-fulfilling prophecy.
I bet you wrote this just so you can say "self-fulfilling prophecy", that sounds so cool! I would have done it too in your place so I guess .. guilty as charged!
He is not a slave to his job. At any moment he could quit. He disempowers his choice everyday. He has reasons not to quit which are rational. He could empower his choice to work and list all the benefits it provides.
That's as true as the protestant mentality of "it's the poor's fault for being poor". Along the strong belief lines of "if you've a problem, just pray to God and you'll get help, but you must really really believe in God". Or "buy this snake oil medicine and it'll cure you, but you must not disempower your belief into it's power of helping you". Now, if by sheer luck plus a lot of hard work I'm getting the problem solved / disease cured, then it was God / guy who knows how slaves should be doing. If I don't get my problem solved though, I didn't pray or believe hard enough or I die (almost did a few times and I'm not feeling that super well as a result of that). If I'm quitting my job and not get another one (which subjects me to the same slavery conditions as my former one, plus the penalty of having my skill level reset to "unqualified" - the default functioning mode for IT), then I have some 6m to 1.5y of runway before me plus my wife + kid become homeless. Now if it were just me, I'd be having a lot more runway, plus what's such a big deal to be homeless as long as you're overly confident you can bounce back? I've spoken to local homeless people when I was drunk (my most vulnerable moment) and far from hurting me, they were the only ones that protected me 100% of the times. Without robbing, beating or otherwise harming me in any way. So worst case if I end up like them, I just hope their kindness to me wasn't too caused by the obvious contrast in "billionaire walking the streets".
If he were simply to shift positional perspective with his employer and examine the attitude of an employee with an attitude as his current one, it would provide insight why he's not attracting the type of opportunities he sees as 'freedom from slavery.'
I am shifting positional perspective with an employer, just more of a homeless than a billionaire one. Think of me as a homeless employer trying to employ his way out of misery. I offered money ($1000 / month) and was laughed at. My homeless friends, sometimes I only bought them some crappy junk food and obviously didn't say that saved their life.. unless I could do that recurringly, for a long time. Well, $1000 buys a lot of crappy junk food but as you're saying, you gotta see the other end of the story as well. I'm paying a lot of money for my place and unfortunately, there's also a helluva more where these come from and also from where I want to be. And just not sure buying some meals or just being friendly to some otherwise nice guys would be worth my investment. Unless it's at least these money for a long, long time and it's not them but their children. I've talked to some of their children on the phone and at least a few of them migh be recoverable (for my get-out-of-this-galaxy purposes). Anyways, nobody's gonna do it for me or like they say in trading, they'd have done this already.
There are tons of coders out there, what's he bringing to the table other than a piss poor attitude? The only logical outcome is that with his current attitude, he gets fired from his job which he unconsciously has a desire to achieve.
I'm not a coder. Therefore your logic is invalidated from the start.