Earlier quoted context omitted.
There is an excellent book I read recently called Developer Hegemony [0] which goes into depth on your first point. It calls the naive folks "optimists" -- unfailingly devoting themselves to the company ideal. It discusses two other factions, the pragmatists (come in, do work, get paid, go home) and the opportunists (take every opportunity to rise to the top). I recommend checking it out, and the author's blog too [1…
Sounds like a "nicer" rehash of the Gervais Principle. I haven't read Developer Hegemony, but from the looks of the author's blog, I would recommend "cutting out the middleman" and going straight to the source material: https://www.ribbonfarm.com/the-gervais-principle/
https://www.daedtech.com/ blog is (by quick reading of two posts) career advice for software developers. Very thoughtful, very well written and explicit, with analogies, anecdotes, and opinionated advice.
Whether that advice is any good, I'm the wrong person to judge; I still work as a wage slave (: basically he's telling everyone to go out as independent consultant and solve customers' problems instead of being "an entry in someone else’s Gantt chart. If you can’t autonomously deliver value with your expertise, then you’re specializing in the wrong thing."