To my understanding, keeping a battery plugged in for very long periods of time, and also keeping it unplugged for very long periods of time (many months, or even years) can have a negative effect on the battery. Though normal wear of constant use should have a slight effect over a very long period of time (years most likely), I believe that the best way to save your battery and keep it from deteriorating is to let the charge run out a bit (i always go to 20%), and plug it back in (charging it to 100%), and let this cycle continue. This doesn't mean you have to do that 24/7, but it is good practice to do this while the device is in use. Also, to my understanding, using the battery while charging it can also have a negative effect in the long run. Also, for rechargeable camera batteries and the like, don't leave it untouched for months and years at a time. It is good practice to use or charge them at least once every 6 months (that's what I do).
Personally, my computer is a hand-me-down Windows Vista, and the battery hardly lasts more than a minute when its unplugged (plus countless other issues it has), so I have to keep it plugged in all the time. But for every other device I own, I use the methods described above.
I don't think this is correct. You should keep it at about 40% and disconnect it if the computer allows while you're on AC. – bwDraco – 2014-12-23T05:57:34.357