Please stop telling people this. It's not true.
If you're storing a Li-ion battery for a long time, you want it at about 1/3 charge. But a battery in an actively used machine isn't stored, it's used. A MBP is not likely to overcharge the battery, which is what might result from a Li-ion battery plugged in all the time with a low-quality protection circuit. Deep discharging a Li-ion battery will damage it, so storing one that's close to dead for a long time will frequently result in you coming back to a battery that will never charge again.
Battery cycles are the usual killer. That won't typically cause swelling, but you're MUCH better off leaving it plugged in than intentionally running up the cycle count. What I always tell users is "If it's convenient to plug it in, plug it in. And never intentionally fully discharge the battery unless you care more about the estimated time counter than you do about battery life. But don't worry about plugging it in if it's not convenient, it's a portable, use it however it works best for you."
But a low cycle MBP battery that fails is generally going to be one of two things: Heat, or a battery that was defective from the factory.
Heat is the one thing you can control. You don't have to do anything special, just don't run your MBP on an insulating surface, NEVER put one of those stupid snap on covers on it (those will kill a computer. I know, you want your computer to be purple. Just don't.) And never run it in "clamshell" mode. You know, where you've got the lid closed and an external monitor and keyboard hooked up? Yeah, I know, Apple says you can. You can't, you'll cook it to death far more quickly than if you just use the built in screen as an extra monitor. It dumps quite a bit of heat through the keyboard and palm rests, heat that can't go anywhere if the screen is closed.