Learning how to compost is one of the best gardening techniques for feeding plants and improving soil.