You ask 10 people, you will get 10 different answers on this matter.
If the idea is to keep the battery CHARGE CYCLES low (the battery dies after so many cycles and needs replacing), then always have it plugged in when AC available and in use. If not in use, I unplug mine to avoid tickle-charging and allow battery to rest.
Your Mileage May Vary.