Closing in on 30 years now.
The trick is to get into a company where the mission is sound, the direction makes sense, and your manager is good (i.e. protects you from above, and makes sure shit gets done in a timely and orderly fashion).
Then, help your manager out. Everyone has their flaws, bad situations etc. Be a true team member and help your manager out on those rare occasions where they really need it.
Agreed! Unfortunately not always easy to end up in such a position, but definitely something to look for!