It's a carefully planned logical move, rather than an impetuous act. Don't burn bridges. Farsighted job-hunters change jobs without leaving a bad taste in the mouths of their previous employers. Even if you hate everything about the job, try to leave on good terms by swallowing your feelings. The computer industry, for example, boasts a powerful grapevine.
Bosses talk to one another.
If word gets out that you are a loose cannon with a temper, your career prospects will not be as bright as you thought. The idea is to leave with good references. The bigger the job and the higher you get, the more important the references. Leave in style. That means no surprises.