Good soil, proper sunlight, and regular harvesting are the three secrets to growing cucumbers in your garden. The soil should be rich, airy, and kept moist with a temperature of at least 20 degrees, through adding compost and manure. Cucumbers need six to eight hours of direct sunlight daily to build strong vines and a large crop. Cucumbers should be harvested every two days while still small and ripe to prevent them from developing a bitter taste as they grow larger.