Universal advice is "don't cook the battery, don't prematurely wear it out by mindlessly charging and discharging"
Full charge-discharge cycles create more wear than partial ones.
Storing some types of battery in their flattened state can be very damaging (particularly lead-acid batteries, but also some types of lithium batteries). You end up with a hardened layer of spent chemical on one or the other electrode inside the cells of the battery.
Reasonable quality information can be found here.
I'm assuming this is for a laptop. Newer laptops have better quality charging systems than older ones. More expensive laptops can have better battery management than cheaper ones, but won't necessarily.