The Junit / Green Lantern Oath

OK, it's kitsch.  Tacky.  Geeky.  Even (shudder) cute.

But it also has a point.  Bear with me.  (I'm assuming you're a software developer, and already familiar with unit-testing, and Green Lantern.)

Why Unit-Test?
I wrote my first Fortran program in 1970.  I've been coding ever since.  These days they call me a "senior architect" -- hopefully for my knowledge and experience, and not my gray hair.

But every day, in every shop, in every language, we're bathed in two feelings:

Why Green Lantern?  The parallels are striking:

 
Why an Oath?
The Oath came to me in a "flash" in 2011, when I saw the (so-so) Green Lantern movie.  The green light of the Junit test framework merged in my mind with "Green Lantern's light!", and the rest was, well, history.  Or fantasy.  Or whatever.

In the real world, neither a green wrist band nor a comic-book oath is going to help us write better code or more tests.  But consider what's behind the oath.

In the 1994 Emerald Twilight and 2004's Green Lantern: Rebirth, a troubled Hal Jordan succumbs to Parallax -- the literal (yellow!) embodiment of fear, long imprisoned in the master Green Lantern battery on Oa.  Jordan nearly destroys the Green Lantern corps, redeems himself by reigniting our dying (yellow!) sun, and finally triumphs over Parallax with the aide of his fellow Lanterns:

John Stewart: Hal, what's your plan?
Hal Jordan: Remember fear.
Guy Gardner: "Remember fear?"  What the hell kind of science crap is that?

 
Remember Fear
As developers, that's exactly what we need to do.

When we don't ackknowledge our fear, we:

When we face our fear, we... That's why there's an oath: to remind us.  Face your fear.  Own your power.  And own the green light!

 



Bonus Links