Now for left and right. Look at what's growing in neighbouring beds. Never plant onions next to beans; they inhibit each other. Potatoes and tomatoes are bad companions too, since they share the same diseases. And to stop the soil becoming exhausted, rotate your crops every year: cucumbers, for instance, do well where cabbage grew before.
And don't forget practicality: your beds should be laid out so that watering, tending, and harvesting are easy for you.
I talk about all of this and much more on my VKontakte page
"In the Village with Vika". Lots of useful tips there. Come and join!