People use the word "dude" in several informal ways.
As a Term of Endearment: It can express affection or respect, similar to "bro" or "man," often between friends or family.
To Refer to Someone: It can stand in for a person's name, especially in casual settings, meaning "guy" or "person."
As an Exclamation: It can convey surprise or excitement, like saying "wow" or "cool."
Usage varies by region and culture. In some places it is seen as slang or even disrespectful, while in others it is perfectly acceptable. Ultimately, the meaning depends on context.