Do not beat up on yourself. Do not criticize your writing as lousy, inadequate, stupid, or any of the evil epithets that you are used to heaping on yourself. Such self-bashing is never useful. If you indulge in it, your writing doesn't stand a chance. So when your mind turns on you, turn it back, stamp it down, shut it up, and keep writing.