How does farming work

I have now had a character who has survived for a very long time (2 whole days!!!). He needed a reliable source of food and he kept getting seeds, but i didn’t know how to use them. How does farming work?

For those who want to know how he died: I started a fire in a basement to cook food and i let it get rather large. I though the game was not complex enough to recognize the fire downstairs when i went to sleep above it. I woke up to a wall of fire, on all sides. Never underestimate the complexity of a rouge like.

Takes 3-4 weeks on default season length.