Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
For Want of a Nail

"For Want of a Nail"

Info on Wikipedia

Original Poem:

For want of a nail the shoe was lost.
For want of a shoe the horse was lost.
For want of a horse the rider was lost.
For want of a rider the message was lost.
For want of a message the battle was lost.
For want of a battle the kingdom was lost.
And all for the want of a horseshoe nail.

Stack trace version:

NoMethodError: undefined method `nail' for nil:NilClass
  from shoe:1, in `want nail`
  from horse:1, in `want show`
  from rider:1, in `want horse`
  from message:1, in `want rider`
  from battle:1, in `want message`
  from kingdom:1, in `want battle`
  from kingdom:1, in `<main>` 
[ERROR]: the kingdom was lost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment