You may have heard that the Moon is hopeless for gardening and for growing crops, and that Mars is the "go to" place for a prospective astronaut gardener. But is it? As it turns out, the Moon has some advantages over Mars, especially if you can plant your garden in a habitat or greenhouse on its summits of sunlight at the poles.
Yes, it is rather chilly there, at -30° C (-22 °F), but there is no weather, good or bad, and the vacuum of space is a good insulator (like a thermos flask). The temperature at the poles is steady, varying by only 10 °C (18 °F) up or down. That's warm enough to keep a well insulated habitat or greenhouse at a comfortable temperature of 20° C (68 °F) year round with sunlight piped in from solar collectors.