Assume I just wrote a paper. Now I would like to publish it in a journal.

What kind of things I should do before its submission?
Should I first give a few talks at seminars or conferences? Upload to arxiv? Send to a few experts?

What is the best algorithm?