That's quite a jump of conclusion. Astonishing actually.
First of all, poors, worldwide, are the vast majority by any measure you pick.
So poors, becoming majority, is a no point. Moot.
Now, to another point. Poor prospering.
Have you ever considered that poor prospering can actually be a good thing? More consumption, more taxes being collected across, more wealth spread and circulating on the economy. More opportunities for the poor, and the rich, who will have a broader audience to become more rich?
And now to the subsides. Think this improvement on wealth circulation as a business, a good business outcome, shall we? As so many business, owned by riches, which make riches more rich, are already heavily subsided by governments across the globe for so many reasons (internal/external).
It's not such a big leap for yes, to advocate to some sort of subside to improve poor's situation.
Your comment sounds very classist. A true symptom of the very problem we're and will be dealing with.
Just a suggestion... I cannot attest for the code quality of the projects on the link below, but I find it easier to start learning from smaller code bases.
Currently I'm going trough the libs for parsing CSV files. Of them, I find this one particularly interesting: https://github.com/vincentlaucsb/csv-parser. Because of well-commented files.