The stock market appears destined to repeat the same mistakes of the dot-com era.