Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LARubyConf: What if Shakespeare Wrote Ruby?

LARubyConf: What if Shakespeare Wrote Ruby?

Did you know that Shakespeare wrote almost no direction into his plays? No fight direction. No staging. No notes to the songs. Of the 1700 words he created, there was no official dictionary. That’s right the author of some of the greatest literary works in history, which were filled with situational complexity, fight sequences and music, include NO documentation! How did he do it? In this talk, we're going "thee and thou." I'm going to give you a crash course in how: Shakespeare writes software.

Adam Cuppy (he/him)

October 10, 2015
Tweet

More Decks by Adam Cuppy (he/him)

Other Decks in Programming

Transcript

  1. Joy

  2. “Let heaven kiss earth! now let not Nature's hand Keep

    the wild flood-confin'd! let order die! And let this world no longer be a stage…” - Henry IV; Part I
  3. ’Tis well thou art not fish; if thou hadst, thou

    hadst been poor John. Draw thy tool! here comes two of the house of the Montagues 10 Beats
  4. ’Tis well thou art not fish; if thou hadst, thou

    hadst been poor John. Draw thy tool! here comes two of the house of the Montagues 9 Beats!!
  5. class Character def say(message) puts message end end abraham =

    Character.new abraham.say "Do you bite… sir?” # => "Do you bite...sir?"
  6. class Character def say(message) puts message end def say!(message) say

    "#{message.upcase}!" end end abraham = Character.new abraham.say "Do you bite… sir?” # => "Do you bite...sir?" abraham.say! "Do you bite… sir?" # => "DO YOU BITE...SIR?!"
  7. sampson.when(:bite_thumb) do abraham.ask "Do you bite your thumb at us,

    sir?" abraham.draws_sword end abraham.when(:draws_sword) do benvolio.says "Part, fools! Put up your swords" abraham.retract_sword end sampson.bite_thumb # Hell breaks loose...
  8. “ Often people focus on the machines. They think, "By

    doing this, the machine will run more effectively.” But in fact we need to focus on humans, on how humans care about doing programming… We are the masters. They are the slaves.” - Matz (Creator of Ruby)