Should you have an online portfolio?

“Should I have an online portfolio?” I get asked this from time to time. If you are or wish to be a professional photographer then the short answer is YES. If you prefer just to be a keen enthusiast or hobbyist, then it’s a matter of choice. But where to post one? And what to have in it?