Mastering Ruby Closures: A Guide to Blocks, Procs, and Lambdas

Huge Savings Item! Save 20% on the Mastering Ruby Closures: A Guide to Blocks, Procs, and Lambdas by Pragmatic Bookshelf at EMS Linux. Hurry! Limited time offer. Offer valid only while supplies last. The road to Ruby mastery is paved with blocks, procs, and lambdas. To be a truly effective Ruby programmer, it's not enough just to understand these

Product Description

The road to Ruby mastery is paved with blocks, procs, and lambdas. To be a truly effective Ruby programmer, it's not enough just to understand these features - you need to know how to use them in practice. Discover how to write code that is elegant, expressive, and a joy to use, and gain a deep understanding of these concepts so you can work with third-party gems and libraries more easily. Whether you are completely new to Ruby or a seasoned Rubyist, you'll find good use for these concepts in your code.

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.

Have questions about this item, or would like to inquire about a custom or bulk order?

If you have any questions about this product by Pragmatic Bookshelf, contact us by completing and submitting the form below. If you are looking for a specif part number, please include it with your message.

First Name:

Last Last:

Email Address:

Your Message:

Related Best Sellers

Pull the strings of Puppet to configure enterprise-grade environments for performance optimizationAbout This Book Implement puppet in a medium to large installation. Deal with issues found in larger deployments, such as scaling, and improving perform...

Ruby on Rails is fast displacing PHP, ASP, and J2EE as the development framework of choice for discriminating programmers, thanks to its elegant design and emphasis on practical results. RailsSpace teaches you to build large-scale projects with Rai...

#1 Best Seller! - Learn to Program Android Apps - in a Day! 2nd Edition What can this book do for you? Android: Programming Guide: Android App Development - Learn in a Day teaches you everything you need to become an Android App Developer from scratc...

Docker does for DevOps what Rails did for web development--it gives you a new set of superpowers. Gone are "works on my machine" woes and lengthy setup tasks, replaced instead by a simple, consistent, Docker-based development environment that will ha...

Behaviour-Driven Development (BDD) gives you the best of Test Driven Development, Domain Driven Design, and Acceptance Test Driven Planning techniques, so you can create better software with self-documenting, executable tests that bring users and dev...

Arduino User Guide 2ND EDITION! - LIMITED TIME OFFER FREE GIFT WORTH $12.99~~~ Amazon #1 Best Seller - Download it Now! Do you want to write a well crafted sketches using modified C language from Adruino? Do you want to be an expert in Arduino? Dow...

The Ruby Way assumes that the reader is already familiar with the subject matter. Using many code samples it focuses on "how-to use Ruby" for specific applications, either as a stand-alone language, or in conjunction with other languages. Topics cove...

Quickly create Web sites with this poweful tool Use this free and easy programming language for e-commercesites and blogsIf you need to build Web and database applications quickly butyou don't dream in computer code, take heart! Ruby on Rails wascrea...

This short SitePoint book provides readers with a fun and yet practical introduction to Sinatra, a framework that makes web development with Ruby extremely simple. It's not intended to be a completely comprehensive guide to the framework or an in-dep...

If you’re an experienced Ruby programmer, Effective Ruby will help you harness Ruby’s full power to write more robust, efficient, maintainable, and well-performing code. Drawing on nearly a decade of Ruby experience, Peter J. Jones brings tog...

Sign Up For Our Newsletter

Sign up to be the first to know about our Exclusive Sales, Special Offers, & Member's Only Discounts!