The Book of Ruby: A Hands-On Guide for the Adventurous by Huw Collingbourne

By Huw Collingbourne

Ruby is known for being effortless to profit, yet so much clients in basic terms scratch the skin of what it will possibly do. whereas different books specialise in Ruby's trendier positive aspects, The booklet of Ruby unearths the key internal workings of 1 of the world's most well liked programming languages, educating you to jot down transparent, maintainable code.

You'll commence with the basics—types, information constructions, and keep an eye on flows—and development to complicated positive aspects like blocks, mixins, metaclasses, and past. instead of bathroom you down with loads of thought, The e-book of Ruby takes a hands-on process and makes a speciality of making you effective from day one. As you stick to alongside, you'll study to:
* Leverage Ruby's succinct and versatile syntax to maximise your productivity
* stability Ruby's sensible, vital, and object-oriented features
* Write self-modifying courses utilizing dynamic programming techniques
* Create new fibers and threads to regulate self sustaining procedures concurrently
* seize and get over execution error with powerful exception handling
* enhance robust net functions with the Ruby on Rails framework

Each bankruptcy encompasses a "Digging Deeper" part that indicates you ways Ruby works lower than the hood, so you'll by no means be stuck off protect by means of its deceptively easy scoping, multithreading beneficial properties, or priority rules.

Whether you're new to programming or simply new Ruby, The ebook of Ruby is your consultant to swift, real-world software program improvement with this precise and chic language.

Show description

Read Online or Download The Book of Ruby: A Hands-On Guide for the Adventurous PDF

Best programming books

Objective-C Programming: The Big Nerd Ranch Guide (Big Nerd Ranch Guides)

are looking to write functions for iOS or the Mac? This creation to programming and the Objective-C language is step one in your trip from an individual who makes use of apps to a person who writes them.

according to vast Nerd Ranch's mythical Objective-C Bootcamp,¿this publication covers C, Objective-C, and the typical programming idioms that let builders to utilize Apple applied sciences.

this is often the one introductory-level booklet written by means of Aaron Hillegass, some of the most skilled and authoritative voices within the iOS and Cocoa neighborhood.

appropriate with Xcode four. 2, iOS five, and Mac OS X 10. 7 (Lion), this consultant beneficial properties brief chapters and interesting type to maintain you stimulated and relocating ahead. while, Aaron’s selection that you simply comprehend what you’re doing—or no less than why you’re doing it—encourages you to imagine seriously as a programmer.

Windows 8 and Windows Phone 8 Game Development

Growing enjoyable, refined video games for home windows units huge or small hasn't ever been more straightforward! With lots of instance code and completely operating video games that you can obtain and run immediately home windows eight and home windows mobilephone eight video game improvement is your excellent first step into smooth video games development.

This ebook promises every little thing you want to become aware of your desires and bring exceptional video games that might run on all home windows eight units from computers to drugs to telephones. you could code as soon as and run all over the place. The ubiquity of home windows eight units makes this chance to reliable to miss!

The home windows eight and home windows telephone eight structures have large strength for gaming. New form-factors - similar to the outside pill - coupled with stronger processors and better monitor resolutions mix to make home windows eight the easiest home windows model but for self sufficient video games improvement.   It's by no means been more uncomplicated to create a stupendous video game, package deal it up and install it immediately to the home windows shop with its viewers of hundreds of thousands. This ebook will exhibit you how.

<h3>What you’ll learn</h3> • advance utilizing the loose or complete types of visible Studio 2012.
• the right way to percentage code among the 2 home windows eight structures
• grasp excessive functionality second and 3D pics utilizing the MonoGame improvement atmosphere.
• become aware of find out how to keep an eye on your video games, together with utilizing contact displays, keyboards and accelerometers.
• Produce top of the range track and sound results in your video games.
• discover plenty of instance code and dealing initiatives with resource code on hand to obtain and run at once.
• put up your video games throughout the home windows and home windows cellphone shops for enjoyable or revenue
<h3>Who this e-book is for</h3>
home windows eight and home windows cell eight video game Development is aimed toward people with an present heritage in programming and information of the C# programming language.

No prior knowledge is needed of programming for home windows eight or home windows telephone eight, XNA or MonoGame, or games-programming quite often. This e-book will consultant the reader in the course of the steps required to develop into educated in all of those parts of development.

<h3>Table of Contents</h3><ol> • Getting all started
• Getting all started with MonoGame
• making a video game Framework
• consumer enter
• Sounding Out with video game Audio
• Drawing with Vertices and Matrices
• the realm of 3D portraits
• extra 3D positive factors and strategies
• improving Your video game
• software administration
• Getting all started with XAML
• XAML Controls and Pages
• blending XAML and MonoGame 
• dispensing Your online game
</ol>

Big Data Analytics with Spark: A Practitioner's Guide to Using Spark for Large Scale Data Analysis

Great information Analytics with Spark is a step by step advisor for studying Spark, that is an open-source quickly and general-purpose cluster computing framework for large-scale information research. you'll how one can use Spark for various kinds of huge information analytics tasks, together with batch, interactive, graph, and flow facts research in addition to desktop studying.

Functional Programming in Scala (draft version)

Sensible programming (FP) is a programming kind emphasizing services that go back constant and predictable effects despite a program's kingdom. hence, useful code is simpler to check and reuse, easier to parallelize, and not more at risk of insects. Scala is an rising JVM language that provides robust aid for FP.

Additional resources for The Book of Ruby: A Hands-On Guide for the Adventurous

Sample text

Most of these methods create new string objects. " 38 Chapter 3 A few string methods actually alter the string itself without creating a new object. These methods generally end with an exclamation mark (for example, the capitalize! method changes the original string, whereas the capitalize method does not). In addition, the string itself is also modified—and no new string is created—when you assign a character at an index of the string. For example, s[1] = 'A' would place the character A at index 1 (the second character) of the string s.

The to_s method is obligatory when concatenating Fixnums using the + method or a space; attempting to concatenate a number without using to_s is an error. to_s puts("(s1):" << s1) puts("(s2):" << s2) puts("(s3):" << s3) The previous program produces this output: (s1):This is a string $ (s2):This is a string 36 (s3):This is a string 36 S t ri n gs a n d Ra n g e s 37 What About Commas? You may sometimes see Ruby code that uses commas to separate strings and other data types. In some circumstances, these commas appear to have the effect of concatenating strings.

You will see that I have created two readable attributes in the Thing class: name and description. rb attr_reader( :name, :description ) attr_writer( :description ) I have created a method called to_s, which returns a string describing the Treasure object. Recall that all Ruby classes have a to_s method as standard. to_s method overrides (and replaces) the default one. to_s):: The #{@name} Thing is #{@description}" end You can override existing methods when you want to implement new behavior appropriate to the specific class type.

Download PDF sample

Rated 4.26 of 5 – based on 41 votes