Of course, if you have a spouse and kids, this all gets easier once you have permanent resident status. Which used to be comparatively easy to get once you were married and you had offspring running around. I don't know what that process looks like now.
In practice, this kind of arbitrary screwing with people makes the US far too risky for educated, professional immigrants. So the scientists and the engineers and the company founders will just go elsewhere and build that country's economy. Which is fine, in the long run: If the US doesn't want to build the future or create new industries, then the voters have every right to vote for that. We've already decided we have no hope of competing with China in cars. And we'll need to cede more industries over time. As far as I can tell, the US has benefited heavily from poaching other people's scientists and engineers and professionals for decades now. But maybe the voters don't buy my argument, and they believe that chasing away skilled professionals and imposing 100% tariffs will lead to the future they want. It's a difference in beliefs about about what makes a country prosperous, and people have a right to vote based on their beliefs.
Even with this pretext though, it's a good example of a rule which punishes the law-obedient. People who intend to stay in the country illegally won't go abroad to reapply in the first place.
> You must currently be present in Ireland to be eligible to renew your permission to remain online. Applications submitted from outside Ireland will not be accepted.
Nigeria I'm less sure about. From what I can quickly google, they have a few classes of temporary work visas that aren't extendable (which isn't particularly unusual), although they do list at least some as "renewable upon regularization", and I'm unfortunately not well-versed enough in Nigerian immigration law to know what that means. For actual long-term immigration they have a document called a CERPAC, and the respective website [2] doesn't seem to mention whether you have to leave Nigeria to renew it, only that it's done online. Common sense suggests, however, that if you did have to leave, it would be mentioned somewhere on there, likely in big bold letters.
[1] https://www.irishimmigration.ie/registering-your-immigration...