There seem to be a fair number of "should I leave this job" questions. Are they actually useful to anyone except the OP? Do they add to the value of the site? A lot of them strike me as just a platform for the poster to vent about how frustrating his workplace is. Is that a valid use for P.SE?
First and foremost, any career advice questions need to relate directly to software development; general career advice questions with no relation to software development or where software development is a minor facet of the question are off-topic. A good way to test this is to ask the question, "Would the answer to the question be materially different if a non-programmer answered it?" If no, the question should be closed as off-topic.
(This aspect is discussed in Dealing with “What are some good types of pickles for programmers?” type questions.)
Beyond that, the general rule of thumb should be whether the question can help others in a similar situation. If the circumstances surrounding the question are too specific to the question asker such that there is no way to generalize and answer the question, they should be closed as too localized.
Applying that rule should put a theoretical limit on the amount of ways the question "My job is X, what should I do?" can be asked. Questions that have similar set of circumstances to already-asked questions should be closed as exact duplicates.
Finally, if there isn't something pointed being asked in the question, and the asker is merely using Programmers.SE as a means to vent about whatever annoyed them at their job that day, it should be closed as not constructive.
If, and only if, a career-advice question passes those three tests, should it stay open.
Examples of career guidance questions that should be closed:
- Mid level IT lead
- What is the best qualification route for me to get back into programming? (UK)
- On programmers, INTJ personality, human interactions, and large companies. (deleted)
It should also be noted that most, if not all, of the other Stack Exchanges have elected to consider their versions of "help my exact situation"-type questions (gaming recommendations, code reviews, proofreading, etc.) to be off-topic on the basis that a Q&A system does not lend well to the necessary discussion to tease out all the details to fully answer the question. I don't see why Programmers.SE should be any different.
I think some of these questions are closed too quickly; especially when closed as too localized. In many cases a reformulated question would be helpful to future visitors. For example: https://softwareengineering.stackexchange.com/questions/20289/mid-level-it-lead could be reformulated as 'What do you do when you get limited learning opportunities in your job'.
Closing a question is negative feedback to a user, and I think it should be avoided when possible. If it's not a real question, but just to vent, sure close it as non constructive. When it's a duplicate, close it; at least you're giving the user a place to find his/her answer. But with too localized you're closing the door to someone seeking help. If you can instead nudge the user into reformulating the question to make it more useful to other users everybody wins.
I think it is strange that a question about job hopping is on-topic, but a question about the relation between maternity and software development career is closed. I hope it wasn't closed because it concerns women only (and as we all know, women can't program, etc.)
Software Engineering is a site for asking questions directly related to the Systems Development Life Cycle (but not code troubleshooting or writing specific code).
Questions seeking career or education advice are off topic. They are only meaningful to the asker and do not generate lasting value for the broader programming community. Furthermore, in most cases, any answer is going to be a subjective opinion that may not take into account all the nuances of a (your) particular circumstance.