There is no one answer fits all, but generally speaking now-a-days you are perfectly safe leaving the battery plugged in. Happens to be that I seldom use the battery myself on my laptop and on my netbook, but they are always plugged in.
Battery-charging and monitoring circuitry have improved immensely.