In late 19th Century, As a term of mockery for young men who were overly concerned with keeping up with the latest fashions.
The word dude was first used in the 1800's as an insult towards young men who were too concerned with keeping up with the latest fashions.