Bragging is not merely designed to impress. Bragging is designed to produce envy and assert superiority. It is, therefore, an act of hostility. Bragging is also a transparent ploy. It reveals your lack of self-confidence. “I am not enough,” you feel. So you resort to showering me with your “achievements,” in order to mask your perceived deficiencies.

Aaron Hass (contemp.) American clinical psychiatrist, academic, author
Doing the Right Thing: Cultivating Your Moral Intelligence, Sec. 1, ch. 7 “Self-Control” (1998)
    (Source)