Ruby Wizardry: An Introduction to Programming for Kids

By Eric Weinstein

The Ruby programming language is ideal for rookies: effortless to profit, robust, and enjoyable to take advantage of! yet would it be extra enjoyable in the event 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 to the adventures of younger heroes Ruben and Scarlet, you are going to study actual programming abilities, like how to:

  • Use primary innovations like variables, symbols, arrays, and strings
  • Work with Ruby hashes to create a programmable breakfast menu
  • Control application movement with loops and conditionals to aid the Royal Plumber
  • Test your wild and loopy principles in IRB and store your courses as scripts
  • Create a category of mini-wizards, each one with their very own superpower!
  • Organize and reuse your code with equipment and lists
  • Write your individual impressive interactive tales utilizing Ruby

Along the best way, you are going to 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 long time 10+ (and their parents!)

Show description

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

Best Children books

Wanted (Pretty Little Liars, Book 8)

Being sought after isn't a superb factor. for 3 lengthy years, Hanna, Spencer, Aria, and Emily puzzled what occurred the evening their ally Alison disappeared. Now that every one their questions have eventually been spoke back, they could positioned this lousy bankruptcy in their lives in the back of them. Or so that they imagine. no longer each tale has a cheerful finishing, specially while 4 beautiful little liars have performed such a lot of depraved issues.

Guys Read: Thriller

A physique at the tracksA teenage terroristA mysterious wish-granting machineThe world’s worst deepest detectiveThe moment quantity within the men learn Library of serious interpreting is brim-full of poser, intrigue, and nefarious task. that includes the superior writers round, and compiled via qualified man Jon Scieszka, men learn: mystery is a pulse-pounding choice of brand-new brief tales, every one bound to continue you riveted until eventually the ultimate web page.

Platypus Police Squad: The Frog Who Croaked

Platypus Police Squad: The Frog Who Croaked is the 1st in a sequence of zany, action-packed middle-grade mysteries that includes platypus police detectives Rick Zengo and Corey O’Malley. When a choice is available in a couple of crime down on the docks concerning a lacking schoolteacher and a duffle bag packed with unlawful fish, Zengo and O’Malley are going to need to discover ways to set their ameliorations apart in the event that they are looking to resolve this.

Secret Water

The Swallows are marooned with a little bit crusing boat for corporation. Will they live on their likelihood to develop into actual explorers?      When the Walker family's vacation plans are ruined through Daddy having to paintings, the complete summer time turns out misplaced at sea. yet a lifeless vacation for the youngsters is just too depressing to undergo so their mom and dad hatch a plan.

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

Show sample text content

109 Defining your personal equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 go back as opposed to places . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a hundred and fifteen figuring out process Arguments . . . . . . . . . . . . . . . . . . . . . . . . 117 xii   Contents intimately What Is nil? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a hundred and twenty Splat Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Block tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Into the Dagron’s Lair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 you recognize This! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a hundred thirty eight every thing Is an item (Almost) 133 the topic of Our tale Is an item . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 periods and items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 growing Our top notch, Minstrel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a hundred and forty Variable Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a hundred and forty four those Variable blunders Will surprise and Surprise You! . . . . . . . . . . one hundred forty five international Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 type Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 example Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . one hundred fifty neighborhood Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 items and self . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 tools and example Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 Dial-a-Ballad, or the Minstrel’s supply provider . . . . . . . . . . . . . . . . . . . 164 you recognize This! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 gadgets and sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 Variables and Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a hundred and seventy Object-Oriented Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 nine Inheriting the Magic of Ruby 177 Her Majesty’s Menagerie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 A Brush-up on sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 a number of sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 Inheritance and DRY Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 Subclass and Superclass . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 Overriding equipment: Pirates are humans, Too . . . . . . . . . . . . . . . . . a hundred ninety utilizing large . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 retaining the dominion with GuardDogs and FlyingMonkeys . . . . . . . . 193 each GuardDog Has His Day . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 once again, with Feeling! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 The Queen’s computer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 you recognize This! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Contents in Detail   xiii 10 A Horse of a unique colour 207 Utter Panda-monium . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 developing Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Extending Your wisdom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 Mixins and Inheritance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215 Requiring one other dossier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 taking a look Up Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221 A Horse of a distinct colour .

Download PDF sample

Rated 4.36 of 5 – based on 16 votes