In other words, a programmer should invest a bit more away from software than average, a realtor should invest a bit more away from properties than average, a coal-miner should invest a bit more away from energy and mining, etc.
If you have your job, you can weather a stock-downturn, and if investments are solid, you can weather a period of unemployment by liquidating some, but if both hit trouble simultaneously then that's much much worse.