Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Learn Ruby The Hard Way
The Hard Way Is Easier
The Hard Way Is Easier
Reading and Writing
Attention to Detail
Spotting Differences
Do Not Copy-Paste
A Note On Practice And Persistence
License
Special Thanks
Exercise 0: The Setup
Exercise 0: The Setup
Mac OSX
OSX: What You Should See
Windows
Windows: What You Should See
Linux
Linux: What You Should See
Warnings For Beginners
Exercise 1: A Good First Program
Exercise 1: A Good First Program
What You Should See
Extra Credit
Exercise 2: Comments And Pound Characters
Exercise 2: Comments And Pound Characters
What You Should See
Extra Credit
Exercise 3: Numbers And Math
Exercise 3: Numbers And Math
What You Should See
Extra Credit
Exercise 4: Variables And Names
Exercise 4: Variables And Names
What You Should See
Extra Credit
Here's more extra credit:
Exercise 5: More Variables And Printing
Exercise 5: More Variables And Printing
What You Should See
Extra Credit
Exercise 6: Strings And Text
Exercise 6: Strings And Text
What You Should See
Extra Credit
Exercise 7: More Printing
Exercise 7: More Printing
What You Should See
Extra Credit
Exercise 8: Printing, Printing
Exercise 8: Printing, Printing
What You Should See
Extra Credit
Exercise 9: Printing, Printing, Printing
Exercise 9: Printing, Printing, Printing
What You Should See
Extra Credit
Exercise 10: What Was That?
Exercise 10: What Was That?
What You Should See
Extra Credit
Exercise 11: Asking Questions
Exercise 11: Asking Questions
What You Should See
Extra Credit
Exercise 12: Libraries
Exercise 12: Libraries
Hold Up! Features Have Another Name
Extra Credit
Exercise 13: Parameters, Unpacking, Variables
Exercise 13: Parameters, Unpacking, Variables
What You Should See
Extra Credit
Exercise 14: Prompting And Passing
Exercise 14: Prompting And Passing
What You Should See
Extra Credit
Exercise 15: Reading Files
Exercise 15: Reading Files
What You Should See
Extra Credit
Exercise 16: Reading And Writing Files
Exercise 16: Reading And Writing Files
What You Should See
Extra Credit
Exercise 17: More Files
Exercise 17: More Files
What You Should See
Extra Credit
Exercise 18: Names, Variables, Code, Functions
Exercise 18: Names, Variables, Code, Functions
What You Should See
Extra Credit
Exercise 19: Functions And Variables
Exercise 19: Functions And Variables
What You Should See
Extra Credit
Exercise 20: Functions And Files
Exercise 20: Functions And Files
What You Should See
Extra Credit
Exercise 21: Functions Can Return Something
Exercise 21: Functions Can Return Something
What You Should See
Extra Credit
Exercise 22: What Do You Know So Far?
Exercise 22: What Do You Know So Far?
What You are Learning
Exercise 23: Read Some Code
Exercise 24: More Practice
Exercise 24: More Practice
What You Should See
Extra Credit
Exercise 25: Even More Practice
Exercise 25: Even More Practice
What You Should See
Extra Credit
Exercise 26: Congratulations, Take A Test!
Exercise 27: Memorizing Logic
Exercise 27: Memorizing Logic
The Truth Terms
The Truth Tables
Exercise 28: Boolean Practice
Exercise 28: Boolean Practice
What You Should See
Extra Credit
Exercise 29: What If
Exercise 29: What If
What You Should See
Extra Credit
Exercise 30: Else And If
Exercise 30: Else And If
What You Should See
Extra Credit
Exercise 31: Making Decisions
Exercise 31: Making Decisions
What You Should See
Extra Credit
Exercise 32: Loops And Arrays
Exercise 32: Loops And Arrays
What You Should See
Extra Credit
Exercise 33: While Loops
Exercise 33: While Loops
What You Should See
Extra Credit
Exercise 34: Accessing Elements Of Arrays
Exercise 34: Accessing Elements Of Arrays
Extra Credit
Exercise 35: Branches and Functions
Exercise 35: Branches and Functions
What You Should See
Extra Credit
Exercise 36: Designing and Debugging
Exercise 36: Designing and Debugging
Rules For If-Statements
Rules For Loops
Tips For Debugging
Homework
Exercise 37: Symbol Review
Exercise 37: Symbol Review
Keywords
Data Types
Exercise 38: Reading Code
Exercise 38: Reading Code
Extra Credit
Exercise 39: Doing Things To Arrays
Exercise 39: Doing Things To Arrays
What You Should See
Extra Credit
Exercise 40: Dictionaries, Oh Lovely Dictionaries
Exercise 40: Dictionaries, Oh Lovely Dictionaries
What You Should See
Extra Credit
Exercise 41: Gothons From Planet Percal #25
Exercise 41: Gothons From Planet Percal #25
What You Should See
Extra Credit
Exercise 42: Gothons Are Getting Classy
Exercise 42: Gothons Are Getting Classy
What You Should See
Extra Credit
Exercise 43: You Make A Game
Exercise 44: Evaluating Your Game
Exercise 44: Evaluating Your Game
Function Style
Class Style
Code Style
Good Comments
Evaluate Your Game
Exercise 45: Is-A, Has-A, Objects, and Classes
Exercise 45: Is-A, Has-A, Objects, and Classes
Extra Credit
Exercise 46: A Project Skeleton
Exercise 46: A Project Skeleton
Skeleton Contents: Linux/OSX
Installing Gems
Using The Skeleton
Required Quiz
Exercise 47: Automated Testing
Exercise 47: Automated Testing
Writing A Test Case
Testing Guidelines
What You Should See
Extra Credit
Exercise 48: Advanced User Input
Exercise 48: Advanced User Input
Our Game Lexicon
Breaking Up A Sentence
Lexicon Structs
Scanning Input
Exceptions And Numbers
What You Should Test
Design Hints
Extra Credit
Exercise 49: Making Sentences
Exercise 49: Making Sentences
Match And Peek
The Sentence Grammar
A Word On Exceptions
What You Should Test
Extra Credit
Exercise 50: Your First Website
Exercise 50: Your First Website
Installing Sinatra
Make A Simple “Hello World” Project
What's Going On?
Fixing Errors
Create Basic Templates
Extra Credit
Exercise 51: Getting Input From A Browser
Exercise 51: Getting Input From A Browser
How The Web Works
How The Web Works
Browser
Address
Connection
Request
Server
Response
How Forms Work
Creating HTML Forms
Creating A Layout Template
Writing Automated Tests For Forms
Extra Credit
Exercise 52: The Start Of Your Web Game
Exercise 52: The Start Of Your Web Game
Refactoring The Exercise 42 Game
Sessions And Tracking Users
Creating An Engine
Your Final Exam
Next Steps
Advice From An Old Programmer
← Prev
Back
Next →
← Prev
Back
Next →