Share E-Book

Programming Ruby 3.3 The Pragmatic Programmers Guide (Pragmatic Programmers Facets of Ruby), 5th Edition (Noel Rappin, Dave Thomas) (z-library.sk, 1lib.sk, z-lib.sk)

Author

,

Rating 4.5 AI initial rating

Log in to rate

Programming Language
Language English

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. 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.

Format PDF
Size 10.3 MB
(First 20 pages)

Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Page 1
(This page has no text content)
Page 2
(This page has no text content)
Page 3
Early Praise for Programming Ruby 3.3: The Pragmatic Programmers’ Guide The book has such breadth and depth, making it a useful long-term companion. I’d say this is a big win for the Ruby community. ➤ Stefan Magnuson Software Developer Programming Ruby 3.3: The Pragmatic Programmers’ Guide is a valuable resource to anyone looking to get started with developing software tools and systems in Ruby. Thanks to thorough technical explanations accompanied by demonstrative code examples, this book will equip you with a mastery of all the building blocks of Ruby and help you unlock its full power. ➤ Nishant Roy Engineering Manager I’m ecstatic to see the book that inspired an entire generation of Rubyists revived. I’m excited to see—and use—what the next generation of readers builds thanks to this. ➤ Kevin Murphy Software Developer
Page 4
We've left this page blank to make the page numbers the same in the electronic and paper books. We tried just leaving it out, but then people wrote us to ask about the missing pages. Anyway, Eddy the Gerbil wanted to say “hello.”
Page 5
Programming Ruby 3.3 The Pragmatic Programmers’ Guide Noel Rappin with Dave Thomas The Pragmatic Bookshelf Dallas, Texas
Page 6
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf, PragProg and the linking gdevice are trademarks of The Pragmatic Programmers, LLC. Every precaution was taken in the preparation of this book. However, the publisher assumes no responsibility for errors or omissions, or for damages that may result from the use of infor- mation (including program listings) contained herein. Our Pragmatic courses, workshops, and other products can help you and your team create better software and have more fun. For more information, as well as the latest Pragmatic titles, please visit us at http://pragprog.com. For our complete catalog of hands-on, practical, and Pragmatic content for software developers, please visit https://pragprog.com. The team that produced this book includes: Dave ThomasPublisher: Janet FurlowCOO: Tammy CoronManaging Editor: Katharine DvorakDevelopment Editor: Corina LebegioaraCopy Editor: Potomac Indexing, LLCIndexing: Gilson GraphicsLayout: For sales, volume licensing, and support, please contact support@pragprog.com. For international rights, please contact rights@pragprog.com. Copyright © 2024 The Pragmatic Programmers, LLC. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior consent of the publisher. ISBN-13: 978-1-68050-982-3 Encoded using the finest acid-free high-entropy binary digits. Book version: P1.0—January 2024
Page 7
Contents Preface . . . . . . . . . . . . . . . xiii Acknowledgments . . . . . . . . . . . . xvii Part I — Facets of Ruby 1. Getting Started . . . . . . . . . . . . . . 3 Installing Ruby 3 Installing Ruby for Windows 7 Running Ruby 11 Creating Ruby Programs 12 Getting More Information about Ruby 14 What’s Next 15 2. Ruby.new . . . . . . . . . . . . . . . 17 Ruby Is an Object-Oriented Language 17 Some Basic Ruby 19 Arrays and Hashes 22 Symbols 24 Control Structures 25 Regular Expressions 26 Blocks 28 Reading and ‘Riting 30 Command-Line Arguments 30 Commenting Ruby 31 What’s Next 31 3. Classes, Objects, and Variables . . . . . . . . . . 33 Defining Classes 33 Objects and Attributes 36 Classes Working with Other Classes 42 Specifying Access Control 45 Variables 48 Reopening Classes 49 What’s Next 51
Page 8
4. Collections, Blocks, and Iterators . . . . . . . . . . 53 Arrays 53 Hashes 56 Digging 58 Word Frequency: Using Hashes and Arrays 58 Blocks and Enumeration 62 What’s Next 83 5. More about Methods . . . . . . . . . . . . 85 Defining a Method 85 Calling a Method 93 What’s Next 99 6. Sharing Functionality: Inheritance, Modules, and Mixins . . . . 101 Inheritance and Messages 101 Modules 105 Inheritance, Mixins, and Design 115 What’s Next 116 7. Basic Types: Numbers, Strings, and Ranges . . . . . . . 117 Numbers 117 Strings 120 Ranges 125 What’s Next 127 8. Regular Expressions . . . . . . . . . . . . 129 What Regular Expressions Let You Do 129 Creating and Using Regular Expressions 129 Regular Expression Patterns 132 Regular Expression Syntax 134 What’s Next 142 9. Expressions . . . . . . . . . . . . . . 143 Operator Expressions 143 Command Expressions 146 Assignment 146 Conditional Execution 150 Loops and Iterators 157 Pattern Matching 163 What’s Next 170 10. Exceptions . . . . . . . . . . . . . . 171 The Exception Class 171 Handling Exceptions 172 Raising Exceptions 175 Using Catch and Throw 177 What’s Next 178 11. Basic Input and Output . . . . . . . . . . . . 179 What Is an I/O Object? 179 Contents • vi
Page 9
Opening and Closing Files 179 Reading and Writing Files 180 Talking to Networks 185 What’s Next 186 12. Threads, Fibers, and Ractors . . . . . . . . . . 187 Multithreading with Threads 188 Running Multiple External Processes 196 Creating Fibers 200 Understanding Ractors 202 What’s Next 206 13. Testing Ruby Code . . . . . . . . . . . . . 207 Why Unit Test? 207 Testing with Minitest 208 Structuring Tests 212 Creating Mock Objects in Minitest 215 Organizing and Running Tests 217 Testing with RSpec 219 What’s Next 228 Part II — Ruby in Its Setting 14. Ruby from the Command Line . . . . . . . . . . 231 Calling the Ruby Command 231 Ruby Command-Line Options 233 Making Your Code an Executable Program 237 Processing Command-Line Arguments to Your Code 237 Accessing Environment Variables 242 Where Ruby Finds Its Libraries 244 Using the Rake Build Tool 245 The Build Environment 249 What’s Next 249 15. Ruby Gems . . . . . . . . . . . . . . 251 Installing and Managing Gems 251 Using Bundler to Manage Groups of Gems 254 Writing and Packaging Your Own Code into Gems 261 Organizing Your Source Code 266 Distributing and Installing Your Code 272 What’s Next 275 16. Interactive Ruby . . . . . . . . . . . . . 277 Using irb 278 Navigating irb 280 Configuring irb 283 What’s Next 288 Contents • vii
Page 10
17. Debugging Ruby . . . . . . . . . . . . . 289 Printing Things 289 The Ruby Debugger 290 Pry 293 Debugging Performance Issues with Benchmark 296 What’s Next 297 18. Typed Ruby . . . . . . . . . . . . . . 299 What’s a Type? 299 Official Ruby Typing with RBS 301 Ruby Typing with Sorbet 307 What’s Next 311 19. Documenting Ruby . . . . . . . . . . . . 313 Documenting with RDoc 313 Adding RDoc to Ruby Code 316 Running RDoc 320 Documenting with YARD 321 What’s Next 324 Part III — Ruby Crystallized 20. Ruby and the Web . . . . . . . . . . . . . 327 Ruby’s Web Utilities 327 Templating with ERB 329 Serving Ruby Code to the Web 332 Ruby in the Browser with Web Assembly 340 What’s Next 342 21. Ruby Style . . . . . . . . . . . . . . 343 Written Ruby Style 343 Using RuboCop 348 Using Standard 353 Ruby Style in the Large 354 Duck Typing 356 What’s Next 369 22. The Ruby Object Model and Metaprogramming . . . . . . 371 Understanding Objects and Classes 371 Defining Singleton Methods 374 Inheritance and Visibility 380 Modules and Mixins 381 Metaprogramming Class-Level Macros 387 Using instance_eval and class_eval 396 Using Hook Methods 399 A Metaprogramming Example 405 Top-Level Execution Environment 407 What’s Next 408 Contents • viii
Page 11
23. Reflection and Object Space . . . . . . . . . . 409 Looking at Objects 409 Looking at Classes 411 Calling Methods Dynamically 413 System Hooks 415 Tracing Your Program’s Execution 417 Behind the Curtain: The Ruby VM 419 Marshaling and Distributed Ruby 420 What’s Next 425 Part IV — Ruby Language Reference 24. Language Reference: Literal Types and Expressions . . . . . 429 Source Layout 429 Ruby Literals 432 Regular Expressions 440 Names 445 Values, Variables, and Constants 447 Expressions, Conditionals, and Loops 453 25. Language Reference: Objects and Classes . . . . . . . 465 Method Definition 465 Invoking a Method 470 Aliasing 475 Defining Classes 476 Defining Modules 478 Access Control 480 Blocks, Closures, and Proc Objects 480 Exceptions 484 Catch and Throw 486 Typed Ruby 487 Part V — Ruby Library Reference 26. Library Reference: Core Data Types . . . . . . . . . 495 Dates and Times 495 Math 502 Numbers 503 Random and SecureRandom 510 Regexp 511 Strings 523 Symbols 534 27. Library Reference: Ruby’s Object Model . . . . . . . . 537 BasicObject 537 Class 540 Comparable 540 Kernel 541 Contents • ix
Page 12
Method 551 Module 552 Object 557 28. Library Reference: Enumerators and Containers . . . . . . 561 Array 561 Enumerable 568 Enumerator 577 Hash 579 Set 584 29. Library Reference: Input, Output, Files, and Formats . . . . . 587 CSV 587 Dir 590 File 593 FileUtils 597 IO 600 JSON 609 Pathname 611 StringIO 612 Tempfile 613 URI 614 YAML 616 30. Library Reference: Ruby on Ruby . . . . . . . . . 619 Benchmark 619 Data 621 Delegator and SimpleDelegator 622 Logger 623 ObjectSpace 624 Observable 625 OpenStruct 627 PP 627 Prism 628 Ripper 630 Singleton 632 Struct 632 Unbound Method 634 Part VI — Appendixes A1. Troubleshooting Ruby . . . . . . . . . . . . 637 Common Issues 637 Debugging Tips 640 A2. I Can’t Look It Up! . . . . . . . . . . . . . 641 A3. Command-Line Basics . . . . . . . . . . . . 645 The Command Prompt 645 Folders, Directories, and Navigation 645 Contents • x
Page 13
A4. Ruby Runtimes . . . . . . . . . . . . . 649 Just-in-Time Compilers 649 TruffleRuby 651 JRuby 652 mRuby 653 Other Runtimes 654 A5. Ruby Changes . . . . . . . . . . . . . . 655 Version 2.0 655 Version 2.1 655 Version 2.2 656 Version 2.3 656 Version 2.4 656 Version 2.5 656 Version 2.6 656 Version 2.7 656 Version 3.0 657 Version 3.1 657 Version 3.2 657 Version 3.3 657 Index . . . . . . . . . . . . . . . . 659 Contents • xi
Page 14
Preface This is the fifth edition ofProgrammingRuby, which many Ruby developers call “The Pickaxe Book.” It covers Ruby up to and including Ruby 3.3. Since the previous edition of this book, Ruby has continued to grow and evolve. New syntax has been added; old syntax has been refined. Major new features, such as pattern matching and type signatures, are now part of the language. Tools that didn’t exist or were in their early stages of development then are now in constant use by Ruby developers around the world. The entire ecosystem is thriving. The Pickaxe Book continues to be your guide to learning Ruby the language and under- standing how Ruby’s parts work together and how you can use the most popular and important Ruby tools. Why Ruby? When Dave Thomas and Andy Hunt wrote the first edition, they explained the appeal of Ruby. Among other things, they wrote, “When we discovered Ruby, we realized that we’d found what we’d been looking for. More than any other language with which we have worked, Ruby stays out of your way. You can concentrate on solving the problem at hand, instead of struggling with compiler and language issues. That’s how it can help you become a better programmer: by giving you the chance to spend your time creating solutions for your users, not for the compiler.” That belief is even stronger today. More than thirty years after Ruby’s first release on February 24, 1993, Ruby still enables developers to focus on their solutions—from the smallest utility script to the services of companies with billions of dollars in revenue. Ruby can support it all. A Word about Ruby Versions This edition of The Pickaxe Book documents Ruby up to and including Ruby 3.3. New Ruby version releases come out annually on December 25. The book’s code was developed against Ruby 3.3, preview 2, but we don’t expect substantial changes in the released version of Ruby 3.3. In this book, we don’t typically note what version of Ruby introduced a new feature, but you can find a brief list of the largest changes in Appendix 5, Ruby Changes, on page 655. We recommend referring to the Ruby Evolution page by Victor Shepelev at https://rubyrefer- ences.github.io/rubychanges/evolution.html for a full listing of the changes implemented since Ruby 2.0. report erratum • discuss
Page 15
Exactly what version of Ruby did we use to write this book? Let’s ask Ruby: $ ruby -v ruby 3.3.0dev (2023-11-01T17:47:26Z master 909afcb4fc) [arm64-darwin23] This illustrates an important point. Most of the code samples you see in this book are executed each time we format the book. When you see output from a program, that output was pro- duced by running the code and inserting the results into the book. Notation Conventions Literal code examples are shown using a sans-serif font: class SampleCode def run end end In this book, a class name followed by a hash followed by a method name, as in Fred#do_something, is a reference to an instance method (in this case, the method do_something of class Fred). Class methods are written with a dot as in Fred.new, and Fred.EOF is a class con- stant. In other Ruby documentation, you may see class methods written as Fred::new. This is perfectly valid Ruby syntax; we just happen to think that Fred.new is less distracting to read and is much more common to see in practice. The decision to use a hash character to indicate instance methods was a tough one. It isn’t valid Ruby syntax, but we thought that it was important to differentiate between the instance and class methods of a particular class. When you see us use File.read, you know we’re talking about the class method read. When, instead, we use File#read, we’re referring to the instance method read. This convention is standard in most Ruby discussions and documentation. When discussing various commands or Ruby snippets, we’ll refer to variable parts of the commands by including them in angle brackets. So, if we say rbenv global <VERSION>, that means the section in the brackets is not a literal part of the command, and you’d replace it with the actual value you wanted to use, for example, rbenv global 3.3.0. This book contains many snippets of Ruby code. Where possible, we’ve tried to show what happens when they run. In some cases, we show the value of expressions on the same line as the expression. Here’s an example: a = 1 b = 2 a + b # => 3 Here, you can see that the result of evaluating a + b is the value 3, shown in a comment at the end of the line, # => 3. If you typed this fragment of code into a file and executed it using Ruby, you wouldn’t see the value 3 output—you’d need to use a method such as puts to have the values written to the program’s output. a = 1 # => 1 a + 2 # => 3 If the program produces more complex output, we show it after the program code: Preface • xiv report erratum • discuss
Page 16
3.times { puts "Hello!" } produces: Hello! Hello! Hello! In some of the library documentation, we wanted to show where spaces appear in the output. You’ll see these spaces as ␣ characters. Unless we’re trying to make a point or highlight a specific language feature, Ruby code examples have been formatted to match the rules of the Standard gem1. Command-line invocations are shown with literal text in a regular font, and the parameters you supply are shown in an italic font. Optional elements are shown in brackets. ruby ‹ flags ›* progname ‹ arguments ›* In keeping with the style of previous editions of the book, we use the wordwewhen referring to the authors collectively in the body of the book. Many of the words come from the first four editions, and I (Noel) don’t want to claim any credit for Dave Thomas’s, Andy Hunt’s, and Chad Fowler’s previous work. That said, opinions on recent Ruby features, even when prefaced by “we,” are just my (Noel’s) opinions and are not an attempt to put words in the mouths of the previous authors. Road Map The main text of this book is divided into five parts, each with its own personality and each addressing different aspects of the Ruby language. Part I, Facets of Ruby, is a Ruby tutorial. It starts with notes on getting Ruby running on your system followed by a short chapter on the terminology and concepts that are unique to Ruby. The initial chapter also includes enough basic syntax so that the other chapters will make sense. The rest of the tutorial is a top-down look at Ruby. There we talk about classes and objects, types, expressions, and all the other things that make up the language. We end with a chapter on unit testing. Part II, Ruby in Its Setting, investigates one of the great things about Ruby, which is how well it integrates with its environment. Here you’ll find practical information on using Ruby: using the interpreter options, working with irb, documenting your Ruby code, type checking, and packaging your Ruby gems so that others can enjoy them. Part III, Ruby Crystallized, contains more advanced material. Here you’ll find all the details about using Ruby for the web, Ruby style, the concept of duck typing, the object model, metaprogramming, reflection, and object space. You could probably speed-read this the first time through, but we think you’ll come back to it as you start to use Ruby in earnest. Part IV, Ruby Language Reference, includes more complete notes on syntax and fuller docu- mentation of language features discussed in the first three parts. Part V, Ruby Library Reference, isn’t a complete reference of the entire Ruby library—that’s much more readily available at https://docs.ruby-lang.org/en—but it’s a map to the most com- monly used and most useful features of the library. 1. https://github.com/testdouble/standard report erratum • discuss Road Map • xv
Page 17
How should you read this book? Well, depending on your level of expertise with program- ming in general and object-oriented programming in particular, you may initially want to read just a few portions of the book. Here are our recommendations. If you’re a beginner, you may want to start with the tutorial material in Part I. Keep the library reference close at hand as you start to write programs. Get familiar with the basic classes such as Array, Hash, and String. As you become more comfortable in the environment, you may want to investigate some of the more advanced topics in Part III. If you’re already comfortable with JavaScript, Python, or Java, then we suggest reading Chapter 1, Getting Started, on page 3, which talks about installing and running Ruby, fol- lowed by the introduction in Chapter 2, Ruby.new, on page 17. From there, you may want to take the slower approach and keep going with the tutorial that follows, or you can skip ahead to the details starting in Part III, followed by the language reference in Part IV and the library reference in Part V. Experts, gurus, and “I-don’t-need-no-stinking-tutorial” types can dive straight into the lan- guage reference in Chapter 24, Language Reference: Literal Types and Expressions, on page 429, skim through the library reference, and then use the book as a (rather attractive) coffee coaster. Of course, nothing is wrong with starting at the beginning and working your way through page by page. And don’t forget: if you run into a problem that you can’t figure out, help is available. For more information, see Appendix 1, Troubleshooting Ruby, on page 637. Resources Visit the Ruby website at http://www.ruby-lang.org to see what’s new. You can find a list of community resources, including the official mailing list and Discord server, at https://www.ruby- lang.org/en/community. And we’d certainly appreciate hearing from you. Comments, suggestions, errors in the text, and problems in the examples are all welcome. Email us at rubybook@pragprog.com. If you find errors in the book, you can add them to the errata page at https://devtalk.com/books/ programming-ruby-3-2-5th-edition/errata. If you’re reading the PDF version of the book, you can also report an erratum by clicking the link in the page footers. You’ll find links to the source code for almost all of the book’s code examples at https://www.pragprog.com/titles/ruby5. With all that out of the way, let’s start learning about Ruby. Preface • xvi report erratum • discuss
Page 18
Acknowledgments In January 2001, I bought myself a programming book as a birthday present. It had a pickaxe on the cover, and it was written by the two people who wrote The Pragmatic Programmer. It was about this new programming language from Japan that I had heard about on the Extreme Programming mailing list, and which sounded very interesting. I can’t thank Dave Thomas and Andy Hunt enough. It’s hard to even begin to list what I’ve gained from purchasing that initial book and from my association with The Pragmatic Bookshelf. Thanks also to Chad Fowler for his work on subsequent versions of the book. I inherited a great book from the three of you, and I hope this version will continue to bring people into the Ruby language and the Ruby community. The path from buying a book on a whim to being the person updating that book more than 20 years later doesn’t happen without a lot of help. As much as I love Ruby the language, I also love Ruby the community and the many, many people who I’ve come to know through Ruby. The risk of starting to list people is that I’m sure I will inadvertently leave somebody out, but I want to particularly thank Gregg Pollack, Jason Seifer, Avdi Grimm, James Edward Gray II, Betsy Haibel, Justin Searls, Marty Haught, Kerri Miller, Brian Hogan, Ray Hightower, Fable Tales, Matt Polito, Even Light, Allison McMillan, and Jim Remsik. There are many more I could list—thank you to all of you. Mark Guzdial was my graduate advisor and the person who encouraged me to write about programming and teach programming. This is somehow the seventh title I’ve worked on with Katharine Dvorak as the editor. As always, she makes working on the book easier and helps structure the book into its most coherent form. Dave Rankin at The Pragmatic Bookshelf was the person who agreed to let me work on this book. Thanks so much for the opportunity and the vote of confidence. The following people reviewed all or part of the book, and their feedback and knowledge have made this a better and more accurate book: Jean Boussier, Avdi Grimm, Chris Houhoulis, Gabi Jack, Bernard Kaiflin, Brian Lesperance, Stefan Magnuson, Kevin Murphy, Ryan Prinz, Nishant Roy, Victor Shepelev, and Brandon Weaver. Everything in my life is better because of my family. Thanks to my children, Amit and Elliot, who have enriched my life in so many ways. And something beyond thanks to my wife Erin, these small sentences can’t express how much I love you and how much your love and support mean to me. report erratum • discuss
Page 19
Part I Facets of Ruby Welcome to Ruby! Part I is a tutorial covering all the Ruby you’ll need to be able to understand a good-sized Ruby application.We’ll explore the most important parts of the syntax and the standard library, and go beyond the basics in a couple of places where Ruby has a particularly interesting or powerful tool at hand.
Page 20
CHAPTER 1 Getting Started We’re going to spend a lot of time in this book talking about the Ruby language. Before we do, we want to make sure you can get Ruby installed and running on your computer. That way, you can try the sample code and experiment on your own as you read along. If you want to learn Ruby you should get into the habit of writing code as you’re reading. If you aren’t comfortable with using a command line, we can help. Please turn to Appendix 3, Command-Line Basics, on page 645, and we’ll give you all the information you need to get started. Installing Ruby There is a good chance your operating system already has Ruby installed. Try typing ruby --version at a command prompt—you may be pleasantly surprised. But you’re likely to find that the Ruby version is out of date. For example, at the time of this writing, MacOS ships with Ruby 2.6.10, which is multiple versions behind the current Ruby. The examples in this book are written against Ruby 3.3. While most of the code will work in older versions of Ruby, for performance and security reasons you should try to get on the most current version. Refer to Appendix 5, Ruby Changes, on page 655, for a listing of the features added and changes made to Ruby at each iteration. You can install Ruby in a variety of different ways, so providing general installation instructions becomes a little bit of a choose-your-own-adventure story. Most of the examples in this book assume you’re using a Linux- or Unix-style system that responds to Linux-style commands. This includes all Linux distributions, macOS, Windows systems running Windows Subsystem for Linux (WSL),1 and most Docker2 containers as well as cloud-based development environments such as Replit.3 That said, Ruby does run on Windows. The process for managing a Ruby installation on Windows is different, and we’ll cover it in full detail later in this chapter. Please note that the tooling for Ruby’s installation does change frequently, and some of the specific instructions might be out of date or replaced by newer tools. 1. https://docs.microsoft.com/en-us/windows/wsl/install 2. https://www.docker.com 3. https://replit.com report erratum • discuss
The above is a preview of the first 20 pages. Register to read the complete e-book.

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
← Back to List