Over the years, the varied iterations of the Star Trek franchise have inspired countless young men and women to pursue careers in cutting edge technologies, space sciences, and the like. As a kid growing up on a steady diet of "Star Trek: The Next Generation," however, I saw something else that spoke to me: a command structure that each and every crewmember had the utmost faith in.

The crew of the Enterprise each knew where they fell within the decision-making hierarchy, what their role and responsibilities were, and most importantly, who to look to when it came time to make hard decisions.

Breaking the chain of command or violating direct orders, of course, played a pivotal role in a number of episodes and movies--but in my young mind, that only further emphasized the importance of command: where starship captains were forced to decide between their orders and what they knew to be right. Almost universally, the captain that erred on the side of ethics got off scot-free, no matter how egregious their crimes. Good leadership, I learned, is about looking failure in the eye, accepting the consequences, and doing what has to be done.

Leadership in Starfleet, like in today's real-world military, is a near constant life-or-death matter. Fortunately for the Star Trek universe, they have a test to see if you have what it takes to lead in such an environment.

The test The Kobayashi Maru test was first shown on screen in 1982's "Star Trek II: The Wrath of Khan." The premise is simple: a cadet is placed in command of a starship simulator and tasked with responding to the distress call of a damaged fuel carrier: the Kobayashi Maru. The stranded vessel is adrift in the neutral zone dividing Starfleet's Federation Space from the Klingon Empire. The cadet-turned-captain has to make a hard decision: do you risk war with Star Trek's Cold War Russian stand-ins, the Klingons… or do you allow the civilians to die? The right thing to do, of course, is rescue the civilians--but the moment a cadet issues that order, things go bad. Communications with the civilian vessel are immediately lost just as multiple Klingon warships appear in pursuit. In clear violation of the treaty between their peoples, the cadet-in-command can try to talk their way out of trouble, turn and fight, or leave the civilians to their fate and run, but it doesn't matter. The cadet's ship is invariably destroyed. All crew members are lost. It's a failure that's spectacular in measure, both in terms of the lost vessel and in terms of lost lives. For an aspiring Starfleet captain, it's a living nightmare… and that's the point.

The "no win scenario" Kirk didn't learn from the Kobayashi Maru, so he went on to learn the hard way.

No matter how long you serve in the military or how competent a leader you are, failure comes for us all. If you're fortunate, your most egregious failures will all come in training environments, and you'll never have to go home with the weight of lost brothers or sisters on your conscience. In the worst of scenarios, victory or failure may be entirely outside of your control, but the burden of loss remains. When someone dies under your command, be it in combat or otherwise, it sticks with you. You'll keep moving, you'll keep working, but late at night, when you're alone with yourself, you can feel the weight of it bearing down. Good leaders know they're going to hurt, but importantly, know how to get the job done anyway. They know that sometimes failure is unavoidable… often because they've faced their own Kobayashi Maru somewhere along the way.