Source: I got diagnosed with major depression after leaving a job almost exactly like OP's. Doing better now, though.
Reply on news.ycombinator.com