If you want to be prudent, hold land, stocks, or bonds. Buy-and-forget with stocks, on average, outperforms both inflation, and actively managed portfolios.
until you need the money to pay big emergency bills, which at he wrong time can wipe you out no wonder there are half a million bankruptcies per year because of medical bills in the US
and 40% of people have no savin
and another significant portion doesn't have enough saving to spend time to invest in stocks, bonds and land(land also comes with perpetual high property taxes in most places in the US)
In the unlikely event you end up with giant medical bills, despite having health insurance, it doesn't matter whether your money was invested well, or poorly. The hospital will happily take every penny.
For the other overwhelming majority of life events, you should invest your savings prudently, instead of stuffing them into a mattress.
If you have no savings, this is a moot point - but so is inflation. Why do you care that money is losing value if you don't have any?
If anything, if you are in debt, you want inflation - because it lets you inflate your debt away.
hold what then? become investment manager in free time instead of my day job as software developer?