This is one of those things as battery technology changes, folks folklore remains the same.
Like humans, all batteries die. Two things make it die faster.
1. Heat *
2. Charge Cycles
Apple claims that a battery is good for a 1,000 cycles. That is ~3 years of daily full cycle charging.
The battery has technology that limits overcharging. Previously overcharging caused heat. With some tools or terminal if you are handy, you can see when your charge is full, there is no pull from the charger.
It is perfectly safe to leave plugged into the supplied charger or equivalent in clamshell mode or otherwise.
* Cold effects batteries as well, but typically doesn't reduce the longevity of the battery. There are recommended operating temperatures for the device. Limit usage in the Mojave desert and polar regions.