This may be a fine rule to observe if you want to sound as if you learned English on your native Mars, but there’s not a goshdarn thing wrong with “don’t,” “can’t,” “wouldn’t,” and all the rest of them that people naturally use, and without them many a piece of writing would turn out stilted and wooden.