Ruby is the fastest growing and most exciting dynamic language out there. If you need to get working programs delivered fast, you should add Ruby to your toolbox.
This book is the only complete reference for both Ruby 1.9 and Ruby 2.0, the very latest version of Ruby.
2013 marks the 20th anniversary of the Ruby language. We’re proud that throughout its history, we’ve continued to cover the latest version of Ruby.
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 getting 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, much like the classic object-oriented language, Smalltalk. Like Smalltalk, it is dynamically typed (as opposed to Java or C++), but unlike Smalltalk, Ruby features the same conveniences found in modern scripting languages such as Perl and Python.
The combination of the power of a pure object-oriented language with the convenience of a scripting language makes Ruby a favorite tool of intelligent, forward-thinking programmers.
The Pickaxe contains four major sections:
An acclaimed tutorial on using Ruby. The definitive reference to the language. Complete documentation of all built-in classes, modules, and methods. Complete descriptions of all 97 standard libraries.
This is the reference manual for Ruby, including a description of all the standard library modules, a complete reference to all built-in classes and modules (including all the new and changed methods introduced by Ruby 1.9, 1.9.2, 1.9.3, and 2.0). It also includes all the new and changed syntax and semantics introduced since Ruby 1.8. Learn about the new parameter passing rules, local variable scoping in blocks, fibers, and the new block declaration syntax, among other exciting new features.
About Ruby 2.0
Ruby 2.0 is a minor update to Ruby 1.9, unlike the more major updates from Ruby 1.8 to Ruby 1.9.
The major language changes in Ruby 2.0 are the addition of keyword arguments and the change to use UTF-8 as the default source file encoding.
There are a number of additions to the standard library, including:
@Enumerator::Lazy@, which adds support for lazy access to potentially infinite lists. Refinements allow you to encapsulate changes to third-party classes, and scope their application to individual source files, preventing your changes from polluting the global application.
You’ll also find that Ruby 2 is faster, and has memory management improvements that make it more server-friendly.
All told, there are over 110 sections of the book that have been flagged and cross-linked to indicate 2.0 content.
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 Macs.
Author(s): Dave Thomas, Andy Hunt
Ruby is an increasingly popular, fully object-oriented dynamic programming language, hailed by many practitioners as the finest and most useful language available today. When Ruby first burst onto the scene in the Western world, the Pragmatic Programmers were there with the definitive reference manual, Programming Ruby: The Pragmatic Programmer’s Guide.
Now in its second edition, author Dave Thomas has expanded the famous Pickaxe book with over 200 pages of new content, covering all the improved language features of Ruby 1.8 and standard library modules. The Pickaxe contains four major sections:
- An acclaimed tutorial on using Ruby.
- The definitive reference to the language.
- Complete documentation on all built-in classes, modules, and methods
- Complete descriptions of all 98 standard libraries.
If you enjoyed the First Edition, you’ll appreciate the expanded content, including enhanced coverage of installation, packaging, documenting Ruby source code, threading and synchronization, and enhancing Ruby’s capabilities using C-language extensions. Programming for the World Wide Web is easy in Ruby, with new chapters on XML/RPC, SOAP, distributed Ruby, templating systems, and other web services. There’s even a new chapter on unit testing.
This is the definitive reference manual for Ruby, including a description of all the standard library modules, a complete reference to all built-in classes and modules (including more than 250 significant changes since the First Edition). Coverage of other features has grown tremendously, including details on how to harness the sophisticated capabilities of irb, so you can dynamically examine and experiment with your running code. “Ruby is a wonderfully powerful and useful language, and whenever I’m working with it this book is at my side” –Martin Fowler, Chief Scientist, ThoughtWorks
Author(s): Dave Thomas, Chad Fowler
The Ruby Programming Language is the authoritative guide to Ruby and provides comprehensive coverage of versions 1.8 and 1.9 of the language. It was written (and illustrated!) by an all-star team:
- Yukihiro “Matz” Matsumoto, creator, designer and lead developer of Ruby and author of Ruby in a Nutshell, which has been expanded and revised to become this book.
- why the lucky stiff, artist and Ruby programmer extraordinaire.
This book begins with a quick-start tutorial to the language, and then explains the language in detail from the bottom up: from lexical and syntactic structure to datatypes to expressions and statements and on through methods, blocks, lambdas, closures, classes and modules.
The book also includes a long and thorough introduction to the rich API of the Ruby platform, demonstrating — with heavily-commented example code — Ruby’s facilities for text processing, numeric manipulation, collections, input/output, networking, and concurrency. An entire chapter is devoted to Ruby’s metaprogramming capabilities.
The Ruby Programming Language documents the Ruby language definitively but without the formality of a language specification. It is written for experienced programmers who are new to Ruby, and for current Ruby programmers who want to challenge their understanding and increase their mastery of the language.
Author(s): David Flanagan, Yukihiro Matsumoto
Are You Ready To Learn Ruby Easily?
This book aims to guide a complete novice in Ruby programming. This book is carefully crafted to aid the new or inexperienced programmer in learning to write a code in Ruby language. If you are someone who somehow developed a fear to explore the unknown and still interested in learning Ruby programming, then this book can truly help you. This book covers everything that a beginner in Ruby programming should learn. Understand that programming offers an infinite amount of information and knowledge. However, this book understands that it may overwhelm a mere beginner in programming if it tackles even the advanced features of the Ruby language. This book can help you build a solid, basic knowledge in programming that can help you a lot when you begin to write your own program in Ruby language. You can use the acquired knowledge to pursue or learn more about Ruby’s advanced concepts later on. For now, just concentrate on the basics and make sure to absorb every lesson before you go to the next one. Practice makes perfect and this book provides a lot of practice programs or exercises that can help you enhance your experience in Ruby programming. The exercises are simple and easy to understand to help you comprehend the lesson quickly. You also need to take note of the error messages that you may encounter. Let them serve as your guide so you can avoid the same mistake in the future or help you resolve the same error when you encounter them once more. Learning Ruby programming in 7 days is not something impossible to accomplish. Even a person with a little or no experience with any programming language can learn it within those days. As you go through each lesson, you will notice that it is quite easy to understand. It becomes much simpler when you have patience and discipline. Understand that you will be able to learn the Ruby basics in 7 days, but that won’t make you an instant expert. You still need to practice and work your way in discovering the cool things that you can do with Ruby as you go along. Even expert programmers need to spend ample time in honing their programming skills. Before you know it, you are ready to create a more complex program. This book presents everything that a novice may need in understanding the basic Ruby programming. It is presented in such a way that anyone without prior programming knowledge will find it easy to understand – most technical jargons were kept to minimal, and they are the terminologies that you will likely encounter once you have started writing your program.
Here’s What You’ll Learn From This Ruby For Beginners Book:
✓ Chapter 1: Getting acquainted with ruby ✓ Chapter 2: Initial Preparations ✓ Chapter 3: Start with the Basics ✓ Chapter 4: Ruby Variables ✓ Chapter 5: All About Methods ✓ Chapter 6: Flow Control ✓ Chapter 7: Iterators and Loops ✓ Chapter 8: More on Arrays and Hashes
What Are You Waiting For?
Start Coding Ruby Right Now!
Author(s): iCode Academy
5. The Well-Grounded Rubyist (2014)
The Well-Grounded Rubyist, Second Edition addresses both newcomers to Ruby as well as Ruby programmers who want to deepen their understanding of the language. This beautifully written and totally revised second edition includes coverage of features that are new in Ruby 2.1, as well as expanded and updated coverage of aspects of the language that have changed.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the Technology
This is a good time for Ruby! It's powerful like Java or C++, and has dynamic features that let your code react gracefully to changes at runtime. And it's elegant, so creating applications, development tools, and administrative scripts is easier and more straightforward. With the long-awaited Ruby 2, an active development community, and countless libraries and productivity tools, Ruby has come into its own.
About the Book
The Well-Grounded Rubyist, Second Edition is a beautifully written tutorial that begins with your first Ruby program and goes on to explore sophisticated topics like callable objects, reflection, and threading. The book concentrates on the language, preparing you to use Ruby in any way you choose. This second edition includes coverage of new Ruby features such as keyword arguments, lazy enumerators, and Module#prepend, along with updated information on new and changed core classes and methods.
- Clear explanations of Ruby concepts
- Numerous simple examples
- Updated for Ruby 2.1
- Prepares you to use Ruby anywhere for any purpose
About the Author
David A. Black is an internationally-known software developer, author, trainer, speaker, and event organizer. He is a Ruby standard library contributor and one of the founders of Ruby Central, Inc., the parent organization of the official international Ruby and Ruby on Rails conferences. David works at 2U, Inc. in New York City.
Table of Contents
- PART 1 RUBY FOUNDATIONS
- Bootstrapping your Ruby literacy
- Objects, methods, and local variables
- Organizing objects with classes
- Modules and program organization
- The default object (self), scope, and visibility
- Control-flow techniques
- Built-in essentials
- Strings, symbols, and other scalar objects
- Collection and container objects
- Collections central: Enumerable and Enumerator
- Regular expressions and regexp-based string operations
- File and I/O operations
- Object individuation
- Callable and runnable objects
- Callbacks, hooks, and runtime introspection
PART 2 BUILT-IN CLASSES AND MODULES
PART 3 RUBY DYNAMICS
Author(s): David A. Black
6. Ruby: Learn Ruby in 24 Hours or Less – A Beginner’s Guide To Learning Ruby Programming Now (Ruby, Ruby Programming, Ruby Course) (2016)
Learn Ruby In 24 Hours Or Less!
In this book you will find the fundamental aspects of the Ruby programming language. It will explain theories and lessons through detailed instructions and practical examples. With this eBook, you’ll learn how to get Ruby, how to write Ruby statements, and how to use this language in creating your own programs.
If you’re searching for a comprehensive learning material for Ruby, this is the book you need. With the help of the important ideas and practical examples contained within, you will be able to master Ruby quickly even if you have never programmed anything before. By reading this material, you will become an effective Ruby programmer in 24 hours (or even less).
Here are some of the things you’ll learn from this eBook:
- How to download the right version of Ruby for your computer
- The fundamental principles of Ruby programming
- The methods that you can use in Ruby
- How to handle program exceptions
- The syntax of Ruby commands
- How to create loops, iterators, classes, objects, variables, and many more
- Collections Of Data
- The Sharing Functionalities Of Ruby
- The Regular Expressions
- The Methods Of The Ruby Language
- Ruby Expressions
- The Basic I/O Of Ruby
- And Much, Much More…
You can certainly benefit from this eBook even if you have never programmed anything before. This eBook will teach you the basics of Ruby programming and give you the syntax of important Ruby commands. If you want to become a skilled Ruby programmer in just 24 hours, get this eBook now and read it carefully.
In addition you will find inside:
Get Your Copy Right Now!
Author(s): Robert Dwight
7. Head First Ruby: A Brain-Friendly Guide (2015)
What will you learn from this book?
What’s all the buzz about this Ruby language? Is it right for you? Well, ask yourself: are you tired of all those extra declarations, keywords, and compilation steps in your other language? Do you want to be a more productive programmer? Then you’ll love Ruby. With this unique hands-on learning experience, you’ll discover how Ruby takes care of all the details for you, so you can simply have fun and get more done with less code.
Why does this book look so different?
Based on the latest research in cognitive science and learning theory, Head First Ruby uses a visually rich format to engage your mind, rather than a text-heavy approach to put you to sleep. Why waste your time struggling with new concepts? This multi-sensory learning experience is designed for the way your brain really works.
Author(s): Jay McGavren
8. Practical Object-Oriented Design in Ruby: An Agile Primer (Addison-Wesley Professional Ruby) (2012)
Ruby’s widely admired ease of use has a downside: Too many Ruby and Rails applications have been created without concern for their long-term maintenance or evolution. The Web is awash in Ruby code that is now virtually impossible to change or extend. This text helps you solve that problem by using powerful real-world object-oriented design techniques, which it thoroughly explains using simple and practical Ruby examples.
Sandi Metz has distilled a lifetime of conversations and presentations about object-oriented design into a set of Ruby-focused practices for crafting manageable, extensible, and pleasing code. She shows you how to build new applications that can survive success and repair existing applications that have become impossible to change. Each technique is illustrated with extended examples, all downloadable from the companion Web site, poodr.info.
The first title to focus squarely on object-oriented Ruby application design, Practical Object-Oriented Design in Ruby will guide you to superior outcomes, whatever your previous Ruby experience. Novice Ruby programmers will find specific rules to live by; intermediate Ruby programmers will find valuable principles they can flexibly interpret and apply; and advanced Ruby programmers will find a common language they can use to lead development and guide their colleagues.
This guide will help you
- Understand how object-oriented programming can help you craft Ruby code that is easier to maintain and upgrade
- Decide what belongs in a single Ruby class
- Avoid entangling objects that should be kept separate
- Define flexible interfaces among objects
- Reduce programming overhead costs with duck typing
- Successfully apply inheritance
- Build objects via composition
- Design cost-effective tests
- Solve common problems associated with poorly designed Ruby code
Author(s): Sandi Metz
9. The Ruby Way: Solutions and Techniques in Ruby Programming (3rd Edition) (Addison-Wesley Professional Ruby) (2015)
For more than a decade, Ruby developers have turned to The Ruby Way for reliable “how-to” guidance on effective Ruby programming. Now, Hal Fulton and André Arko have thoroughly updated this classic guide to cover new language enhancements and developers’ experiences through Ruby 2.1.
The new edition illuminates Ruby 2.1 through 400+ examples, each answering the question: “How do I do this in Ruby?” For each example, they present both a task description and realistic technical constraints. Next, they walk step-by-step through presenting one good solution, offering detailed explanations to promote deeper understanding.
Conveniently organized by topic, The Ruby Way, Third Edition makes it easier than ever to find the specific solution you want—and to write better code by reflecting Ruby’s unique philosophy and spirit.
- Ruby 2.1 overview: terminology, philosophy, and basic principles
- Best practices for strings and regular expressions
- Efficiently internationalizing your code
- Performing calculations (including trigonometry, calculus, statistics, and time/date calculations)
- Working with “Rubyesque” objects such as symbols and ranges
- Using arrays, hashes, stacks, queues, trees, graphs, and other data structures
- Efficiently storing data with YAML, JSON, and SQLite3
- Leveraging object-oriented and dynamic features, from multiple constructors to program inspection
- Building GUIs with Shoes 4, Ruby/Tk, Ruby/GTK3, QtRuby, and other toolkits
- Improving thread performance by understanding Ruby’s synchronization methods and avoiding its pitfalls
- Automating system administration with Ruby
- Data formats: JSON, XML, RSS, Atom, RMagick, PDF, and more
- Testing and debugging with RSpec, Minitest, Cucumber, byebug, and pry
- Measuring Ruby program performance
- Packaging and distributing code, and managing dependencies with Bundler
- Network programming: clients, time servers, POP, SMTP, IMAP, Open-URI
- Web applications: HTTP servers, Rails, Sinatra, HTML generation, and more
- Writing distributed Ruby software with drb
- Choosing modern development tools that maximize your productivity
All source code for this book may be downloaded at www.rubyhacker.com.
Author(s): Hal Fulton, André Arko
10. The Well Grounded Rubyist (2018)
Ruby is a dynamic language perfect for creating applications, development tools, and administrative scripts.
The Well-Grounded Rubyist, Third Edition is a perfect tutorial for newcomers to Ruby and a great way for experienced Rubyists to deepen their understanding of the language.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
Author(s): David A. Black, Leo, Joseph, III
11. Ruby: Programming, Master’s Handbook: A TRUE Beginner’s Guide! Problem Solving, Code, Data Science, Data Structures & Algorithms (Code like a PRO in … web design, tech, perl, ajax, swift, python,) (2015)
ARE YOU READY TO CODE THE NEXT GREATEST WEB APP?
“The content of the book was brilliantly put together “ – Donay Mitchell, from Amazon.com “The author did a great job in writing this book “ – CL White, from Amazon.com “ This book is focused, straight to the point, dense, fun to read and enjoyable with it’s strong logical flow of ideas. “ – Miller, from Amazon.com Looking to build a high-paying Programming Career? Would you like to become an up-and-coming Ruby Developer? Crafted by some of the best minds who have studied in some of the world’s top universities, You’re among one of the best learning programs out there. Within this book’s pages, you’ll find GREAT coding skills to learn – and more. Just some of the questions and topics include: – The Beautiful Ruby Syntax explained – Programming Mistakes in Ruby you CANNOT afford to make – The Ruby Class System is complicated – UNTIL you read this… – How to create Data to Model REAL-LIFE Situations (Few books will teach this…) – Other Programming Books don’t have these Ruby Shortcuts and Tricks and Much, much more! World-Class Training This book breaks your training down into easy-to-understand modules. It starts from the very essentials of data structures and functions, so you can write great code – even as a beginner!
Author(s): Codewell Academy, R.M.Z. Trigo
Author(s): Jr. Jerry Lee Ford