Why use a double boiler?
The theory behind a double boiler is that you will occasionally want to heat something, but very gently. When you make hollandaise sauce, you want to warm the egg yolks ever so slightly.
This improves their ability to form an emulsion. If you heat them too much, they'll actually lose their emulsifying properties, and if you really get them too hot, the proteins will curdle and you'll end up making scrambled eggs.
Similarly, when you're melting chocolate, heating it directly can affect its texture, which again has to do with the fact that chocolate is an emulsion of cocoa solids, fat, and sugar.
How do you use a double boiler?
With a double boiler, instead of the ingredients going into a pan on the stovetop directly over a heat source, we bring some water to a simmer in a pot and then fit a glass or metal bowl over the top of the pot. The steam from the simmering water heats the contents of the bowl.
When you do this, make sure the bottom of the bowl doesn't come into contact with the simmering water. There should be a gap between the water and the bottom of the bowl. Don't underfill the pot, however, because if all the water boils away, you'll just be heating a dry pan, which could damage it.
How should I get/make a double boiler setup?
You can purchase a dedicated double boiler insert, which is basically a metal colander without any holes in it. It has a handle, and the bowl is tapered so that it will fit over many different sizes of pans, and it has spouts to make pouring easier.
You can also get a double boiler set, where you get the pot and a flat-bottomed insert that fits into it, along with a lid that fits both the pot and the insert.
You can even use a smaller pot that fits into the larger one underneath, but this can be awkward since you have to hold the upper pot steady, so that it doesn't tilt over, leaving you only one hand for doing everything else. It'll work in a pinch, however, and the store-bought options are fine, but if you already have a pot and a stainless steel or glass bowl, that's really all you need.