Ruby wizardry : an introduction to programming for kids /


by Eric Weinstein.
Bok Engelsk 2015 · Electronic books.
Omfang
1 online resource (353 p.)
Utgave
1st edition
Opplysninger
Includes index.. - About the Author; Brief Contents; Contents in Detail; Foreword; Acknowledgments; Chapter 1: What This Book's About; Why Learn Programming (and Why Ruby)?; All Adults on Deck: Installing Ruby; Installing on Mac or Linux ; Installing on Windows; Achievement Unlocked: Ruby Installed!; Putting on the Ruby Slippers; Getting to Know IRB; Using a Text Editor and the ruby Command; Mac; Linux; Windows; Creating Your First Script; When to Use IRB and When to Use a Text Editor; The Prompts Used in This Book; Into the Shiny Red Yonder; Chapter 2: The King and His String; A Short Yarn. - A Bit More About VariablesRuby Operators; A Smallish Project for You; You Know This!; Chapter 3: Pipe Dreams; The Apprentice Plumber's Dilemma; Writing and Running Ruby Scripts; His Majesty's Flow Control; Improving flow_rate.rb with Fancier Logical Operators; A Biggerish Project for You; You Know This!; Chapter 4: Staying in the Loop; Ruby on Monorails; while Loops; Arrays; Putting Arrays and Loops into Action; Your Project, Should You Choose to Accept It; You Know This!; Chapter 5: Array of Sunshine and Hash on the Range; Big Hank's Hashery; Arrays Within Arrays; Even More Array Methods!. - Overriding Methods: Pirates are People, TooUsing super; Protecting the Kingdom with GuardDogs and FlyingMonkeys; Every GuardDog Has His Day ; Once More, with Feeling!; The Queen's Machine; You Know This!; Chapter 10: A Horse of a Different Color; Utter Panda-monium; Creating Modules; Constants; Extending Your Knowledge; Mixins and Inheritance; Requiring Another File ; Looking Up Constants; A Horse of a Different Color; You Know This!; Chapter 11: Second Time's the Charm; Refactoring at the Refactory; Variable Assignment Tricks; Crystal-Clear Conditionals; when You Need a case Statement. - Shift! Pop! Insert!Iterating with Arrays; Hash in the Hashery; Rollicking Ranges; Order Up!; You Know This!; Chapter 6: The (Chunky) Bacon to Ruby's Hash; Symbols!; The Skinny on Symbols; Symbols and Hashes, Together at Last; The Mid-Morning Rush; What Else Can You Do with Symbols?; You Know This!; Chapter 7: The Magic of Methods and Blocks; A Method to the Madness; Defining Your Own Methods; return Versus puts; Understanding Method Arguments ; What Is nil?; Splat Parameters; Block Methods; Into the Dagron's Lair; You Know This!; Chapter 8: Everything Is an Object (Almost). - Simplifying Methods. - The Subject of Our Story Is an ObjectClasses and Objects; Creating Our First Class, Minstrel; Variable Scope; These Variable Errors Will Shock and Surprise You!; Global Variables; Class Variables; Instance Variables; Local Variables; Objects and self; Methods and Instance Variables; Dial-a-Ballad, or the Minstrel's Delivery Service; You Know This!; Objects and Classes; Variables and Scope; Object-Oriented Programming; Chapter 9: Inheriting the Magic of Ruby; Her Majesty's Menagerie; A Brush-Up on Classes ; A Couple of Classes; Inheritance and DRY Code; Subclass and Superclass. - The Ruby programming language is perfect for beginners: easy to learn, powerful, and fun to use! But wouldn't it be more fun if you were learning with the help of some wizards and dragons?Ruby Wizardry is a playful, illustrated tale that will teach you how to program in Ruby by taking you on a fantastical journey. As you follow the adventures of young heroes Ruben and Scarlet, you'll learn real programming skills, like how to:Use fundamental concepts like variables, symbols, arrays, and stringsWork with Ruby hashes to create a programmable breakfast menuControl program flow with loops and cond
Emner
Sjanger
Dewey
ISBN
1-4571-8981-X. - 1-59327-663-X

Bibliotek som har denne