Email the Author

You can use this page to email Benjamin Tan Wei Hao about The Ruby Closures Book.

Please include an email address so the author can respond to your query

This message will be sent to Benjamin Tan Wei Hao

This site is protected by reCAPTCHA and the Google  Privacy Policy and  Terms of Service apply.

About the Book

NOTE: This book will go under the Pragmatic Programmers' imprint! Stay tuned!

I have been a Ruby programmer for quite a number of years, but until recently, I have been blissfully ignorant of one of Ruby's most powerful features. That is, until one day, I saw a co-worker casually write a method that took in a block. Holy ****! I realized at that moment, I had a major gap in my Ruby knowledge.

Sure, I knew how to use blocks, and vaguely knew how to use lambdas in Rails scopes. But who was I kidding? I was never going to be a competent Ruby programmer if I didn't fix this.

Here's the thing. I spoke to a few of my Ruby programmer friends, and guess what, the situation is the same. If you are like that then this book is for you.

This book will help you gain a deep understanding of Ruby's closures, and more importantly, how to harness its power.

What you will learn:

  • What are closures?
  • Why and how are closures useful?
  • The differences between lambdas and procs
  • Ruby patterns using blocks
  • Real-world examples of closures
  • Implement your own testing framework, lazy enumerables and DSLs
  • And much more ...

The Story Behind the Book

I was honeymooning with my wife in Taiwan. As I was waiting for her outside the bathroom up at some mountain, it dawned upon me that "www.closur.es" would make for a fantastic domain name. But since that was too general, why not "www.rubyclosur.es" instead? I congratulated myself on being an absolute genius, and immediately proceeded to buy that domain. I began writing the book the very next day. Thankfully, my wife didn't complain.


About the Author

Benjamin Tan Wei Hao’s avatar Benjamin Tan Wei Hao

@bentanweihao

Ohai! I'm Benjamin. I am a software engineer at Neo Innovation. I absolutely love Ruby. Even after using it for years, I still find so much more to learn. You can read some of my articles on Ruby on SitePoint.

I live in Singapore with my wonderful wife. I am currently working on another book. (If you are into Elixir, you'll love it.)

If you have any questions at all, I'm an email away.

Logo white 96 67 2x

Publish Early, Publish Often

  • Path
  • There are many paths, but the one you're on right now on Leanpub is:
  • Therubyclosuresbook › Email Author › New
    • READERS
    • Newsletters
    • Weekly Sale
    • Monthly Sale
    • Store
    • Home
    • Redeem a Token
    • Search
    • Support
    • Leanpub FAQ
    • Leanpub Author FAQ
    • Search our Help Center
    • How to Contact Us
    • FRONTMATTER PODCAST
    • Featured Episode
    • Episode List
    • MEMBERSHIPS
    • Reader Memberships
    • Department Reader Memberships
    • Author Memberships
    • Your Membership
    • COMPANY
    • About
    • About Leanpub
    • Blog
    • Contact
    • Press
    • Essays
    • AI Services
    • Imagine a world...
    • Manifesto
    • More
    • Partner Program
    • Causes
    • Accessibility
    • AUTHORS
    • Write and Publish on Leanpub
    • Create a Book
    • Create a Bundle
    • Create a Course
    • Create a Track
    • Testimonials
    • Why Leanpub
    • Services
    • TranslateAI
    • TranslateWord
    • TranslateEPUB
    • PublishWord
    • Publish on Amazon
    • CourseAI
    • GlobalAuthor
    • Marketing Packages
    • IndexAI
    • Author Newsletter
    • The Leanpub Author Update
    • Author Support
    • Author Help Center
    • Leanpub Authors Forum
    • The Leanpub Manual
    • Supported Languages
    • The LFM Manual
    • Markua Manual
    • API Docs
    • Organizations
    • Learn More
    • Sign Up
    • LEGAL
    • Terms of Service
    • Copyright Policy
    • Privacy Policy
    • Refund Policy

*   *   *

Leanpub is copyright © 2010-2025 Ruboss Technology Corp.
All rights reserved.

This site is protected by reCAPTCHA
and the Google  Privacy Policy and  Terms of Service apply.

Leanpub requires cookies in order to provide you the best experience. Dismiss