About This Title

Pages: 450
Published: February 2023
ISBN: 9781680509823
In Beta

Programming Ruby 3.2 (5th Edition)

The Pragmatic Programmers' Guide

by Noel Rappin, with Dave Thomas

Ruby is one of the most important programming languages in use for web development. It powers the Rails framework, which is the backing of some of the most important sites on the web. The Pickaxe Book, named for the tool on the cover, is the definitive reference on Ruby, a highly-regarded, fully object-oriented programming language. This updated edition is a comprehensive reference on the language itself, with a tutorial on the most important features of Ruby—including pattern matching and Ractors—and describes the language through Ruby 3.2.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $33.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal

This book is in Beta, final version expected Feb 2023

Beta Books: What do I get?


Would you like to go from first idea to working code much, much faster? Do you currently spend more time satisfying the compiler instead of your clients or end users? Are you frustrated with demanding languages that seem to get in your way instead of helping you get the work done? Are you using Rails and want to dig deeper into the underlying Ruby language? If so, then we’ve got a language and book for you!

Ruby is a fully object-oriented language. The combination of the power of a pure object-oriented language with the convenience of a scripting language makes Ruby a favorite tool of programmers that want to get things done quickly and cleanly.

This comprehensive reference manual for Ruby includes a description of the most important standard library modules, built-in classes, and modules. It also includes all the new and changed syntax and semantics introduced through Ruby 3.2, including pattern matching and Ractors, and describes the language through Ruby 3.2.

What You Need

  • This book assumes you have a basic understanding of object-oriented programming.
  • In general, Ruby programmers tend to favor the the command line for running their code, and they tend to use text editors rather than IDEs.
  • Ruby runs on Windows, Linux, and MacOS.

Resources

Releases:

  • B1.0 2022/10/25

Contents & Extracts

Note: Contents and extracts of beta books will change as the book is developed.

  • Facets of Ruby
    • Getting Started
      • Installing Ruby
      • Installing Ruby For Windows
      • Running Ruby
      • Creating Ruby Programs
      • Getting More Information about Ruby
      • What’s Next
    • Ruby.new excerpt
      • Ruby Is an Object-Oriented Language
      • Some Basic Ruby
      • Arrays and Hashes
      • Symbols
      • Control Structures
      • Regular Expressions
      • Blocks
      • Reading and ‘Riting
      • Command-Line Arguments
      • Commenting Ruby
      • What’s Next
    • Classes, Objects, and Variables
      • Defining Classes
      • Objects and Attributes
      • Classes Working with Other Classes
      • Specifying Access Control
      • Variables
      • Reopening Classes
      • What’s Next
    • Collections, Blocks, and Iterators
      • Arrays
      • Hashes
      • Digging
      • Word Frequency: Using Hashes and Arrays
      • Blocks and Enumeration
      • What’s Next
    • More About Methods
      • Defining a Method
      • Calling a Method
      • What’s Next
    • Sharing Functionality: Inheritance, Modules, and Mixins excerpt
      • Inheritance and Messages
      • Modules
      • Inheritance, Mixins, and Design
      • What’s Next
    • Standard Types
      • Numbers
      • Strings
      • Ranges
      • What’s Next
    • Regular Expressions
      • What Regular Expressions Let You Do
      • Creating and Using Regular Expressions
      • Regular Expression Patterns
      • Regular Expression Syntax
      • What’s Next
    • Expressions
      • Operator Expressions
      • Command Expressions
      • Assignment
      • Conditional Execution
      • Loops and Iterators
      • Pattern Matching
      • What’s Next
    • Exceptions
      • The Exception Class
      • Handling Exceptions
      • Raising Exceptions
      • Using Catch and Throw
      • What’s Next
    • Basic Input and Output
      • What Is an IO Object?
      • Opening and Closing Files
      • Reading and Writing Files
      • Talking to Networks
      • What’s Next
    • Threads, Fibers, and Ractors
      • Multithreading with Threads
      • Running Multiple External Processes
      • Creating Fibers
      • Understanding Ractors
      • What’s Next
    • Testing Ruby Code
      • Why Unit Test?
      • Testing With Minitest
      • Structuring Tests
      • Creating Mock Objects in Minitest
      • Organizing and Running Tests
      • Testing with RSpec
      • What’s Next
  • Ruby in Its Setting
    • Ruby from the Command Line excerpt
      • Calling the Ruby Command
      • Ruby Command-Line Options
      • Making Your Code an Executable Program
      • Processing Command-Line Arguments to Your Code
      • Accessing Environment Variables
      • Where Ruby Finds Its Libraries
      • Using the Rake Build Tool
      • The Build Environment
      • What’s Next
    • Ruby Gems
      • Installing and Managing Gems
      • Using Bundler to Manage Groups of Gems
      • Writing and Packaging Your Own Code Into Gems
      • Organizing Your Source Code
      • Distributing and Installing Your Code
      • What’s Next
    • Interactive Ruby
      • Using irb
      • Navigating irb
      • Configuring irb
      • What’s Next
    • Debugging Ruby
      • Printing Things
      • The Ruby Debugger
      • Pry
      • Debugging Performance Issues with Benchmark
      • What’s Next
    • Typed Ruby excerpt
      • What’s a Type?
      • Official Ruby Typing with RBS
      • Ruby Typing with Sorbet
      • What’s Next
    • Documenting Ruby
      • Documenting with RDoc
      • Adding RDoc to Ruby Code
      • Running RDoc
      • Documenting with YARD
      • What’s Next
    • Ruby and the Web
      • Ruby’s Web Utilities
      • Using the CGI Class to Handle Cookies
      • Templating with ERB
      • Serving Ruby Code to the Web
      • What’s Next
    • Editing Ruby
    • Ruby Runtimes
  • Ruby Crystallized
    • Duck Typing
    • Metaprogramming
    • Reflection and Object Space
  • Ruby Language Reference
    • Language Reference: Expressions
    • Language Reference: Objects and Classes
    • Regular Expression Reference
      • Character Classes
      • Advanced Regular Expressions
    • Encoding
  • Ruby Library Reference
    • Library Reference: Expressions
    • Library Reference: Containers
    • Library Reference: IO
    • Library Reference: Core Ruby
    • Library Reference: Meta Ruby
  • Appendixes
    • But It Doesn’t Work!
    • I Can’t Look It up!
    • Command-Line Basics
      • Linux and MacOS

Author

Noel Rappin is a Staff Software Engineer at Chime Financial. He is the author of multiple technical books including Rails 5 Test Prescriptions and Modern Front End Development With Rails, and was the host of the Tech Done Right Podcast. Follow Noel on Twitter @noelrap, and online at noelrappin.com.

Dave Thomas is a cornerstone of the Ruby community, and is personally responsible for many of its innovative directions and initiatives. He is one of the founders of the Pragmatic Programmers and the Pragmatic Bookshelf.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $33.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal

This book is in Beta, final version expected Feb 2023

Beta Books: What do I get?

Related Titles:

About This Title

Pages: 450
Published: February 2023
ISBN: 9781680509823
Edition: 1
In Beta