That may hold true for US (and even then there's a lot of variation in living expenses and affording things like education or healthcare), but it doesn't necessarily for many of the other countries out there. For example, i recently did a blog post on my earnings as a software dev in Latvia:
https://blog.kronis.dev/articles/on-finances-and-savingsIn short:
- i earn 1.5x the average salary/wage in my country
- that figure is approximately 1500 euros per month
To afford the cheapest VW Golf [0] (a popular car here), i'd need to save up 22'325 euros, which is the equivalent of 15 months' wages, or ~30 months with the ability to save 50% of what i make. It'd take me over 2 years to afford a new car, which is also why the used car market is so popular here.
To afford a house in my region of the country [1], i'd need to save up around 100'000 euros, which is the equivalent of 67 months' wages, or ~134 months with the ability to save 50% of what i make. It'd take me over 11 years to afford my own house, something for which i really don't have an answer - most people just rent apartments instead (also we're talking about countryside properties here, not the ones in cities).
Of course, it's not all bad, but how much money people in various careers make and how much PPP holds true in a globalized economy varies greatly, as expressed in that blog post of mine. Some countries are just poor and the people in them aren't well paid. Some companies are profitable but aren't incentivized to pay developers anything above what they can get away with - which is also why many of the WITCH companies have regional offices in my country, as we're one destination for outsourcing. As for how hard these careers are, it depends: some people are miserable working in software, but at the same time at least it isn't back breaking work.
Links:
[0] https://www.volkswagen.lv/lv/models/golf-8.html
[1] https://www.ss.lv/lv/real-estate/homes-summer-residences/lim...