Should we use laptops on battery or power for better battery life?

IS it recommended that I always keep my PC on battery with occasional charging or should I use it on power (plugged in)?