Ruby Wizardry: An Introduction to Programming for Kids by Eric Weinstein

By Eric Weinstein

The Ruby programming language is ideal for novices: effortless to profit, robust, and enjoyable to take advantage of! yet wouldn't it's extra enjoyable if you happen to have been studying with the aid of a few wizards and dragons?

Ruby Wizardry is a playful, illustrated story that might educate you ways to software in Ruby through taking you on a fantastical trip. As you persist with the adventures of younger heroes Ruben and Scarlet, you'll examine genuine programming abilities, like how to:

Use primary techniques like variables, symbols, arrays, and strings
paintings with Ruby hashes to create a programmable breakfast menu
keep an eye on software move with loops and conditionals to assist the Royal Plumber
try your wild and loopy rules in IRB and store your courses as scripts
Create a category of mini-wizards, every one with their very own superpower!
set up and reuse your code with equipment and lists
Write your personal extraordinary interactive tales utilizing Ruby

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

For a long time 10+ (and their parents!)

Show description

Read or Download Ruby Wizardry: An Introduction to Programming for Kids PDF

Similar children books

Prince Siddhartha: The Story of Buddha

This can be the tale of Prince Siddhartha and the way he turned Buddha, the woke up One. appealing full-color illustrations depict each one significant lifestyles occasion within the Buddha's lifestyles, awakening, and educating. His message of nonviolence, loving-kindness, and unselfishness is movingly and obviously informed in a fashion that kids and their mom and dad can relate to and convey to existence in themselves.

Ruby Wizardry: An Introduction to Programming for Kids

The Ruby programming language is ideal for newcomers: effortless to profit, strong, and enjoyable to exploit! yet wouldn't it's 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 educate you the way to application in Ruby by means of taking you on a fantastical trip. As you keep on with the adventures of younger heroes Ruben and Scarlet, you'll examine actual programming talents, like how to:

Use basic options like variables, symbols, arrays, and strings
paintings with Ruby hashes to create a programmable breakfast menu
regulate software move with loops and conditionals to assist the Royal Plumber
try your wild and loopy rules in IRB and retailer your courses as scripts
Create a category of mini-wizards, every one with their very own superpower!
set up and reuse your code with equipment and lists
Write your personal impressive interactive tales utilizing Ruby

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

For a while 10+ (and their mom and dad! )

Superman Returns - I Am Superman!

The fantastic tremendous hero is again to fly into the hearts and houses of kids. This crime-fighter is devoted to scuffling with the main robust and deadly enemies. Superman soars over city scuffling with evil villains in those intriguing and unique 8x8 storybooks filled with event and nice illustrations.

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

Example text

Rb, and typed: flowmatic_on = true water_available = true if flowmatic_on && water_available flow_rate = 50 end “You’ve lost me,” said the King. “We’ll take it slow,” said Scarlet. “First, we assign the variables flowmatic_on and water_available to true. Then, we have the if, which is a conditional, on the second line. ” “And && is just Ruby’s way of saying and,” said Ruben. “We already know that the fourth line sets the flow rate to 50, so together, the whole thing says, ‘If flowmatic_on is true and water_available is also true, this program will set the flow_rate variable to 50.

While computers were invented about a bajillion years ago (the first devices you’d recognize as computers were created in the 1940s), Ruby was cooked up relatively recently, in 1993. You might think that 1993 was a bajillion years ago, too, and in some ways, you’re right. The Internet only had about a hundred websites. Nobody had smartphones. In fact, most people’s phones were connected to their walls by wires. These were dark times. But in the ancient world of the mid-1990s, a man named Yukihiro Matsumoto (or just “Matz” to his friends) was busy trying to invent the future.

Rb in any folder you’d like (it’s a good idea to create a ruby folder now to put all your Ruby programs in). rb. Here’s how to do that with the cd command: •• On Mac or Linux, your prompt (the bit to the left of the $ on the command line) looks something like /Users/username $. rb in a folder called ruby in your home folder, you can get to that folder on the command line by entering: $ cd /Users/username/ruby Don’t type the $ part, just everything after it. Also, don’t literally type username; you should replace that with whatever you see in your prompt!

Download PDF sample

Rated 4.49 of 5 – based on 35 votes