Book description
The Well-Grounded Rubyist takes you from interested novice to proficient practitioner. It's a beautifully written tutorial that begins with the basic steps to get your first Ruby program up and running and goes on to explore sophisticated topics like callable objects, reflection, and threading. Whether the topic is simple or tough, the book's easy-to-follow examples and explanations will give you immediate confidence as you build your Ruby programming skills. The Well-Grounded Rubyist is a thoroughly revised and updated edition of the best-selling Ruby for Rails. In this new book, expert author David A. Black moves beyond Rails and presents a broader view of Ruby. It covers Ruby 1.9, and keeps the same sharp focus and clear writing that made Ruby for Rails stand out. Starting with the basics, The Well-Grounded Rubyist explains Ruby objects and their interactions from the ground up. In the middle chapters, the book turns to an examination of Ruby's built-in, core classes, showing the reader how to manipulate strings, numbers, arrays, ranges, hashes, sets, and more. Regular expressions get attention, as do file and other I/O operations. Along the way, the reader is introduced to numerous tools included in the standard Ruby distribution--tools like the task manager Rake and the interactive Ruby console-based interpreter Irb--that facilitate Ruby development and make it an integrated and pleasant experience. The book encompasses advanced topics, like the design of Ruby's class and module system, and the use of Ruby threads, taking even the new Rubyist deep into the language and giving every reader the foundations necessary to use, explore, and enjoy this unusually popular and versatile language. It's no wonder one reader commented: "The technical depth is just right to not distract beginners, yet detailed enough for more advanced readers."
Table of contents
- Copyright
- Dedication
- Brief Table of Contents
- Table of Contents
- Preface
- Acknowledgments
- About this Book
- About the Cover Illustration
- Part 1. Ruby foundations
- Chapter 1. Bootstrapping your Ruby literacy
- Chapter 2. Objects, methods, and local variables
- Chapter 3. Organizing objects with classes
- Chapter 4. Modules and program organization
- Chapter 5. The default object (self), scope, and visibility
- Chapter 6. Control-flow techniques
- Part 2. Built-in classes and modules
- Chapter 7. Built-in essentials
- Chapter 8. Strings, symbols, and other scalar objects
- Chapter 9. Collection and container objects
- Chapter 10. Collections central: Enumerable and Enumerator
- Chapter 11. Regular expressions and regexp-based string operations
- Chapter 12. File, I/O, and system operations
- Part 3. Ruby dynamics
- Chapter 13. Object individuation
- Chapter 14. Callable and runnable objects
- Chapter 15. Callbacks, hooks, and runtime introspection
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: The Well-Grounded Rubyist
- Author(s):
- Release date: May 2009
- Publisher(s): Manning Publications
- ISBN: 9781933988658
You might also like
book
Web Components in Action
Web Components in Action teaches you to build and use Web Components from the ground up. …
book
Spring Boot Persistence Best Practices: Optimize Java Persistence Performance in Spring Boot Applications
This book is a collection of developer code recipes and best practices for persisting data using …
book
Tidy First?
Messy code is a nuisance. "Tidying" code, to make it more readable, requires breaking it up …
video
Make Apps with ChatGPT and Generative AI
ChatGPT is a language generation model developed by OpenAI. Its newest form, Davinci, is behind the …