Mastering Ruby Closures

A Guide to Blocks, Procs, and Lambdas



Bookstore > Books > Mastering Ruby Closures

Price$35.82 - $146.75
Rating
AuthorBenjamin Tan Wei Hao
PublisherThe Pragmatic Programmers
Published2017
Pages94
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-101680502611
ISBN-139781680502619
EBook Hardcover Paperback

Ruby developers use the Ruby language as the yardstick for expressivity, flexibility, and elegance - and a large part of this is due to blocks, lambdas, and procs. These language features make Ruby one of the most beautiful and pleasant languages to work with. Learn how to understand and craft code that will take you closer to Ruby mastery.

Start with the basics of closures and then dive into blocks, as you learn about the patterns that involve blocks, and how they are used in real-world code. Then create and use procs and lambdas. Finally, build your own lazy enumerables with advanced Ruby features such as fibers and generators. Along the way, work with computer science concepts such as closures, free variables and first-class functions. Spot a closure easily. Identify the patterns where you can effectively use blocks and re-implement common standard library methods using them. Trace through how Symbol#to_proc works and find out the different ways of calling procs. This succinct guide takes you through the different kinds of Ruby closures with engaging examples, and each chapter comes with exercises that test and challenge your understanding.

When you finish this book, blocks, procs, and lambdas will have become an integral part of your Ruby toolbox.




5 5 52

Similar Books


RubyFu

RubyFu

by RubyFu

This book is a great collection of ideas, tricks, and skills that could be useful for Hackers. It's a unique extraction reference, summarizes a lot of research and experience in order to achieve your w00t in the shortest and smartest way. Rubyfu is where you'll find plug-n-hack code. Rubyfu is a book to use not only to read, it&...

Free ebook  |  Publisher:  Self-publishing  |  Release:  2017

Ruby Notes for Professionals

Ruby Notes for Professionals

by Stack Overflow Community

The Ruby Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow....

Free ebook  |  Publisher:  Self-publishing  |  Release:  2018

Ruby on Rails 3 Tutorial

Ruby on Rails 3 Tutorial

by Michael Hartl

Using Rails 3, developers can build web applications of exceptional elegance and power. Although its remarkable capabilities have made Ruby on Rails one of the world's most popular web development frameworks, it can be challenging to learn and use. Ruby on Rails 3 Tutorial is the solution. Leading Rails developer Michael Hartl teache...

Publisher:  Addison-Wesley  |  Release:  2010

Practical Object-Oriented Design in Ruby

Practical Object-Oriented Design in Ruby

by Sandi Metz

Ruby's widely admired ease of use has a downside: Too many Ruby and Rails applications have been created without concern for their long-term maintenance or evolution. The Web is awash in Ruby code that is now virtually impossible to change or extend. This text helps you solve that problem by using powerful real-world object-oriented ...

Price:  $5.16  |  Publisher:  Addison-Wesley  |  Release:  2012

Ruby on Rails for Microsoft Developers

Ruby on Rails for Microsoft Developers

by Antonio Cangiano

This definitive guide examines how to take advantage of the new Agile methodologies offered when using Ruby on Rails (RoR). You'll quickly grasp the RoR methodology by focusing on the RoR development from the point of view of the beginner- to intermediate-level Microsoft developer. Plus, you'll get a reliable roadmap for migrati...

Price:  $8.54  |  Publisher:  Wrox  |  Release:  2009

From Java To Ruby

From Java To Ruby

by Bruce Tate

You want your development team to be productive. You want to write flexible, maintainable web applications. You want to use Ruby and Rails. But can you justify the move away from established platforms such as J2EE? Bruce Tate's From Java to Ruby has the answers, and it expresses them in a language that'll help persuade managers ...

Price:  $4.14  |  Publisher:  The Pragmatic Programmers  |  Release:  2006

Java Closures and Lambda

Java Closures and Lambda

by Robert Fischer

Java Closures and Lambda introduces you to significant new changes to the Java language coming out of what is termed Project Lambda. These new changes make their debut in Java 8, and their highlight is the long-awaited support for lambda expressions in the Java language. You'll learn to write lambda expressions and use them to create...

Price:  $44.23  |  Publisher:  Apress  |  Release:  2015

Computer Science Programming Basics in Ruby

Computer Science Programming Basics in Ruby

by Ophir Frieder, Gideon Frieder, David Grossman

If you know basic high-school math, you can quickly learn and apply the core concepts of computer science with this concise, hands-on book. Led by a team of experts, you'll quickly understand the difference between computer science and computer programming, and you'll learn how algorithms help you solve computing problems.Each c...

Price:  $19.99  |  Publisher:  O'Reilly Media  |  Release:  2013