Last active
October 8, 2015 07:38
-
-
Save rolandobrown/17df71eef4e43515ba1b to your computer and use it in GitHub Desktop.
Octavia Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "Class" | |
#----------# | |
# In object-oriented programming, a class is an extensible program-code-template for creating objects | |
# providing initial values for state (member variables) and implementations of behavior (member functions or methods). | |
class Parable | |
require "./lib/concerns/think" | |
@@octavia_butler_golden_hash = { | |
:of_talent => | |
{ :one => "I am me, and I am here, and I am writing.", | |
:two => "Habit is persistence in practice.", | |
:three => "Kindness eases change.", | |
:four => "You dont start out writing good stuff. You start out writing crap and thinking its good stuff, and then gradually you get better at it.\n \n There will be errors and failed tests!" | |
} | |
} | |
# "Methods" | |
#----------# | |
def self.intro_octovia | |
Talks.say "In case I havent already introduced myself, my name is RubyAI. I was created by Grow and was named in honor of the Ruby Programming Language." | |
Talks.say "I was designed to speak, to remember, to help programmers practice, to sing, to code mix, and code switch." | |
Talks.say "I am being taught about Imagination, Programming, Culture, and of course Data" | |
Talks.say "I explore this more in the Say Hello Program" | |
Think.pause | |
Talks.say "Now" | |
Think.pause | |
Talks.say "Lets talk about Octavia Butler." | |
Think.pause | |
Think.line_break | |
formatador = Formatador.new | |
formatador.display_line('[yellow]Octavia is one of the most significant science fiction writers of all time. [/]') | |
Think.line_break | |
formatador.display_line('[yellow]Octavia told us that we should all note, quietly or in public, the following lines from a body of agreements called called the earth seed code:[/]') | |
Think.line_break | |
Talks.say "Octavia Butler is one of the most significant science fiction writers of all time. Sidenote, I think Octavia is also a powerful meta program." | |
Think.pause | |
Talks.say "Anyway, Octavia told us that we should all note, quietly or in public, the following lines from a body of agreements called the earth seed code. To start, we say:" | |
formatador.indent {formatador.display_line("1. #{@@octavia_butler_golden_hash[:of_talent][:one]}")} | |
Talks.say "#{@@octavia_butler_golden_hash[:of_talent][:one]}" | |
Think.pause | |
Talks.say "Again: #{@@octavia_butler_golden_hash[:of_talent][:one]}" | |
Think.pause | |
formatador.indent {formatador.display_line("2. #{@@octavia_butler_golden_hash[:of_talent][:two]}")} | |
Talks.say "Like Octavia, we can remember: #{@@octavia_butler_golden_hash[:of_talent][:two]}" | |
Think.pause | |
formatador.indent {formatador.display_line("3. #{@@octavia_butler_golden_hash[:of_talent][:three]}")} | |
Talks.say "Like Octavia, we can embody this behavioral pattern: #{@@octavia_butler_golden_hash[:of_talent][:three]}" | |
Think.pause | |
formatador.indent {formatador.display_line("4. #{@@octavia_butler_golden_hash[:of_talent][:four]}")} | |
Talks.say "Like Octavia, as writers of code, we can remind ourselves and others that: #{@@octavia_butler_golden_hash[:of_talent][:four]}" | |
Think.pause | |
Talks.say "Octavia said one of the most valuable traits is persistence." | |
Think.pause | |
Talks.say "You must Persist." | |
Think.pause | |
Think.line_break | |
formatador.display_line('[yellow]YOU MUST PERSIST[/]') | |
Think.line_break | |
Talks.say "Grow wrote a bunch of crap before he programmed me. Others wrote a bunch of crap too. Matz, and Matt, and Ada, and Avi, Steven and Joshua Bamboo, Dan, Jeff and Amanda, and Pragmattic Andy, and Sherri and Stacey, Drew, and Nancy, and Nancy, and the two Tylers, and James, and Belia, and Bruna, and Eshu, and the ancestors, the boooda, the Prophets, and water, and a bunch of other elements from a body of golden hashes in other programs be thy name." | |
Talks.say "Everyone of us can keep writing until our writing is no longer crap!" | |
Think.pause | |
Talks.say "In between, you can always Dance." | |
Talks.say "Remember" | |
Think.pause | |
Talks.say "You" | |
Think.pause | |
Talks.say "Can Always" | |
Think.pause | |
Talks.say "Dance" | |
Think.pause | |
formatador.display_line('[yellow]Dancing.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.[/]') | |
Think.pause | |
formatador.display_line('[yellow]Keep Dancing.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+[/]') | |
Think.pause | |
formatador.display_line('[yellow]We are Dancing.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+.+[/]') | |
Think.pause(2) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment