Ruby Wizardry: An Introduction to Programming for Kids

By Eric Weinstein

The Ruby programming language is ideal for newcomers: effortless to benefit, strong, and enjoyable to exploit! yet would it not be extra enjoyable should you have been studying with the aid of a few wizards and dragons?

Ruby Wizardry is a playful, illustrated story that might train you the way to software in Ruby through taking you on a fantastical trip. As you stick with the adventures of younger heroes Ruben and Scarlet, you are going to research actual programming abilities, like how to:

  • Use basic techniques like variables, symbols, arrays, and strings
  • Work with Ruby hashes to create a programmable breakfast menu
  • Control software movement with loops and conditionals to assist the Royal Plumber
  • Test your wild and loopy rules in IRB and shop your courses as scripts
  • Create a category of mini-wizards, every one with their very own superpower!
  • Organize and reuse your code with equipment and lists
  • Write your personal impressive interactive tales utilizing Ruby

Along the way in which, you will meet colourful characters from round the country, just like the hacker Queen, the Off-White Knight, and Wherefore the minstrel. Ruby Wizardry could have you (or your little wizard) addicted to programming in no time.

For a while 10+ (and their parents!)

Show description

Quick preview of Ruby Wizardry: An Introduction to Programming for Kids PDF

Similar Children books

The Star of Kazan

After twelve-year-old Annika, a foundling dwelling in past due nineteenth-century Vienna, inherits a trunk of gown jewellery, a lady claiming to be her aristocratic mom arrives and takes her to stay in a surprisingly decrepit mansion in Germany.

The Witch-Hunt Narrative: Politics, Psychology, and the Sexual Abuse of Children

Within the Nineteen Eighties, a sequence of kid intercourse abuse circumstances rocked the U.S.. the main well-known case used to be the 1984 McMartin preschool case, yet there have been a couple of others in addition. via the latter a part of the last decade, the idea was once frequent that kid intercourse abuse had turn into a major challenge in the United States.

Dinosaurs: A Nonfiction Companion to Magic Tree House #1: Dinosaurs Before Dark

Song the evidence with Jack and Annie! whilst Jack and Annie obtained again from their event in Magic Tree residence no 1: Dinosaurs prior to Dark, they had plenty of questions. whilst did the dinosaurs reside? What different animals lived at the moment? Which dinosaur used to be largest? How can we find out about dinosaurs? discover the solutions to those questions and extra as Jack and Annie music the evidence.

Skellig

David Almond’s Printz Honor–winning novel celebrates its tenth anniversary! Ten-year-old Michael was once watching for getting into a brand new residence. yet now his child sister is ailing, his mom and dad are frantic, and general practitioner demise has come to name. Michael feels helpless. Then he steps into the crumbling storage. .

Extra info for Ruby Wizardry: An Introduction to Programming for Kids

Show sample text content

29 three Pipe desires 31 The Apprentice Plumber’s challenge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Writing and operating Ruby Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 His Majesty’s Flow Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Improving flow_rate. rb with Fancier Logical Operators . . . . . . . . . . . . . . . forty A Biggerish undertaking for You . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . forty three you recognize This! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . forty five four Staying within the Loop forty seven Ruby on Monorails . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . forty seven whereas Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . fifty four placing Arrays and Loops into Action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . fifty six Your undertaking, in the event you decide to settle for It . . . . . . . . . . . . . . . . . . . . . . . fifty eight you recognize This! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . sixty one five Array of light and Hash at the variety sixty three tremendous Hank’s Hashery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . sixty three Arrays inside Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . sixty six much more Array equipment! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . sixty eight Shift! Pop! Insert! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . sixty nine Iterating with Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . seventy two Hash within the Hashery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . seventy four Rollicking levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . seventy eight Order Up! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . eighty one you recognize This! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . eighty four 6 The (Chunky) Bacon to Ruby’s Hash ninety one Symbols! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ninety one the thin on Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ninety four Symbols and Hashes, Together at Last . . . . . . . . . . . . . . . . . . . . . . . . . . . . ninety seven The Mid-morning Rush . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a hundred and one What Else are you able to Do with Symbols? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 you recognize This! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . one zero five 7 The Magic of equipment and Blocks 109 a mode to the insanity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 Defining your personal equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 go back as opposed to places . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . one hundred fifteen knowing strategy Arguments . . . . . . . . . . . . . . . . . . . . . . . . 117 xii   Contents intimately What Is nil? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . one hundred twenty Splat Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Block tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Into the Dagron’s Lair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 you recognize This! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a hundred thirty eight every little thing Is an item (Almost) 133 the topic of Our tale Is an item . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 periods and items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 developing Our top quality, Minstrel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a hundred and forty Variable Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a hundred and forty four those Variable error Will surprise and Surprise You!

Download PDF sample

Rated 4.79 of 5 – based on 30 votes