An introduction to the basic concepts of programming with Ruby. Information, exercises and code all related to learning Ruby.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
01_introduction_to_ruby
02_introduction_to_hackety_hack
07_guis_with_shoes
10_drawing_with_shoes
ex_why_the_lucky_stiff
samples
.gitignore
01_introduction_to_ruby.rd
02_introduction_to_hackety_hack.rd
03_basic_data_types.rd
04_variables.rd
05_user_input_exercises.rd
05_user_input_vanilla.rd
06_drawing_with_turtle.rd
07_logic.rd
07_logic_vanilla.rd
08_loops.rd
08_loops_vanilla.rd
09_into_the_terminal.rd
10_drawing_with_shoes.rd
11_guis_with_shoes.rd
12_arrays.rd
13_methods.rd
14_classes.rd
README.md
ex_make_a_text_adventure.rd
ex_why_the_lucky_stiff.rd
turtle.rb
turtle_commands.rb

README.md

The Fundamentals of Ruby

An introduction to the basic concepts of programming with Ruby. Information, exercises and code all related to learning Ruby.

The presentations are powered by Rabbit.

The normal code samples and examples are meant to be used with Hackety Hack.

The vanila code samples and examples are meant to be used with IRB or Ruby run from the terminal.

Topics Covered

  • Data types like Strings, Numbers and Floats
  • Math with numbers
  • String manipulation
  • Variables
  • User input
  • Boolean
  • Loops
  • Shoes

Ideas of things to try and use

  • Ruby from the command line
  • IRB
  • Shoes
  • Camping
  • Sinatra

Presentations

  1. Introduction to Ruby (01_introduction_to_ruby.rd)
  2. Introduction to Hackety Hack (02_introduction_to_hackety_hack.rd)
  3. Basic Data Types (03_basic_data_types.rd)
  4. Variables (04_variables.rd)
  5. User Input Exercises (05_user_input_exercises.rd)
  6. Drawing with Turtle (06_drawing_with_turtle.rd)
  7. Logic (07_logic.rd)
  8. Loops (08_loops.rd)
  9. Into the Terminal (09_into_the_terminal.rd)
  10. Drawing with Shoes (10_drawing_with_shoes.rd)
  11. GUIs with Shoes (11_guis_with_shoes.rd)
  12. Arrays (12_arrays.rd)
  13. Methods (13_methods.rd)
  14. Hashes
  15. Singing with Sinatra

Extra Credit:

  • _why the lucky stiff (ex_why_the_lucky_stiff.rd)

Thank You

  • Thanks Alex Chaffee for the awesome Learn to Code content.
  • Thanks Steve Klabnik for doing a lot of awesome things regarding Ruby, Hackety Hack, Shoes, etc.
  • Thanks Pete Brown for helping me with the content and feedback on the slides.

Things to Note & Teach

How to Save a File

  1. Select all of the code
  2. Copy the text from Hackety Hack
  3. Paste into Text Wrangler
  4. File > Save > No Name (Your Flash Drive!)
  5. Name the file file_name.rb

Todo

  • Add code samples in the directory of each lesson, hooray!
  • Export presentations as PDFs and upload them to Speaker Deck
  • Create text versions (like a book) of the presentations
  • Create IRB ex lesson