Actually there is some valid advice on dressing up a little because it helps with the work/life separation. I never did it because I like work and life blending (I enjoy teaching and doing research and I have zero decorum anyway) but psychologically, cues like your clothes can help set the mindset.
The same is true for location, too. Don't work from bed unless you want that shit keeping you up at night.