Email the Author

You can use this page to email Jay Godse about Practical Data Processing Using Map, Reduce and Select with Ruby.

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

This message will be sent to Jay Godse

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

About the Book

This program prints out Pascal's triangle. 

puts (0...10).reduce([[1]]) { |a,x|

    a.unshift a.first.reduce([0,[]]) { |b,y|

        [y,b.last << (b.first + y)]

    }.last + [1]

}.reduce([]) { |c,z|

    next [z[z.length/2].to_s.length*2,z.length,""] if c.empty?

    [c[0],c[1], z.map { |j|

            j.to_s.center(c[0])

        }.join('').center(c[0]*c[1])+"\n#{c.last}"]

}.last

I found it on the internet at kellegous.com. How does such a complex program get encoded in 10 lines of code? Use this book to learn how to use map, reduce, and select with Ruby to solve data processing problems. Use this book along with a computer wth Ruby installed, a text editor, and the irb (interactive Ruby) prompt. As you read, type in the code, run the code and ponder the results. Tweak the code to test the code and the results. This book will walk you through problems and solutions which are effective because they use map, reduce, and select. You will gain a deeper understanding on how to break data processing problems into processing stages, each of which is understandable, debuggable, and composable, and how to combine the stages to solve your data processing problem. 


About the Author

Jay Godse’s avatar Jay Godse

Jay Godse graduated with an engineering degree, and then went to work as a digital circuit designer. After a year of that he switched to software development and has been there ever since in some form. His early work was mostly real-time telecommunication device control and provisioning using languages such as C and Protel. He then transitioned into designing distributed computing systems, using languages such as C++ and CORBA IDL. After that, transitioned into web applications. Along the way he did stints as a software development manager and a software architect. But for the last 7 years, he has written web applications using Ruby on Rails, SQL, Javascript, et cetera. He is also a named inventor of a dozen US Patents owned by various companies.  

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:
  • Practical-data-processing-using-map-reduce-select-ruby › 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