You don't need to be rich to get a working visa (assuming you are a competent software engineer -- plenty of places in Europe will hire you, and there is a path to citizenship).
You'll have to reassess what a "software engineer" salary looks like, but this is unironically part of the pathway towards living in a more-equal society where perhaps we shouldn't be earning 3x as much as everyone else just because we can invert a binary tree.