Most gardeners know the frustration well. You plant a row of lettuce in spring, it looks gorgeous for a few weeks, and then, almost overnight, it shoots skyward, turns bitter, and the harvest is over.