I keep Cody on a very strict diet. He is fed twice a day. If he gets table scraps (he doesn't beg. He knows to wait) I consider the caloric intake and feed him less kibble. The vet told me he is the perfect weight for a golden retriever. It is not difficult to keep his weight under control.
I can understand the tempations to feed a pet too much. But they enjoy the hugs and cuddles just as much as the excess food, if not more.