I just look past the details and for Foundation Series it is worth it. "The Moon is a Harsh Mistress" to me wasn't worth it, but I really liked "Starship Troopers" and think that is Heinlein's one book I recommend to everyone.
As for Starship Troopers, I think it's very clearly written and generally read as exactly the paean to military discipline Heinlein intended at the time (with Heinlein himself being the one who rowed back on the ideas in it having become more libertarian later in life)
What a frightfully bizarre turn.
I just finished Ringworld by Niven, and felt it had a similar problem, where the ending just kind of petered out. Maybe it is just the style back then?
I wonder what story you think could better be told as the second half of the book. Should the alien become a conformist and live happily ever after as a librarian?
I remember a book - forgot the name about a ressurrection attempt of a dead female CEO with psychology. It really tryied, and failed miserably, as it got stuck in the swampf of pseudo science that is psychology.
It's easy to chalk his early socialist inclinations as youthful vigor that maybe he regretted later in life, but that isn't the only way to read it. Despite what modern political in-fighting and team-formations may wish us to believe, socialist and libertarian are not mutually exclusive constructs (one is socioeconomic and the other sociopolitical, and there can be and is an intersection; UBI is very libertarian as an ideal/project). Up until the Red Scare and McCarthyism there were American socialists on both sides of the aisle. After the Red Scare there were still socialists on both sides of the aisle, but yes, most of them at that point were forced into the closet and out of mainstream discussion for many decades in the later part of the twentieth century.
But yes, a variety of politics are possible, not just two, and Heinlein certainly had his own odd one, agreed.
In Starship Troopers, of course, everyone gets a kind of UBI I think, but only those who serve in the military have the political franchise. That was a fairly early work of his, and he definitely kept getting weirder from there.