Learn Ruby the Hard Way: A Simple and Idiomatic Introduction to the Imaginative World Of Computational Thinking with Code, 3rd edition

Published by Addison-Wesley Professional (December 1, 2014) © 2015

  • Zed A. Shaw
Products list
  • Available for purchase from all major ebook resellers, including InformIT.com
Products list

Details

  • A print text
  • Free shipping
  • Also available for purchase as an ebook from all major ebook resellers, including InformIT.com

This breakthrough book and CD can help practically anyone get started in programming. It's called "The Hard Way," but it's really quite simple. What's "hard" is this: it requires discipline, practice, and persistence. Through a series of brilliantly-crafted exercises, Zed A. Shaw teaches the reader to type sample code, fix mistakes, see the results, and learn how software and programs work. Readers learn to read, write and see code, and learn all they need to know about Ruby logic, input/output, variables, and functions.

  • Preface
  • Acknowledgments
  • The Hard Way Is Easier
  • Exercise 0: The Setup
  • Exercise 1: A Good First Program
  • Exercise 2: Comments and Pound Characters
  • Exercise 3: Numbers and Math
  • Exercise 4: Variables and Names
  • Exercise 5: More Variables and Printing
  • Exercise 6: Strings and Text
  • Exercise 7: More Printing
  • Exercise 8: Printing, Printing
  • Exercise 9: Printing, Printing, Printing
  • Exercise 10: What Was That?
  • Exercise 11: Asking Questions
  • Exercise 12: Prompting People for Numbers
  • Exercise 13: Parameters, Unpacking, Variables
  • Exercise 14: Prompting and Passing
  • Exercise 15: Reading Files
  • Exercise 16: Reading and Writing Files
  • Exercise 17: More Files
  • Exercise 18: Names, Variables, Code, Functions
  • Exercise 19: Functions and Variables
  • Exercise 20: Functions and Files
  • Exercise 21: Functions Can Return Something
  • Exercise 22: What Do You Know So Far?
  • Exercise 23: Read Some Code
  • Exercise 24: More Practice
  • Exercise 25: Even More Practice
  • Exercise 26: Congratulations, Take a Test!
  • Exercise 27: Memorizing Logic
  • Exercise 28: Boolean Practice
  • Exercise 29: What If
  • Exercise 30: Else and If
  • Exercise 31: Making Decisions
  • Exercise 32: Loops and Arrays
  • Exercise 33: While Loops
  • Exercise 34: Accessing Elements of Arrays
  • Exercise 35: Branches and Functions
  • Exercise 36: Designing and Debugging
  • Exercise 37: Symbol Review
  • Exercise 38: Doing Things to Arrays
  • Exercise 39: Hashes, Oh Lovely Hashes
  • Exercise 40: Modules, Classes, and Objects
  • Exercise 41: Learning to Spe

Need help? Get in touch