What am I supposed to do when I get farmed?
Getting farmed is when one or more players attack you all day long.

Basics

The best defence: the cranny or in the case you happen to be a Gaul, combine it with a trapper.
Very cheap and almost every player has one. It saves you from losing everything. You should even build it when you are not (yet) farmed.
Always keep your cranny as high as you need to save your resources. An overflow should not happen save the time when you are online.

The marketplace
Resources you offer at the marketplace will be plundered if the attacking troops have still enough room after emptying your warehouse and granary!

Psychological aspects

Knowing how to play is one thing but being good at diplomacy and strength of will is at least as important, especially for the defender.

At the beginning the farmer just wants your resources. If you start insulting him, he'll be after your head and the situation will become worse for sure.

Strategies

The goal of every strategy has to be the fact that the attacker does not get anything, rather lose something when he attacks you.

The meanie

The cranny is your main "weapon". Get it high enough that even a Teuton won't get anything after you have been off line for half a day.

The hedgehog

Save your resources via "The meanie" in addition you build a decent defence (combat simulator!) which is sufficient to take out the raiding squad.

Diplomacy

Keep in mind the psychological basis of being farmed. The following things can be counted as psychological: